免互動安裝Monitorian、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id emoacht.Monitorian -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id emoacht.Monitorian -e --silentwinget uninstall --id emoacht.Monitorian -e --silent依安裝檔
32位元 · ZIP · 所有使用者
靜默安裝
msiexec /i MonitorianInstaller4162.zip /qn /norestart解除安裝
msiexec /x {FEAEA5ED-0FB6-4071-B492-C207196099B0} /qn /norestart- MSI產品代碼
- {FEAEA5ED-0FB6-4071-B492-C207196099B0}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{FEAEA5ED-0FB6-4071-B492-C207196099B0}
- UpgradeCode
- {81A4D148-75D3-462E-938D-8C208FB48E3C}
- 安裝資料夾
- %ProgramFiles(x86)%/Monitorian
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-monitorian.ps1
$url = 'https://github.com/emoacht/Monitorian/releases/download/4.16.2-Installer/MonitorianInstaller4162.zip'
$sha256 = 'B1FA6AD0698C075BA0026BCCEEB3C90F53DEBF73054D1A69BAA0BD38352AE4F2'
$file = Join-Path $env:TEMP 'MonitorianInstaller4162.zip'
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