免互動安裝PPT小工具、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Seewo.PPTService -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Seewo.PPTService -e --silentwinget uninstall --id Seewo.PPTService -e --silent依安裝檔
32位元 · EXE(NSIS) · 所有使用者
靜默安裝
seewo-report_6594548a69c34306af2c9cc73a060e19 /S自訂安裝資料夾
seewo-report_6594548a69c34306af2c9cc73a060e19 /S /D=C:\Apps\ppt解除安裝
msiexec /x {958764E5-BBB2-43C1-1234-8D454ABD130A} /qn /norestart- MSI產品代碼
- {958764e5-bbb2-43c1-1234-8d454abd130a}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{958764e5-bbb2-43c1-1234-8d454abd130a}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-ppt.ps1
$url = 'https://store-g1.seewo.com/seewo-report_6594548a69c34306af2c9cc73a060e19?attname=PPTServiceSetup_1.0.0.795.exe'
$sha256 = '6A39DD862E2999CAE2CB026EE6956847EB0F3A8E50CCEB46907FD05D83797E4B'
$file = Join-Path $env:TEMP 'seewo-report_6594548a69c34306af2c9cc73a060e19'
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