Ordres per instal·lar GitHub extension for Command Palette sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id Microsoft.CmdPalGitHubExtension -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.CmdPalGitHubExtension -e --silentwinget uninstall --id Microsoft.CmdPalGitHubExtension -e --silentPer instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path GitHubExtension_release_v0.103.178.0_x64.msixDesinstal·lar
Get-AppxPackage -Name Microsoft.CmdPalGitHubExtension | Remove-AppxPackageARM64 · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path GitHubExtension_release_v0.103.178.0_arm64.msixDesinstal·lar
Get-AppxPackage -Name Microsoft.CmdPalGitHubExtension | Remove-AppxPackagePowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-github-extension-for-command-palette.ps1
$url = 'https://github.com/microsoft/CmdPalGitHubExtension/releases/download/v0.103.178.0/GitHubExtension_release_v0.103.178.0_x64.msix'
$sha256 = '7B6D126A87DEA4D40CDC8CE5F69F18E2498A998BDCC1AF7962987FEC8F5323FD'
$file = Join-Path $env:TEMP 'GitHubExtension_release_v0.103.178.0_x64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-github-extension-for-command-palette.ps1
$url = 'https://github.com/microsoft/CmdPalGitHubExtension/releases/download/v0.103.178.0/GitHubExtension_release_v0.103.178.0_arm64.msix'
$sha256 = 'C4953E1F120B072A85EF5A0E2F6B52D104B330CD15F3A9EB337C9CE8CF9B264F'
$file = Join-Path $env:TEMP 'GitHubExtension_release_v0.103.178.0_arm64.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file