Retuneを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id OpenCLICollective.Retune -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenCLICollective.Retune -e --silentwinget uninstall --id OpenCLICollective.Retune -e --silentインストーラー別
64ビット · EXE(NSIS) · 現在のユーザー
サイレントインストール
Retune-0.3.26-windows-x64-setup.exe /Sインストール先を指定
Retune-0.3.26-windows-x64-setup.exe /S /D=C:\Apps\retune- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Retune
- インストール先フォルダー
- %LocalAppData%\Retune
ARM64 · EXE(NSIS) · 現在のユーザー
サイレントインストール
Retune-0.3.26-windows-arm64-setup.exe /Sインストール先を指定
Retune-0.3.26-windows-arm64-setup.exe /S /D=C:\Apps\retune- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Retune
- インストール先フォルダー
- %LocalAppData%\Retune
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-retune.ps1
$url = 'https://github.com/open-cli-collective/Retune/releases/download/v0.3.26/Retune-0.3.26-windows-x64-setup.exe'
$sha256 = 'D9BD5BC4B077EF15F1E8CB871443F66F97EF5BEBD356D895397B618D83B8770A'
$file = Join-Path $env:TEMP 'Retune-0.3.26-windows-x64-setup.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-retune.ps1
$url = 'https://github.com/open-cli-collective/Retune/releases/download/v0.3.26/Retune-0.3.26-windows-arm64-setup.exe'
$sha256 = 'B9FD1067FDD373A73D58B4A9721299D77E8801098BA92740432816D9C8419E19'
$file = Join-Path $env:TEMP 'Retune-0.3.26-windows-arm64-setup.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