Winchiselを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id lejy.Winchisel -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id lejy.Winchisel -e --silentwinget uninstall --id lejy.Winchisel -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
Winchisel-Setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Winchisel-Setup-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\winchisel"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A1C0E001-0A00-4000-8000-000000000001}_is1
- インストール先フォルダー
- %ProgramFiles%\Winchisel
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-winchisel.ps1
$url = 'https://github.com/lejyfps/winchisel/releases/download/v1.0.9.1/Winchisel-Setup-x64.exe'
$sha256 = '1C372E64C8299D945164C7F5574616F67295CAB54E1FC3D1F7E8FC4A4D8DEE98'
$file = Join-Path $env:TEMP 'Winchisel-Setup-x64.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait