免互動安裝Open WebUI、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id OpenWebUI.OpenWebUI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id OpenWebUI.OpenWebUI -e --silentwinget uninstall --id OpenWebUI.OpenWebUI -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
open-webui-x64-setup.exe /S自訂安裝資料夾
open-webui-x64-setup.exe /S /D=C:\Apps\open-webui- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\9ff447fd-c978-5e9a-bd5b-350e7a68afc0
ARM64 · EXE(NSIS) · 僅目前使用者
靜默安裝
open-webui-arm64-setup.exe /S自訂安裝資料夾
open-webui-arm64-setup.exe /S /D=C:\Apps\open-webui- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\9ff447fd-c978-5e9a-bd5b-350e7a68afc0
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-open-webui.ps1
$url = 'https://github.com/open-webui/desktop/releases/download/v0.0.20/open-webui-x64-setup.exe'
$sha256 = '916826B798F9D7F216B6DFFBE0FC265219DB397305D25E23C41126D6C6E60D11'
$file = Join-Path $env:TEMP 'open-webui-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-open-webui.ps1
$url = 'https://github.com/open-webui/desktop/releases/download/v0.0.20/open-webui-arm64-setup.exe'
$sha256 = '9F74426D0257E96CDA32E0072D33CD9D6CA27F93396D7FCD74DF78E72F412D38'
$file = Join-Path $env:TEMP 'open-webui-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