Kommandoer til at installere GitHub extension for Command Palette uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med 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 --silentPr. installationsfil
64-bit · MSIX
Lydløs installation
Add-AppxPackage -Path GitHubExtension_release_v0.103.178.0_x64.msixAfinstallation
Get-AppxPackage -Name Microsoft.CmdPalGitHubExtension | Remove-AppxPackageARM64 · MSIX
Lydløs installation
Add-AppxPackage -Path GitHubExtension_release_v0.103.178.0_arm64.msixAfinstallation
Get-AppxPackage -Name Microsoft.CmdPalGitHubExtension | Remove-AppxPackagePowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
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