Thiefを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SanJin.thief -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SanJin.thief -e --silentwinget uninstall --id SanJin.thief -e --silentインストーラー別
64ビット · EXE(NSIS)
サイレントインストール
thief-4.0.0-win64.exe /Sインストール先を指定
thief-4.0.0-win64.exe /S /D=C:\Apps\thief32ビット · EXE(NSIS)
サイレントインストール
thief-4.0.0-win32.exe /Sインストール先を指定
thief-4.0.0-win32.exe /S /D=C:\Apps\thiefPowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-thief.ps1
$url = 'https://github.com/cteamx/Thief/releases/download/4.0.0/thief-4.0.0-win64.exe'
$sha256 = '7A53345CA816D570BEB70EBE78C402C752CB390CF05D1FA211EECF0D199ADDFE'
$file = Join-Path $env:TEMP 'thief-4.0.0-win64.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 install-thief.ps1
$url = 'https://github.com/cteamx/Thief/releases/download/4.0.0/thief-4.0.0-win32.exe'
$sha256 = '27FC8947FCBA021D73280A657F31DD8C01C36FB3191B3E5FEEAAEE5A9B73D9B7'
$file = Join-Path $env:TEMP 'thief-4.0.0-win32.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