免互動安裝10x、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id PureDevSoftware.10x -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id PureDevSoftware.10x -e --silentwinget uninstall --id PureDevSoftware.10x -e --silent依安裝檔
64位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
download.php /quiet /norestart解除安裝
msiexec /x {C8D75E36-60BF-42BA-BA33-A6709A4FB466} /qn /norestart- MSI產品代碼
- {c8d75e36-60bf-42ba-ba33-a6709a4fb466}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{c8d75e36-60bf-42ba-ba33-a6709a4fb466}
- UpgradeCode
- {9B881BA1-7F62-4CA2-873C-5916760E4340}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-10x.ps1
$url = 'https://www.puredevsoftware.com/download.php?file=10x_prev_versions/10xInstaller_1_0_565_0.exe&type=exe'
$sha256 = '048ED5EBB999B95BE039254250A28F31CAF2D04D0620039DAB7248C19DB9AA6F'
$file = Join-Path $env:TEMP 'download.php'
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