免互動安裝Visualizer for Command Palette、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id CostaFotiadis.VisualizerForCommandPalette -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CostaFotiadis.VisualizerForCommandPalette -e --silentwinget uninstall --id CostaFotiadis.VisualizerForCommandPalette -e --silent依安裝檔
64位元 · MSIX
靜默安裝
Add-AppxPackage -Path VisualizerExtension_1.0.0.0_Bundle.Msixbundle解除安裝
Get-AppxPackage -Name CostaFotiadis.VisualizerforCommandPalette | Remove-AppxPackageARM64 · MSIX
靜默安裝
Add-AppxPackage -Path VisualizerExtension_1.0.0.0_Bundle.Msixbundle解除安裝
Get-AppxPackage -Name CostaFotiadis.VisualizerforCommandPalette | Remove-AppxPackagePowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-visualizer-for-command-palette.ps1
$url = 'https://github.com/CostaFot/visualizer-extension/releases/download/v1.0.0.0/VisualizerExtension_1.0.0.0_Bundle.Msixbundle'
$sha256 = 'BDA55F07E6D4FAD0188DF701C31355E2BCD15A066A96F1CD93E0E231A3266618'
$file = Join-Path $env:TEMP 'VisualizerExtension_1.0.0.0_Bundle.Msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-visualizer-for-command-palette.ps1
$url = 'https://github.com/CostaFot/visualizer-extension/releases/download/v1.0.0.0/VisualizerExtension_1.0.0.0_Bundle.Msixbundle'
$sha256 = 'BDA55F07E6D4FAD0188DF701C31355E2BCD15A066A96F1CD93E0E231A3266618'
$file = Join-Path $env:TEMP 'VisualizerExtension_1.0.0.0_Bundle.Msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file