免互動安裝SHOTPlus Underground、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Orica.SHOTPlus.Underground -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Orica.SHOTPlus.Underground -e --silentwinget uninstall --id Orica.SHOTPlus.Underground -e --silent依安裝檔
64位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
shotplusug.installer.production.exe /quiet /norestart解除安裝
msiexec /x {73D44FBE-541C-4726-B993-A22EC09FA48E} /qn /norestart- MSI產品代碼
- {73d44fbe-541c-4726-b993-a22ec09fa48e}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{73d44fbe-541c-4726-b993-a22ec09fa48e}
- UpgradeCode
- {20D4F11A-F13E-432F-B2E1-140F86F66386}
32位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
shotplusug.installer.production.exe /quiet /norestart解除安裝
msiexec /x {73D44FBE-541C-4726-B993-A22EC09FA48E} /qn /norestart- MSI產品代碼
- {73d44fbe-541c-4726-b993-a22ec09fa48e}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{73d44fbe-541c-4726-b993-a22ec09fa48e}
- UpgradeCode
- {20D4F11A-F13E-432F-B2E1-140F86F66386}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-shotplus-underground.ps1
$url = 'https://downloads.blastiq.com/installers/shotplusug/production/shotplusug.installer.production.exe'
$sha256 = 'CF6253B79CCAE98BCCDD9F160C8C0F9771B25C3340C5AC0142E00B333946CCE9'
$file = Join-Path $env:TEMP 'shotplusug.installer.production.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 install-shotplus-underground.ps1
$url = 'https://downloads.blastiq.com/installers/shotplusug/production/shotplusug.installer.production.exe'
$sha256 = 'CF6253B79CCAE98BCCDD9F160C8C0F9771B25C3340C5AC0142E00B333946CCE9'
$file = Join-Path $env:TEMP 'shotplusug.installer.production.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