SlayerXCesar Villegas
Internet1 min read

How-to install Chrome in Windows with a oneline Powershell

If you face the situation where you need a browser in a Windows system and you don't have any or the only browser is Internet Explorer. You can try this on

CV

Cesar Villegas

How-to install Chrome in Windows with a oneline Powershell

If you face the situation where you need a browser in a Windows system and you don’t have any or the only browser is Internet Explorer. You can try this one-line Powershell command:

$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound)

About the author

Cesar Villegas

Writing for over two decades on software engineering, practical AI, Linux systems, digital culture, opinion essays, and film, book, and music reviews.

View profile →

Comments

Twikoo · PoC

Keep reading

Internet3 min read

Mis series favoritas del 2019

El 2019 fué un año increíble y se produjo tanto contenido que resulta imposible ver todas las series que ofrece la TV y las plataformas de streaming, hay q

Cesar VillegasRead →