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