免互動安裝i3ALLSYNC 4、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id i3-Technologies.i3ALLSYNC.4 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id i3-Technologies.i3ALLSYNC.4 -e --silentwinget uninstall --id i3-Technologies.i3ALLSYNC.4 -e --silent依安裝檔
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i "i3ALLSYNC 4.0_4.0.1.113.msi" /qn /norestart寫入記錄檔
msiexec /i "i3ALLSYNC 4.0_4.0.1.113.msi" /qn /norestart /l*v "%TEMP%\i3allsync-4-install.log"解除安裝
msiexec /x {E7E52CC7-653D-4A5A-AF9B-207FEF5C7DEB} /qn /norestart- MSI產品代碼
- {E7E52CC7-653D-4A5A-AF9B-207FEF5C7DEB}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{E7E52CC7-653D-4A5A-AF9B-207FEF5C7DEB}
- UpgradeCode
- {CC061F88-FD43-4668-8FF1-2BC356526FEF}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-i3allsync-4.ps1
$url = 'https://updates.i3sw.i3-technologies.com/i3allsync4/transmitter/windows/i3ALLSYNC%204.0_4.0.1.113.msi'
$sha256 = '327AB728459BEC50FE422290BCF0C275F30D6563144BFEEE993359E669800B25'
$file = Join-Path $env:TEMP 'i3ALLSYNC 4.0_4.0.1.113.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