Ordres per instal·lar ActiveProtect Agent sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i "Synology ActiveProtect Agent-x64-2.0.0-0773.msi" /qn /norestartDesar un registre
msiexec /i "Synology ActiveProtect Agent-x64-2.0.0-0773.msi" /qn /norestart /l*v "%TEMP%\activeprotect-agent-install.log"Desinstal·lar
msiexec /x {A7F88332-3962-493D-BF69-78350E07696A} /qn /norestart- Codi de producte MSI
- {A7F88332-3962-493D-BF69-78350E07696A}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A7F88332-3962-493D-BF69-78350E07696A}
- UpgradeCode
- {397AA9E1-F542-4BED-8BBF-ACD0F154BBB2}
32 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i "Synology ActiveProtect Agent-x86-2.0.0-0773.msi" /qn /norestartDesar un registre
msiexec /i "Synology ActiveProtect Agent-x86-2.0.0-0773.msi" /qn /norestart /l*v "%TEMP%\activeprotect-agent-install.log"Desinstal·lar
msiexec /x {D1968315-F7E8-4F59-82CD-912549D4902A} /qn /norestart- Codi de producte MSI
- {D1968315-F7E8-4F59-82CD-912549D4902A}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{D1968315-F7E8-4F59-82CD-912549D4902A}
- UpgradeCode
- {397AA9E1-F542-4BED-8BBF-ACD0F154BBB2}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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