ultimatecubeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id G3G4X5X6.ultimate-cube -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id G3G4X5X6.ultimate-cube -e --silentwinget uninstall --id G3G4X5X6.ultimate-cube -e --silentインストーラー別
64ビット · EXE(Inno Setup) · 現在のユーザー
サイレントインストール
ultimatecube_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
ultimatecube_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ultimatecube"- アンインストール用レジストリキー
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{31127BB1-54CF-45C9-A02E-6747A351FDDB}_is1
64ビット · EXE(Inno Setup) · すべてのユーザー
サイレントインストール
ultimatecube_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
ultimatecube_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\ultimatecube"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{31127BB1-54CF-45C9-A02E-6747A351FDDB}_is1
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-ultimatecube.ps1
$url = 'https://github.com/G3G4X5X6/ultimate-cube/releases/download/v7.0.0/ultimatecube_setup.exe'
$sha256 = '398802409A47469BBF50AE8321ADC76F30EC06A1240DEE70B000C656AB229C3C'
$file = Join-Path $env:TEMP 'ultimatecube_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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-ultimatecube.ps1
$url = 'https://github.com/G3G4X5X6/ultimate-cube/releases/download/v7.0.0/ultimatecube_setup.exe'
$sha256 = '398802409A47469BBF50AE8321ADC76F30EC06A1240DEE70B000C656AB229C3C'
$file = Join-Path $env:TEMP 'ultimatecube_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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait