Kommandon för att installera MagicBox utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med 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 --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Aktuell användare · zh
Tyst installation
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\magicbox"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{79552450-AE33-45EA-B2C3-D5671D6E07A3}_is1
32-bitars · EXE (Inno Setup) · Alla användare · zh
Tyst installation
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
MagicBoxSetup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\magicbox"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{79552450-AE33-45EA-B2C3-D5671D6E07A3}_is1
- Installationsmapp
- %ProgramFiles%\MagicBox
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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