免互動安裝IVI Shared Components、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id IviFoundation.SharedComponents -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id IviFoundation.SharedComponents -e --silentwinget uninstall --id IviFoundation.SharedComponents -e --silent依安裝檔
32位元 · EXE(WiX Burn) · 所有使用者 · en-US
靜默安裝
IviSharedComponents_303.exe /quiet /norestart解除安裝
msiexec /x {79C6A066-C2D7-45BC-A52C-A50C0D048A14} /qn /norestart- MSI產品代碼
- {79c6a066-c2d7-45bc-a52c-a50c0d048a14}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{79c6a066-c2d7-45bc-a52c-a50c0d048a14}
- UpgradeCode
- {33DCF125-DD8B-407B-85FB-0DA1D33D75CD}
- DisplayVersion
- 3.0.7205.0
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-ivi-shared-components.ps1
$url = 'https://www.ivifoundation.org/downloads/Shared%20Components/IviSharedComponents_303.exe'
$sha256 = 'B0E6012D7FE20A7528DD11DFDA5DC7AE2244E5B6D3A5F8737EFBEBE025C22FC8'
$file = Join-Path $env:TEMP 'IviSharedComponents_303.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 '/quiet /norestart' -Wait