免互動安裝axesPDF、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id axes4.axesPDF -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id axes4.axesPDF -e --silentwinget uninstall --id axes4.axesPDF -e --silent依安裝檔
64位元 · EXE(WiX Burn) · 所有使用者
靜默安裝
axesPDF.Setup.2.5.0.exe /quiet /norestart解除安裝
msiexec /x {94FE7410-2613-4D03-8169-08EE3D740D65} /qn /norestart- MSI產品代碼
- {94fe7410-2613-4d03-8169-08ee3d740d65}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{94fe7410-2613-4d03-8169-08ee3d740d65}
- UpgradeCode
- {E21DDBB5-9A8C-45AC-97A0-153CA15A621C}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-axespdf.ps1
$url = 'https://www.axes4.com/_Resources/Persistent/e/5/e/1/e5e1319fcd8bbf6744aaba1c1c62b4e277a5b0d6/axesPDF.Setup.2.5.0.exe'
$sha256 = '7290F15CF2A6CB5A34CBE056BAD9E635CDBD660FDDCAC7374169B99F7A4CD758'
$file = Join-Path $env:TEMP 'axesPDF.Setup.2.5.0.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