Kommandon för att installera ActiveProtect Agent 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 Synology.ActiveProtectAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Synology.ActiveProtectAgent -e --silentwinget uninstall --id Synology.ActiveProtectAgent -e --silentPer installationsfil
64-bitars · MSI · Alla användare
Tyst installation
msiexec /i "Synology ActiveProtect Agent-x64-2.0.0-0773.msi" /qn /norestartSkriv en logg
msiexec /i "Synology ActiveProtect Agent-x64-2.0.0-0773.msi" /qn /norestart /l*v "%TEMP%\activeprotect-agent-install.log"Avinstallation
msiexec /x {A7F88332-3962-493D-BF69-78350E07696A} /qn /norestart- MSI-produktkod
- {A7F88332-3962-493D-BF69-78350E07696A}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A7F88332-3962-493D-BF69-78350E07696A}
- UpgradeCode
- {397AA9E1-F542-4BED-8BBF-ACD0F154BBB2}
32-bitars · MSI · Alla användare
Tyst installation
msiexec /i "Synology ActiveProtect Agent-x86-2.0.0-0773.msi" /qn /norestartSkriv en logg
msiexec /i "Synology ActiveProtect Agent-x86-2.0.0-0773.msi" /qn /norestart /l*v "%TEMP%\activeprotect-agent-install.log"Avinstallation
msiexec /x {D1968315-F7E8-4F59-82CD-912549D4902A} /qn /norestart- MSI-produktkod
- {D1968315-F7E8-4F59-82CD-912549D4902A}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{D1968315-F7E8-4F59-82CD-912549D4902A}
- UpgradeCode
- {397AA9E1-F542-4BED-8BBF-ACD0F154BBB2}
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-activeprotect-agent.ps1
$url = 'https://global.synologydownload.com/download/Utility/ActiveProtectAgent/2.0.0-0773/Windows/x86_64/Synology%20ActiveProtect%20Agent-x64-2.0.0-0773.msi'
$sha256 = 'C486C92EB0B02E90956CC00BD3048A3BDDF458CACF13B896BE53E0F96037FE3B'
$file = Join-Path $env:TEMP 'Synology ActiveProtect Agent-x64-2.0.0-0773.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 install-activeprotect-agent.ps1
$url = 'https://global.synologydownload.com/download/Utility/ActiveProtectAgent/2.0.0-0773/Windows/i686/Synology%20ActiveProtect%20Agent-x86-2.0.0-0773.msi'
$sha256 = 'FE876FD71DD89EBEA70D77D0EEBE4BC26FCE11DEE45385003B2BFCAD68C7B6BF'
$file = Join-Path $env:TEMP 'Synology ActiveProtect Agent-x86-2.0.0-0773.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