ZohoConnectを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Zoho.Connect -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Zoho.Connect -e --silentwinget uninstall --id Zoho.Connect -e --silentインストーラー別
64ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
ZohoConnect-installer-x64-v1.5.0.exe /Sインストール先を指定
ZohoConnect-installer-x64-v1.5.0.exe /S /D=C:\Apps\zohoconnect- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\d5f212ef-8842-523f-ac7f-05cc7f231d20
32ビット · EXE(NSIS) · すべてのユーザー
サイレントインストール
ZohoConnect-installer-x86-v1.5.0.exe /Sインストール先を指定
ZohoConnect-installer-x86-v1.5.0.exe /S /D=C:\Apps\zohoconnect- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\d5f212ef-8842-523f-ac7f-05cc7f231d20
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-zohoconnect.ps1
$url = 'https://css.zohostatic.com/pulse/app/windows/ZohoConnect-installer-x64-v1.5.0.exe'
$sha256 = 'F0CA2F1732CD4EBF80781FEEFF2B487819677A5086DEC64D51E20C29794DA5F1'
$file = Join-Path $env:TEMP 'ZohoConnect-installer-x64-v1.5.0.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 '/S' -Wait install-zohoconnect.ps1
$url = 'https://css.zohostatic.com/pulse/app/windows/ZohoConnect-installer-x86-v1.5.0.exe'
$sha256 = '7BDC8B033EE85EF809CD0074FB0947F8BD15A83C71A0E9C968C65F04596A0045'
$file = Join-Path $env:TEMP 'ZohoConnect-installer-x86-v1.5.0.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 '/S' -Wait