Ordres per instal·lar Google Assistant Preview 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 Melvin-Abraham.Google-Assistant.Preview -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Melvin-Abraham.Google-Assistant.Preview -e --silentwinget uninstall --id Melvin-Abraham.Google-Assistant.Preview -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
Google_Assistant-Setup-1.0.0-rc.2.exe /SUna altra carpeta
Google_Assistant-Setup-1.0.0-rc.2.exe /S /D=C:\Apps\google-assistant-previewPowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-google-assistant-preview.ps1
$url = 'https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/releases/download/v1.0.0-rc.2/Google_Assistant-Setup-1.0.0-rc.2.exe'
$sha256 = '2277E085C3BDC1F2F5B09281B403517CAEFEEC45E443777BAEE3D90A9A571929'
$file = Join-Path $env:TEMP 'Google_Assistant-Setup-1.0.0-rc.2.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait