Google Chrome Download Link 64bit

Trying to create a script that will download and install google chrome,
But all I find on the internet no matter how much I search is the 32bit download link:
http://dl.google.com/chrome/install/375.126/chrome_installer.exe
and
https://dl.google.com/chrome/install/latest/chrome_installer.exe
The ones I linked above are 32bit, tested them both, installed, checked the about page and that’s how I know they are 32bit and not 64bit (also they are saved in Program Files (x86) and not in Program Files).
I even tried to manually download google chrome from the official website but that’s full with variables such as appguid.
I even tried deleting some arguments from the official URL and no luck there - the installer errors out, it won’t install even if it downloads the file.

Something this big like Google Chrome - there’s no way there isn’t a link for the 64bit installer from which users (or companies) can download from.

Hi :wave:t4:

What does this question have to do with powershell?

Well, I get your point, that’s not related, buuuut… I can argue that I want to install google chrome using powershell by the following command:

(New-Object System.Net.WebClient).DownloadFile('https://dl.google.com/chrome/install/latest/chrome_installer.exe', "$env:TEMP\chrome_installer.exe")
Start-Process $env:TEMP\chrome_installer.exe

but instead of https://dl.google.com/chrome/install/latest/chrome_installer.exe, I need a different url, one for 64bit.
So while this isn’t directly related to powershell, it is related because that’s the envioument I use the URL for…

it doesn’t seem like Google wants to make it very easy to get a direct download of an installer file.
What about using winget instead?

winget show google.chrome

reveals these package details:

Found Google Chrome [Google.Chrome]
Version: 124.0.6367.202
Publisher: Google LLC
Publisher Url: https://www.google.com/
Publisher Support Url: https://support.google.com/
Author: Google LLC
Moniker: chrome
Description: A more simple, secure, and faster web browser than ever, with Google’s smarts built-in.
Homepage: https://www.google.com/chrome/
License: Freeware
License Url: https://www.google.com/chrome/terms
Privacy Url: https://policies.google.com/privacy
Copyright: Copyright 2024 Google LLC. All rights reserved.
Tags:
  browser
  chromium
  internet
  web
  webpage
Installer:
  Installer Type: wix
  Installer Url: https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi
  Installer SHA256: 652113bb972ede627e12aa5969857c08fedadbbcc9e587d01980f496090fd620

So theoretically if you just ran:

winget install google.chrome

that would install 64-bit Google Chrome.

Thank you!
Finally!
Now I use

if ((Test-Path -LiteralPath "$env:ProgramFiles\Google\Chrome\Application") -ne $true) {
    Write-Host 'Chrome > Download' -ForegroundColor green -BackgroundColor black
    (New-Object System.Net.WebClient).DownloadFile('https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi', "$env:TEMP\googlechromestandaloneenterprise64.msi")
    Write-Host 'Chrome > Install' -ForegroundColor green -BackgroundColor black
    Start-Process $env:TEMP\googlechromestandaloneenterprise64.msi -ArgumentList '/quiet'
}
1 Like