免互動安裝SysGauge、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Flexense.SysGauge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Flexense.SysGauge -e --silentwinget uninstall --id Flexense.SysGauge -e --silent依安裝檔
64位元 · EXE(NSIS) · en-US
靜默安裝
sysgauge_setup_v12.1.18_x64.exe /S自訂安裝資料夾
sysgauge_setup_v12.1.18_x64.exe /S /D=C:\Apps\sysgauge- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\SysGauge
32位元 · EXE(NSIS) · en-US
靜默安裝
sysgauge_setup_v12.1.18.exe /S自訂安裝資料夾
sysgauge_setup_v12.1.18.exe /S /D=C:\Apps\sysgauge- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\SysGauge
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-sysgauge.ps1
$url = 'https://www.sysgauge.com/setups_x64/sysgauge_setup_v12.1.18_x64.exe'
$sha256 = '4242D6074594916BD95FA74A07861E9049E5B9B43200238D9815626BD980B7C2'
$file = Join-Path $env:TEMP 'sysgauge_setup_v12.1.18_x64.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-sysgauge.ps1
$url = 'https://www.sysgauge.com/setups/sysgauge_setup_v12.1.18.exe'
$sha256 = 'E92D5318C781E97EB544F59B57A9213B8B89EDCAC08381F6AAA81609A2437BDE'
$file = Join-Path $env:TEMP 'sysgauge_setup_v12.1.18.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