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