gaucheを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
インストーラー別
64ビット · MSI
サイレントインストール
msiexec /i Gauche-mingw-0.9.15-64bit.msi /qn /norestartログを出力
msiexec /i Gauche-mingw-0.9.15-64bit.msi /qn /norestart /l*v "%TEMP%\gauche-install.log"32ビット · MSI
サイレントインストール
msiexec /i Gauche-mingw-0.9.15-32bit.msi /qn /norestartログを出力
msiexec /i Gauche-mingw-0.9.15-32bit.msi /qn /norestart /l*v "%TEMP%\gauche-install.log"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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