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