免互動安裝Webkiosk-Wrapper、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ngudbhav.Webkiosk-Wrapper -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ngudbhav.Webkiosk-Wrapper -e --silentwinget uninstall --id ngudbhav.Webkiosk-Wrapper -e --silent依安裝檔
64位元 · EXE(NSIS)
靜默安裝
Setup-x64.exe /S自訂安裝資料夾
Setup-x64.exe /S /D=C:\Apps\webkiosk-wrapper32位元 · EXE(NSIS)
靜默安裝
Setup-x86.exe /S自訂安裝資料夾
Setup-x86.exe /S /D=C:\Apps\webkiosk-wrapperPowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-webkiosk-wrapper.ps1
$url = 'https://github.com/ngudbhav/Webkiosk-Wrapper/releases/download/v1.1.3/Setup-x64.exe'
$sha256 = '1A4B81A7A3B26419174A9B07E9364290D5B0825CCF9051775B56028855D4C9E8'
$file = Join-Path $env:TEMP 'Setup-x64.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-webkiosk-wrapper.ps1
$url = 'https://github.com/ngudbhav/Webkiosk-Wrapper/releases/download/v1.1.3/Setup-x86.exe'
$sha256 = 'CFB471BA7DE2D2FCCC4C0F83538433DBCC5F745E6951FCBD943948B36ADC31D5'
$file = Join-Path $env:TEMP 'Setup-x86.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