Kommandon för att installera Deckboy 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 UtopianAcademy.Deckboy -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id UtopianAcademy.Deckboy -e --silentwinget uninstall --id UtopianAcademy.Deckboy -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
Deckboy-0.99.367-windows-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
Deckboy-0.99.367-windows-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\deckboy"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7E2C9F41-6B3D-4E1A-B755-DECB0A0AD001}_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-deckboy.ps1
$url = 'https://github.com/Utopian-Academy/Deckboy/releases/download/v0.99.367/Deckboy-0.99.367-windows-x64-setup.exe'
$sha256 = '6CD51F909950BCCF702A14A3274F16C4EF643333A08C4957451EA17003C01B9D'
$file = Join-Path $env:TEMP 'Deckboy-0.99.367-windows-x64-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