Befehle, um Bicep CLI ohne Rückfragen zu installieren, wieder zu entfernen und in Verteilungswerkzeugen zu erkennen. Ein Befehl erscheint nur, wenn er feststeht: aus dem Manifest oder als dokumentierter Standard der jeweiligen Installer-Technik.
Passende Anleitung: Silent-Install-Parameter: MSI, NSIS, Inno Setup · Programm über Registry oder PowerShell deinstallieren
Mit 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 --silentNach Installer
64-Bit · EXE (Inno Setup) · Alle Benutzer
Stille Installation
bicep-setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Eigener Ordner
bicep-setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\bicep-cli"- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7EF9DE63-59B1-4325-955A-937F3E0A4EA8}_is1
- Installationsordner
- %LocalAppData%\Programs\Bicep CLI
- DisplayVersion
- 0.48.1.52935
64-Bit · Portabel
Keine Installation nötig (portabel)
ARM64 · Portabel
Keine Installation nötig (portabel)
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
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