Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Created February 25, 2019 17:42
Show Gist options
  • Save PrateekKumarSingh/b93bd74b9745834165205a961e6c032b to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/b93bd74b9745834165205a961e6c032b to your computer and use it in GitHub Desktop.
$Path = $env:TEMP
$Installer = "chrome_installer.exe"
Invoke-WebRequest "http://dl.google.com/chrome/install/375.126/chrome_installer.exe" -OutFile $Path\$Installer
Start-Process -FilePath $Path\$Installer -Args "/silent /install" -Verb RunAs -Wait
Remove-Item $Path\$Installer
$ChromeVersion = (Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.DisplayName -like "*chrome*"}).Version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment