Kommandon för att installera APC 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 Avarwand.APC -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Avarwand.APC -e --silentwinget uninstall --id Avarwand.APC -e --silentPer installationsfil
32-bitars · EXE (Inno Setup)
Tyst installation
APC-2.5-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
APC-2.5-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\apc"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-apc.ps1
$url = 'https://github.com/avarwand/APC/releases/download/wgapc/APC-2.5-Setup.exe'
$sha256 = 'F984A1FD20D060927AE8FD8CE45B19481BFA1053A413C872C4BF72C14BA424AF'
$file = Join-Path $env:TEMP 'APC-2.5-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