


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. When a new version of Google Chrome comes out follow this url: UPDATED VERSION 2 With auto detect if Invoke-WebRequest exists Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).I made a install script for Google Chrome to do a Silent install. Write-Verbose "Elapsed Time: $(($EndDTM-$StartDTM).TotalSeconds) Seconds" -Verbose Unregister-ScheduledTask -TaskName GoogleUpdateTaskMachineUA -Confirm:$false

Adobe Shockwave Player 12 and disable update Silent Install Google Chrome MSI. Unregister-ScheduledTask -TaskName GoogleUpdateTaskMachineCore -Confirm:$false Ninite 7-Zip Chrome Firefox Unattended Silent Installer and Updater This. (Start-Process msiexec.exe -ArgumentList $UnattendedArgs -Wait -Passthru).ExitCode Write-Verbose "Starting Installation of $Vendor $Product $Version" -Verbose Invoke-WebRequest -Uri $url -OutFile $Source Write-Verbose "Downloading $Vendor $Product $Version" -Verbose New-Item -ItemType directory -Path $Version $UnattendedArgs = "/i $PackageName.$InstallerType ALLUSERS=1 NOGOOGLEUPDATEPING=1 /qn /liewa $LogApp" TempDirectory 'ENV:Temp\Chrome' Run the script silently, True or False RunScriptSilent True Set the system architecture as a value. $output = (($chromeVersions | Where-Object " + "\$Vendor\$Product\$Version\$packageName.$installerType" Install Google Chrome 圆4 on 64-Bit systems True or False Install圆4 True Define the temporary location to cache the installer. $chromeVersions = (Invoke-WebRequest -uri $Uri).Content | ConvertFrom-Json Return the current release version of Chrome The new Chrome Standalone Windows Installer Package (. # Read the JSON and convert to a PowerShell object. # Get latest Google Chrome versions from public JSON feed - Aaron Parker Another benefit is that you get a media libary where you can easily rollback if lastest release is unstable. IMHO my scripts will only be published when they’re true evergreen.

If I would download each and every time that would be stupid. In my Infrastructure as Code deployment I deploy 14 VM’s in 30 minutes. Not to mention what happens when the script runs about the same time on 2-3 VMs. This might makes sense in some case, but in terms of VMware Tools (working on it) it’s very unefficient, unstable and waste of time to download each and every time. Which means I needed to do stuff manually or simple download and delete each and every time. You see even with Google’s URL to their latest version it wasn’t possible for me to grab the version number. This was the missing piece of the puzzle to make my Google Chrome Enterprise installation script evergreen. Yesterday’s post Download and Install Latest Mozilla Firefox about evergreen URLs spiked quite some engagement in the community on Twitter sharing their Git resources.Īaron Parker shared his Function on how to read Google’s JSON file to find the latest version.
