免互動安裝OpenHuman、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id TinyHumansAI.OpenHuman -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id TinyHumansAI.OpenHuman -e --silentwinget uninstall --id TinyHumansAI.OpenHuman -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
OpenHuman_0.64.15_x64-setup.exe /S自訂安裝資料夾
OpenHuman_0.64.15_x64-setup.exe /S /D=C:\Apps\openhuman- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenHuman
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i OpenHuman_0.64.15_x64_en-US.msi /qn /norestart寫入記錄檔
msiexec /i OpenHuman_0.64.15_x64_en-US.msi /qn /norestart /l*v "%TEMP%\openhuman-install.log"解除安裝
msiexec /x {3E7388F0-42A8-41C4-95C3-3323D24EF4D6} /qn /norestart- MSI產品代碼
- {3E7388F0-42A8-41C4-95C3-3323D24EF4D6}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3E7388F0-42A8-41C4-95C3-3323D24EF4D6}
- UpgradeCode
- {54052255-0CFF-5EA8-82D1-C533E6DE0990}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-openhuman.ps1
$url = 'https://github.com/tinyhumansai/openhuman/releases/download/v0.64.15/OpenHuman_0.64.15_x64-setup.exe'
$sha256 = 'FFF6A9588C2F71334DF8EC1F395B3BFAE7395D77E84C97FEF50950DD6411A2D6'
$file = Join-Path $env:TEMP 'OpenHuman_0.64.15_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-openhuman.ps1
$url = 'https://github.com/tinyhumansai/openhuman/releases/download/v0.64.15/OpenHuman_0.64.15_x64_en-US.msi'
$sha256 = 'D3ADD5F3CA48B62B7CA93BB53B7990D35E3D40673E42C9A951915F459993FDD9'
$file = Join-Path $env:TEMP 'OpenHuman_0.64.15_x64_en-US.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