MotionProを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id ArrayNetworks.MotionPro -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ArrayNetworks.MotionPro -e --silentwinget uninstall --id ArrayNetworks.MotionPro -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i MotionPro_Windows_1.2.25.msi /qn /norestartログを出力
msiexec /i MotionPro_Windows_1.2.25.msi /qn /norestart /l*v "%TEMP%\motionpro-install.log"- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\MotionPro VPN Client
- DisplayVersion
- 9.4.0.0
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-motionpro.ps1
$url = 'https://support.arraynetworks.net/prx/001/http/supportportal.arraynetworks.net/downloads/pkg_9_4_0_505/MP_Windows_1.2.25/MotionPro_Windows_1.2.25.msi'
$sha256 = '90FEBD808A9F5AAE3A1B92F7CD7ED5BBCA98229CA47A7AA23C5FB3B12213027E'
$file = Join-Path $env:TEMP 'MotionPro_Windows_1.2.25.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