免互動安裝Volta、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Volta.Volta -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Volta.Volta -e --silentwinget uninstall --id Volta.Volta -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i volta-2.0.2-windows-x86_64.msi /qn /norestart寫入記錄檔
msiexec /i volta-2.0.2-windows-x86_64.msi /qn /norestart /l*v "%TEMP%\volta-install.log"解除安裝
msiexec /x {73341A09-B693-496D-9FFE-0F2A86F3C922} /qn /norestart- MSI產品代碼
- {73341A09-B693-496D-9FFE-0F2A86F3C922}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{73341A09-B693-496D-9FFE-0F2A86F3C922}
- UpgradeCode
- {42A39E14-335A-4464-AA37-17FDA38FA377}
ARM64 · MSI · 所有使用者
靜默安裝
msiexec /i volta-2.0.2-windows-arm64.msi /qn /norestart寫入記錄檔
msiexec /i volta-2.0.2-windows-arm64.msi /qn /norestart /l*v "%TEMP%\volta-install.log"解除安裝
msiexec /x {B8314662-1519-41F6-8960-55F8D99CA755} /qn /norestart- MSI產品代碼
- {B8314662-1519-41F6-8960-55F8D99CA755}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B8314662-1519-41F6-8960-55F8D99CA755}
- UpgradeCode
- {42A39E14-335A-4464-AA37-17FDA38FA377}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-volta.ps1
$url = 'https://github.com/volta-cli/volta/releases/download/v2.0.2/volta-2.0.2-windows-x86_64.msi'
$sha256 = '104BF5518177990E4C4DE78097CAA747EB8F64E1149BFDFA9106F4A3D3E5F10B'
$file = Join-Path $env:TEMP 'volta-2.0.2-windows-x86_64.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 install-volta.ps1
$url = 'https://github.com/volta-cli/volta/releases/download/v2.0.2/volta-2.0.2-windows-arm64.msi'
$sha256 = '90717F282BBFFC32BDBF9043BC91F4B00EA6BB02A5A26216EAF691EEABD2A99C'
$file = Join-Path $env:TEMP 'volta-2.0.2-windows-arm64.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