From dcb08d9a729c1c8466fe74e1d4f140ce59f4db30 Mon Sep 17 00:00:00 2001 From: billy Date: Sat, 7 Feb 2026 01:36:11 +0200 Subject: [PATCH] Add Install Chrome in Windows Powershell --- Install Chrome in Windows Powershell | 1 + 1 file changed, 1 insertion(+) create mode 100644 Install Chrome in Windows Powershell diff --git a/Install Chrome in Windows Powershell b/Install Chrome in Windows Powershell new file mode 100644 index 0000000..509bc24 --- /dev/null +++ b/Install Chrome in Windows Powershell @@ -0,0 +1 @@ +$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) \ No newline at end of file