Visual Controlsを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id AcuityBrands.VisualControls -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AcuityBrands.VisualControls -e --silentwinget uninstall --id AcuityBrands.VisualControls -e --silentインストーラー別
64ビット · ZIP · すべてのユーザー
サイレントインストール
Download.aspx /quiet /norestartアンインストール
msiexec /x {E1520DAF-BE0F-47FC-A12B-F319F77F2FEC} /qn /norestart- MSIプロダクトコード
- {e1520daf-be0f-47fc-a12b-f319f77f2fec}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{e1520daf-be0f-47fc-a12b-f319f77f2fec}
- UpgradeCode
- {7FD69ED7-722E-4AF3-B48B-81EDE198680E}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-visual-controls.ps1
$url = 'https://www.visual-3d.com/Tools/Download.aspx?file=vc-releases-production'
$sha256 = '79484F59292BA1DB98780D0CA68C31CCE8118519B50D6349833A68A96BCAD54F'
$file = Join-Path $env:TEMP 'Download.aspx'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait