Befehle, um gauche ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Nach Installer
64-Bit · MSI
Stille Installation
msiexec /i Gauche-mingw-0.9.15-64bit.msi /qn /norestartProtokoll schreiben
msiexec /i Gauche-mingw-0.9.15-64bit.msi /qn /norestart /l*v "%TEMP%\gauche-install.log"32-Bit · MSI
Stille Installation
msiexec /i Gauche-mingw-0.9.15-32bit.msi /qn /norestartProtokoll schreiben
msiexec /i Gauche-mingw-0.9.15-32bit.msi /qn /norestart /l*v "%TEMP%\gauche-install.log"PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
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