免互動安裝dev-sidecar、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id docmirror.dev-sidecar -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id docmirror.dev-sidecar -e --silentwinget uninstall --id docmirror.dev-sidecar -e --silent依安裝檔
64位元 · EXE(NSIS) · 所有使用者
靜默安裝
DevSidecar-2.3.3-windows-x86_64.exe /S自訂安裝資料夾
DevSidecar-2.3.3-windows-x86_64.exe /S /D=C:\Apps\dev-sidecar- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b54923aa-fda9-5ff9-bb60-46d74e93ec70
ARM64 · EXE(NSIS) · 所有使用者
靜默安裝
DevSidecar-2.3.3-windows-arm64.exe /S自訂安裝資料夾
DevSidecar-2.3.3-windows-arm64.exe /S /D=C:\Apps\dev-sidecar- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\b54923aa-fda9-5ff9-bb60-46d74e93ec70
32位元 · EXE(NSIS) · 所有使用者
靜默安裝
DevSidecar-2.3.3-windows-ia32.exe /S自訂安裝資料夾
DevSidecar-2.3.3-windows-ia32.exe /S /D=C:\Apps\dev-sidecar- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\b54923aa-fda9-5ff9-bb60-46d74e93ec70
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-dev-sidecar.ps1
$url = 'https://github.com/docmirror/dev-sidecar/releases/download/v2.3.3/DevSidecar-2.3.3-windows-x86_64.exe'
$sha256 = '4D8F254C18419373ABB95FF1EDAFA9768FC3ED8B9609FD234F0BD426ABED0B38'
$file = Join-Path $env:TEMP 'DevSidecar-2.3.3-windows-x86_64.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-dev-sidecar.ps1
$url = 'https://github.com/docmirror/dev-sidecar/releases/download/v2.3.3/DevSidecar-2.3.3-windows-arm64.exe'
$sha256 = 'DCE1D824795D880CCFE3A9E254F211A347F1DC54D83E2263DAD9E3A1AE99CB46'
$file = Join-Path $env:TEMP 'DevSidecar-2.3.3-windows-arm64.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-dev-sidecar.ps1
$url = 'https://github.com/docmirror/dev-sidecar/releases/download/v2.3.3/DevSidecar-2.3.3-windows-ia32.exe'
$sha256 = '02F08119FEBD4477D60D1B25F36109B5F42D300D8906C1EF3586A27AFCFE6FD5'
$file = Join-Path $env:TEMP 'DevSidecar-2.3.3-windows-ia32.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