XRECODE 3を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id XRECODE.XRECODE3 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id XRECODE.XRECODE3 -e --silentwinget uninstall --id XRECODE.XRECODE3 -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
setup_xrecode3_win_64bit_1.192.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
setup_xrecode3_win_64bit_1.192.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\xrecode-3"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0870F25F-0A0A-4614-A1AD-7477C248502E}_is1
- インストール先フォルダー
- %ProgramFiles%\xrecode3
32ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
setup_xrecode3_win_32bit_1.192.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
setup_xrecode3_win_32bit_1.192.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\xrecode-3"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9E725299-47B7-4B43-8233-37DD430932E4}_is1
- インストール先フォルダー
- %ProgramFiles%\xrecode3
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-xrecode-3.ps1
$url = 'https://xrecode.com/download/setup_xrecode3_win_64bit_1.192.exe'
$sha256 = '8B3DB4CA8B51F9B3F92524209D31FA60F7BB2D96A14AF9180E563DAE0B62606A'
$file = Join-Path $env:TEMP 'setup_xrecode3_win_64bit_1.192.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 install-xrecode-3.ps1
$url = 'https://xrecode.com/download/setup_xrecode3_win_32bit_1.192.exe'
$sha256 = '755F9BE4D0F1D44AE5954EBB0CCBD2588E5ADD8EC5145D003764D905F5974B90'
$file = Join-Path $env:TEMP 'setup_xrecode3_win_32bit_1.192.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