CubeICEを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id CubeSoft.CubeICE -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CubeSoft.CubeICE -e --silentwinget uninstall --id CubeSoft.CubeICE -e --silentインストーラー別
64ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
cubeice-3.5.1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
cubeice-3.5.1-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cubeice"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{C765184D-FE36-4C2C-95CE-9F0C05D61988}_is1
- インストール先フォルダー
- %ProgramFiles%\CubeICE
32ビット · EXE(Inno Setup) · すべてのユーザー · en-US
サイレントインストール
cubeice-3.5.1-x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
cubeice-3.5.1-x86.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\cubeice"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{C765184D-FE36-4C2C-95CE-9F0C05D61988}_is1
- インストール先フォルダー
- %ProgramFiles%\CubeICE
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-cubeice.ps1
$url = 'https://dl.cube-soft.jp/archive/cubeice-3.5.1-x64.exe'
$sha256 = '554F995AF03680661C910C22BECB15CC7BE21773F8D9EE127BD3CE16ADF1A085'
$file = Join-Path $env:TEMP 'cubeice-3.5.1-x64.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-cubeice.ps1
$url = 'https://dl.cube-soft.jp/archive/cubeice-3.5.1-x86.exe'
$sha256 = 'E0AF892E6DEB44BFC2DC7F687A138A2F13C85D7A7F8730F1490DDAB86EF934C2'
$file = Join-Path $env:TEMP 'cubeice-3.5.1-x86.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