Kommandon för att installera Pocket Sync 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 PocketSync.PocketSync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PocketSync.PocketSync -e --silentwinget uninstall --id PocketSync.PocketSync -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare · en-US
Tyst installation
Pocket.Sync_7.2.1_x64-setup.exe /SEgen mapp
Pocket.Sync_7.2.1_x64-setup.exe /S /D=C:\Apps\pocket-sync- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Pocket Sync
- Installationsmapp
- %LocalAppData%\Pocket Sync
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-pocket-sync.ps1
$url = 'https://github.com/neil-morrison44/pocket-sync/releases/download/v7.2.1/Pocket.Sync_7.2.1_x64-setup.exe'
$sha256 = 'CA89397D8E3DCB35725887E41E72AECE0E2DD8B5794B3858FBE75D000AA4080B'
$file = Join-Path $env:TEMP 'Pocket.Sync_7.2.1_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 '/S' -Wait