Ordres per instal·lar Google Chrome sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id Google.Chrome -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Google.Chrome -e --silentwinget uninstall --id Google.Chrome -e --silentPer instal·lador
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i googlechromestandaloneenterprise64.msi /qn /norestartDesar un registre
msiexec /i googlechromestandaloneenterprise64.msi /qn /norestart /l*v "%TEMP%\google-chrome-install.log"Desinstal·lar
msiexec /x {807524DE-67B8-3922-BB35-773E5AFB6EBB} /qn /norestart- Codi de producte MSI
- {807524DE-67B8-3922-BB35-773E5AFB6EBB}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{807524DE-67B8-3922-BB35-773E5AFB6EBB}
- UpgradeCode
- {C1DFDF69-5945-32F2-A35E-EE94C99C7CF4}
ARM64 · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i googlechromestandaloneenterprise_arm64.msi /qn /norestartDesar un registre
msiexec /i googlechromestandaloneenterprise_arm64.msi /qn /norestart /l*v "%TEMP%\google-chrome-install.log"Desinstal·lar
msiexec /x {8CAFEFE2-CDDF-3198-8DA4-9C19DD9F0714} /qn /norestart- Codi de producte MSI
- {8CAFEFE2-CDDF-3198-8DA4-9C19DD9F0714}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8CAFEFE2-CDDF-3198-8DA4-9C19DD9F0714}
- UpgradeCode
- {C1DFDF69-5945-32F2-A35E-EE94C99C7CF4}
32 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i googlechromestandaloneenterprise.msi /qn /norestartDesar un registre
msiexec /i googlechromestandaloneenterprise.msi /qn /norestart /l*v "%TEMP%\google-chrome-install.log"Desinstal·lar
msiexec /x {00016FE3-603D-30A8-A18D-286C6CF8D90D} /qn /norestart- Codi de producte MSI
- {00016FE3-603D-30A8-A18D-286C6CF8D90D}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{00016FE3-603D-30A8-A18D-286C6CF8D90D}
- UpgradeCode
- {C1DFDF69-5945-32F2-A35E-EE94C99C7CF4}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-google-chrome.ps1
$url = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi'
$sha256 = '55EDACD348B4C1C9B291DAB19E4665929C7A127C013D9625970BE924F893273F'
$file = Join-Path $env:TEMP 'googlechromestandaloneenterprise64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-google-chrome.ps1
$url = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise_arm64.msi'
$sha256 = 'C9D72C63776AA8A4B3212D413376CF1CE24CF007F9DBA9A048B73CB0F08F41B1'
$file = Join-Path $env:TEMP 'googlechromestandaloneenterprise_arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-google-chrome.ps1
$url = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise.msi'
$sha256 = 'D57347B99605CD231726FDD605A0F21C6BA9750F3B688697F8F008E2B96984FA'
$file = Join-Path $env:TEMP 'googlechromestandaloneenterprise.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait