Ordres per instal·lar gauche 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
Per instal·lador
64 bits · MSI
Instal·lació silenciosa
msiexec /i Gauche-mingw-0.9.15-64bit.msi /qn /norestartDesar un registre
msiexec /i Gauche-mingw-0.9.15-64bit.msi /qn /norestart /l*v "%TEMP%\gauche-install.log"32 bits · MSI
Instal·lació silenciosa
msiexec /i Gauche-mingw-0.9.15-32bit.msi /qn /norestartDesar un registre
msiexec /i Gauche-mingw-0.9.15-32bit.msi /qn /norestart /l*v "%TEMP%\gauche-install.log"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-gauche.ps1
$url = 'https://github.com/shirok/Gauche/releases/download/release0_9_15/Gauche-mingw-0.9.15-64bit.msi'
$sha256 = '3E0F6C2139FC4C9DAEC99402BCDF3EBC33114D6167538B28994246227B174F54'
$file = Join-Path $env:TEMP 'Gauche-mingw-0.9.15-64bit.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-gauche.ps1
$url = 'https://github.com/shirok/Gauche/releases/download/release0_9_15/Gauche-mingw-0.9.15-32bit.msi'
$sha256 = '0EB8F18FB87913F7CC03F59FE406E91405DF5F24AEB5ECF1F05170DD2F79E303'
$file = Join-Path $env:TEMP 'Gauche-mingw-0.9.15-32bit.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