免互動安裝Voiden、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id VoidenHQ.Voiden -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id VoidenHQ.Voiden -e --silentwinget uninstall --id VoidenHQ.Voiden -e --silent依安裝檔
64位元 · EXE(NSIS) · en-US
靜默安裝
Voiden.Setup.2.2.2.exe /S自訂安裝資料夾
Voiden.Setup.2.2.2.exe /S /D=C:\Apps\voidenhq-voiden- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\f04c0dc9-0645-59a4-af03-e4d9891b1b61
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-voidenhq-voiden.ps1
$url = 'https://github.com/VoidenHQ/voiden/releases/download/v2.2.2/Voiden.Setup.2.2.2.exe'
$sha256 = '332A44C7F29AC6EFBFB2A5AA18B7BB8ECFFD68FFA5C9D5D8FDE5D24D0B62F24F'
$file = Join-Path $env:TEMP 'Voiden.Setup.2.2.2.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