免互動安裝PhonerLite、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Phoner.PhonerLite -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Phoner.PhonerLite -e --silentwinget uninstall --id Phoner.PhonerLite -e --silent依安裝檔
64位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
PhonerLiteSetup64_346.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
PhonerLiteSetup64_346.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\phonerlite"32位元 · EXE(Inno Setup) · 所有使用者
靜默安裝
PhonerLiteSetup_346.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-自訂安裝資料夾
PhonerLiteSetup_346.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\phonerlite"PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-phonerlite.ps1
$url = 'https://www.phoner.de/PhonerLiteSetup64_346.exe'
$sha256 = '71BBDE6C9C0494E57143D90D0BFE46BD8F11580FC2629498079D41A3BF288D68'
$file = Join-Path $env:TEMP 'PhonerLiteSetup64_346.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait install-phonerlite.ps1
$url = 'https://www.phoner.de/PhonerLiteSetup_346.exe'
$sha256 = 'D19CC4A20B5E28CA1A647D4C633C7174175DD09961312A28EC868710D22F6FDB'
$file = Join-Path $env:TEMP 'PhonerLiteSetup_346.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait