免互動安裝PotPlayer、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Daum.PotPlayer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Daum.PotPlayer -e --silentwinget uninstall --id Daum.PotPlayer -e --silent依安裝檔
64位元 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
PotPlayerSetup64.exe /S自訂安裝資料夾
PotPlayerSetup64.exe /S /D=C:\Apps\potplayer- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PotPlayer64
- 安裝資料夾
- %ProgramFiles%\DAUM\PotPlayer
ARM64 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
PotPlayerSetupARM64.exe /S自訂安裝資料夾
PotPlayerSetupARM64.exe /S /D=C:\Apps\potplayer- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PotPlayer64
- 安裝資料夾
- %ProgramFiles%\DAUM\PotPlayer
32位元 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
PotPlayerSetup.exe /S自訂安裝資料夾
PotPlayerSetup.exe /S /D=C:\Apps\potplayer- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\PotPlayer
- 安裝資料夾
- %ProgramFiles(x86)%\DAUM\PotPlayer
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-potplayer.ps1
$url = 'https://t1.daumcdn.net/potplayer/PotPlayer/Version/Latest/PotPlayerSetup64.exe'
$sha256 = '5AE66C53FB42A4E160BB223D959996B2C0C59460FF4D14AE3109F9329E091993'
$file = Join-Path $env:TEMP 'PotPlayerSetup64.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-potplayer.ps1
$url = 'https://t1.daumcdn.net/potplayer/PotPlayer/Version/Latest/PotPlayerSetupARM64.exe'
$sha256 = 'F889C4938E3B844C548B2A9C2E25D8E2DB924383AEFC6EABDBA04DA90117CBD9'
$file = Join-Path $env:TEMP 'PotPlayerSetupARM64.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-potplayer.ps1
$url = 'https://t1.daumcdn.net/potplayer/PotPlayer/Version/Latest/PotPlayerSetup.exe'
$sha256 = '3AD15DD85F8BEEAF96126DDEC3072F8F5402658A5C353BC69A32FE7A3DDFFDE2'
$file = Join-Path $env:TEMP 'PotPlayerSetup.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