mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
919d258356
This will install latest-and-greatest chrome stable.
21 lines
613 B
PowerShell
21 lines
613 B
PowerShell
$url = 'https://dl.google.com/tag/s/dl/chrome/install/beta/googlechromestandaloneenterprise.msi';
|
|
|
|
if ([Environment]::Is64BitProcess) {
|
|
$url = 'https://dl.google.com/tag/s/dl/chrome/install/beta/googlechromestandaloneenterprise64.msi'
|
|
}
|
|
|
|
$app = Get-WmiObject -Class Win32_Product | Where-Object {
|
|
$_.Name -eq "Google Chrome"
|
|
}
|
|
if ($app) {
|
|
$app.Uninstall()
|
|
}
|
|
|
|
$wc = New-Object net.webclient
|
|
$msiInstaller = "$env:temp\google-chrome.msi"
|
|
Remove-Item $msiInstaller
|
|
$wc.Downloadfile($url, $msiInstaller)
|
|
|
|
$arguments = "/i `"$msiInstaller`" /quiet"
|
|
Start-Process msiexec.exe -ArgumentList $arguments -Wait
|