Kommandon för att installera Postimage 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 Postimage.Postimage -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Postimage.Postimage -e --silentwinget uninstall --id Postimage.Postimage -e --silentPer installationsfil
32-bitars · EXE (Inno Setup) · Alla användare · en-US
Tyst installation
setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\postimage"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{B8BAF53F-4680-44A4-AF64-9934F924676B}_is1
- Installationsmapp
- %ProgramFiles%\Postimage
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-postimage.ps1
$url = 'https://postimages.org/setup.exe'
$sha256 = '5F882BDA4F90E8DBD0E9F1C048B4FD235DB5BB9BA0F70AC046AEF97CF6B6975C'
$file = Join-Path $env:TEMP '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