Kommandon för att installera GoodSync 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 SiberSystems.GoodSync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SiberSystems.GoodSync -e --silentwinget uninstall --id SiberSystems.GoodSync -e --silentPer installationsfil
32-bitars · EXE (NSIS) · Alla användare
Tyst installation
GoodSync-vsub-Setup.exe /SEgen mapp
GoodSync-vsub-Setup.exe /S /D=C:\Apps\goodsync32-bitars · MSI
Tyst installation
msiexec /i GoodSync-vsub-Setup.msi /qn /norestartSkriv en logg
msiexec /i GoodSync-vsub-Setup.msi /qn /norestart /l*v "%TEMP%\goodsync-install.log"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-goodsync.ps1
$url = 'https://www.goodsync.com/download/GoodSync-vsub-Setup.exe'
$sha256 = 'D853127575F08026BCE068B39EA9EB8D063E9A461E55157AC2E6B75A576AE6CF'
$file = Join-Path $env:TEMP 'GoodSync-vsub-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 install-goodsync.ps1
$url = 'https://www.goodsync.com/download/GoodSync-vsub-Setup.msi'
$sha256 = '36D7B8EB8F903C3DD9782C5A70B704678027290FCFCFBC7E89D89F78843A0EEE'
$file = Join-Path $env:TEMP 'GoodSync-vsub-Setup.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait