Kommandoer til at installere Bicep CLI 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.Bicep -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.Bicep -e --silentwinget uninstall --id Microsoft.Bicep -e --silentPr. installationsfil
64-bit · EXE (Inno Setup) · Alle brugere
Lydløs installation
bicep-setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mappe
bicep-setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\bicep-cli"- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7EF9DE63-59B1-4325-955A-937F3E0A4EA8}_is1
- Installationsmappe
- %LocalAppData%\Programs\Bicep CLI
- DisplayVersion
- 0.48.1.52935
64-bit · Portabel
Kræver ingen installation (portabel)
ARM64 · Portabel
Kræver ingen installation (portabel)
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-bicep-cli.ps1
$url = 'https://github.com/Azure/bicep/releases/download/v0.48.1/bicep-setup-win-x64.exe'
$sha256 = '8CB241203F65DAAADFDC81C0AFF58FEF20DB6E68431CA01259FE066459301821'
$file = Join-Path $env:TEMP 'bicep-setup-win-x64.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait