MagicBoxを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id CodeMiracle.MagicBox -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CodeMiracle.MagicBox -e --silentwinget uninstall --id CodeMiracle.MagicBox -e --silentインストーラー別
32ビット · EXE(Inno Setup) · 現在のユーザー · zh
サイレントインストール
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\magicbox"- アンインストール用レジストリキー
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{79552450-AE33-45EA-B2C3-D5671D6E07A3}_is1
32ビット · EXE(Inno Setup) · すべてのユーザー · zh
サイレントインストール
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-インストール先を指定
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\magicbox"- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{79552450-AE33-45EA-B2C3-D5671D6E07A3}_is1
- インストール先フォルダー
- %ProgramFiles%\MagicBox
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-magicbox.ps1
$url = 'https://github.com/dmqj123/magic_box/releases/download/1.1.1/MagicBoxSetup.exe'
$sha256 = '955C12740EE448D5F7A960946B4F0BB3BEDC19FE238E67F17F4DA809BB9FFEEF'
$file = Join-Path $env:TEMP 'MagicBoxSetup.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-magicbox.ps1
$url = 'https://github.com/dmqj123/magic_box/releases/download/1.1.1/MagicBoxSetup.exe'
$sha256 = '955C12740EE448D5F7A960946B4F0BB3BEDC19FE238E67F17F4DA809BB9FFEEF'
$file = Join-Path $env:TEMP 'MagicBoxSetup.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