Kommandon för att installera ArmA3Sync 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 SonsofExiled.Arma3Sync -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SonsofExiled.Arma3Sync -e --silentwinget uninstall --id SonsofExiled.Arma3Sync -e --silentPer installationsfil
32-bitars · EXE (Inno Setup)
Tyst installation
arma3sync-installer-1-7-107.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
arma3sync-installer-1-7-107.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\arma3sync"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-arma3sync.ps1
$url = 'http://sonsofexiled.fr/arma3sync/releases/arma3sync-installer-1-7-107.exe'
$sha256 = '01F9B758ED274FFB99A9450AD44B82F73EBF3D07416B129FEAF7A08B96B4E0C4'
$file = Join-Path $env:TEMP 'arma3sync-installer-1-7-107.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