ActiveProtect Agentを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
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 --silentインストーラー別
64ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i "Synology ActiveProtect Agent-x64-2.0.0-0773.msi" /qn /norestartログを出力
msiexec /i "Synology ActiveProtect Agent-x64-2.0.0-0773.msi" /qn /norestart /l*v "%TEMP%\activeprotect-agent-install.log"アンインストール
msiexec /x {A7F88332-3962-493D-BF69-78350E07696A} /qn /norestart- MSIプロダクトコード
- {A7F88332-3962-493D-BF69-78350E07696A}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A7F88332-3962-493D-BF69-78350E07696A}
- UpgradeCode
- {397AA9E1-F542-4BED-8BBF-ACD0F154BBB2}
32ビット · MSI · すべてのユーザー
サイレントインストール
msiexec /i "Synology ActiveProtect Agent-x86-2.0.0-0773.msi" /qn /norestartログを出力
msiexec /i "Synology ActiveProtect Agent-x86-2.0.0-0773.msi" /qn /norestart /l*v "%TEMP%\activeprotect-agent-install.log"アンインストール
msiexec /x {D1968315-F7E8-4F59-82CD-912549D4902A} /qn /norestart- MSIプロダクトコード
- {D1968315-F7E8-4F59-82CD-912549D4902A}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{D1968315-F7E8-4F59-82CD-912549D4902A}
- UpgradeCode
- {397AA9E1-F542-4BED-8BBF-ACD0F154BBB2}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
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