Jump to content

Влади's Blog

  • entries
    5
  • comments
    2
  • views
    55,911

Install Google Chrome on Windows Server with a Powershell Script


Влади

1,662 views

 

$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)

 

2 Comments


Recommended Comments

  • Administrator

Сигурен  начин да се счупи нещо работещо ?

webkit sucks

Link to comment
  • Owner
Влади

Posted

Преди 2 часа, 111111 написа:

Сигурен  начин да се счупи нещо работещо ?

webkit sucks

Ти човека с Opera-та да мълчиш!

  • Haha 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.