免互動安裝playit、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id DevelopedMethods.playit -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DevelopedMethods.playit -e --silentwinget uninstall --id DevelopedMethods.playit -e --silent依安裝檔
64位元 · 免安裝版
免安裝(可攜版)
64位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i playit-windows-x86_64-signed.msi /qn /norestart寫入記錄檔
msiexec /i playit-windows-x86_64-signed.msi /qn /norestart /l*v "%TEMP%\playit-install.log"解除安裝
msiexec /x {4BEC2AF7-35AC-4D46-8FE4-8A9B55030D4D} /qn /norestart- MSI產品代碼
- {4BEC2AF7-35AC-4D46-8FE4-8A9B55030D4D}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4BEC2AF7-35AC-4D46-8FE4-8A9B55030D4D}
- UpgradeCode
- {2640FEA4-3120-4DB0-93A9-6B04A4EFE7D2}
32位元 · 免安裝版
免安裝(可攜版)
32位元 · MSI · 所有使用者 · en-US
靜默安裝
msiexec /i playit-windows-x86-signed.msi /qn /norestart寫入記錄檔
msiexec /i playit-windows-x86-signed.msi /qn /norestart /l*v "%TEMP%\playit-install.log"解除安裝
msiexec /x {3F8CE725-28FC-47C3-A512-3EACC1E3ADA1} /qn /norestart- MSI產品代碼
- {3F8CE725-28FC-47C3-A512-3EACC1E3ADA1}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{3F8CE725-28FC-47C3-A512-3EACC1E3ADA1}
- UpgradeCode
- {2640FEA4-3120-4DB0-93A9-6B04A4EFE7D2}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-playit.ps1
$url = 'https://github.com/playit-cloud/playit-agent/releases/download/v1.0.10/playit-windows-x86_64-signed.msi'
$sha256 = '18C022281FCFE578FB0D614AC6DC1D36CD6885B4A5439B97655768CD2A82BDC1'
$file = Join-Path $env:TEMP 'playit-windows-x86_64-signed.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-playit.ps1
$url = 'https://github.com/playit-cloud/playit-agent/releases/download/v1.0.10/playit-windows-x86-signed.msi'
$sha256 = 'B6CB9A766BC656314E22EE3BB130CED64F60A6746E90CFE327798EAC03A1F8CD'
$file = Join-Path $env:TEMP 'playit-windows-x86-signed.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait