When a new version of Google Chrome comes out follow this url: https://enterprise.google.com/chrome/chrome-browser/
Next find the download button -> Right click on the download button and choose Copy Download Location paste it in the script and it will download the latest version.
# Silent Install Chrome# https://enterprise.google.com/chrome/chrome-browser/# Path for the workdir
$workdir ="c:\installer\"
# Check if work directory exists if not create itIf(Test-Path-Path $workdir -PathTypeContainer){Write-Host"$workdir already exists"-ForegroundColorRed}
ELSE
{New-Item-Path $workdir -ItemType directory }# Download the installer
$source ="https://dl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B03FE9563-80F9-119F-DA3D-72FBBB94BC26%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dprefers%26ap%3Dx64-stable/dl/chrome/install/googlechromestandaloneenterprise64.msi"
$destination ="$workdir\chrome.msi"Invoke-WebRequest $source -OutFile $destination
# Start the installation
msiexec.exe /i "$workdir\chrome.msi"/q /norestart
# Wait XX Seconds for the installation to finishStart-Sleep-s 35# Remove the installer
rm -Force $workdir\chrome*
I made a install script for Google Chrome to do a Silent install.
UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists
Improvements are welcome!
When a new version of Google Chrome comes out follow this url: https://enterprise.google.com/chrome/chrome-browser/
Next find the download button -> Right click on the download button and choose Copy Download Location paste it in the script and it will download the latest version.
For Windows 7 please change
To
Since Powershell in Windows 7 does not support the Invoke-WebRequest