Throneを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Throneproj.Throne -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Throneproj.Throne -e --silentwinget uninstall --id Throneproj.Throne -e --silentインストーラー別
64ビット · EXE(Inno Setup) · 現在のユーザー · en-US
サイレントインストール
Throne-1.3.2-windows-universal-installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Throne-1.3.2-windows-universal-installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\throne"ARM64 · EXE(Inno Setup) · 現在のユーザー · en-US
サイレントインストール
Throne-1.3.2-windows-universal-installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Throne-1.3.2-windows-universal-installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\throne"32ビット · EXE(Inno Setup) · 現在のユーザー · en-US
サイレントインストール
Throne-1.3.2-windows-universal-installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
Throne-1.3.2-windows-universal-installer.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\throne"PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-throne.ps1
$url = 'https://github.com/throneproj/Throne/releases/download/1.3.2/Throne-1.3.2-windows-universal-installer.exe'
$sha256 = '4DF6A09EABC19A797B7E94B49790C63E3E5A90749898B5749F496D2A44E9C0C7'
$file = Join-Path $env:TEMP 'Throne-1.3.2-windows-universal-installer.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-throne.ps1
$url = 'https://github.com/throneproj/Throne/releases/download/1.3.2/Throne-1.3.2-windows-universal-installer.exe'
$sha256 = '4DF6A09EABC19A797B7E94B49790C63E3E5A90749898B5749F496D2A44E9C0C7'
$file = Join-Path $env:TEMP 'Throne-1.3.2-windows-universal-installer.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-throne.ps1
$url = 'https://github.com/throneproj/Throne/releases/download/1.3.2/Throne-1.3.2-windows-universal-installer.exe'
$sha256 = '4DF6A09EABC19A797B7E94B49790C63E3E5A90749898B5749F496D2A44E9C0C7'
$file = Join-Path $env:TEMP 'Throne-1.3.2-windows-universal-installer.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