Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save o0101/b52c5a1808548b991c22857e358db61c to your computer and use it in GitHub Desktop.
Save o0101/b52c5a1808548b991c22857e358db61c to your computer and use it in GitHub Desktop.
install chrome from powershell
(new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec
@o0101
Copy link
Author

o0101 commented Oct 31, 2020

PowerShell -Command "& {$P = $env:TEMP + '\chrome_installer.exe'; Invoke-WebRequest 'https://dl.google.com/chrome/install/latest/chrome_installer.exe' -OutFile $P; Start-Process -FilePath $P -Args '/silent /install' -Verb RunAs -Wait; Remove-Item $P}"

@o0101
Copy link
Author

o0101 commented Oct 31, 2020

$uri = "https://dl.google.com/chrome/install/latest/chrome_installer.exe" $path = "$PSScriptRoot\ChromeSetup.exe" Invoke-WebRequest -Uri $uri -OutFile $path Start-Process $path /install -NoNewWindow -Wait Remove-Item .\ChromeSetup.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment