Open j143 opened 3 years ago
For example, https://github.com/actions/virtual-environments/blob/main/images/win/scripts/Installers/Install-Chrome.ps1
# Download and install latest Chrome browser $ChromeInstallerFile = "chrome_installer.exe" $ChromeInstallerUrl = "https://dl.google.com/chrome/install/375.126/${ChromeInstallerFile}" Install-Binary -Url $ChromeInstallerUrl -Name $ChromeInstallerFile -ArgumentList ("/silent", "/install") # Prepare firewall rules Write-Host "Adding the firewall rule for Google update blocking..." New-NetFirewallRule -DisplayName "BlockGoogleUpdate" -Direction Outbound -Action Block -Program "C:\Program Files (x86)\Google\Update\GoogleUpdate.exe" $GoogleSvcs = ('gupdate','gupdatem') $GoogleSvcs | Stop-SvcWithErrHandling -StopOnError $GoogleSvcs | Set-SvcWithErrHandling -Arguments @{StartupType = "Disabled"} ...
https://github.com/j143/notebooks/blob/main/Install-SystemDS.ps1
For example, https://github.com/actions/virtual-environments/blob/main/images/win/scripts/Installers/Install-Chrome.ps1