Skip to content

Instantly share code, notes, and snippets.

Huseyin M Ozyilmaz huseyinozyilmaz

Block or report user

Report or block huseyinozyilmaz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
huseyinozyilmaz / install-chrome.ps1
Created Apr 10, 2018
Install Google Chrome with Powershell
View install-chrome.ps1
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Installing..." | Write-Host; Start-Sleep -Seconds 2 } else { Remove-Item "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue } } Until (!$ProcessesFound)
You can’t perform that action at this time.