Kommandon för att installera Bicep CLI utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
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 --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Alla användare
Tyst installation
bicep-setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
bicep-setup-win-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\bicep-cli"- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7EF9DE63-59B1-4325-955A-937F3E0A4EA8}_is1
- Installationsmapp
- %LocalAppData%\Programs\Bicep CLI
- DisplayVersion
- 0.48.1.52935
64-bitars · Portabel
Kräver ingen installation (portabel)
ARM64 · Portabel
Kräver ingen installation (portabel)
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
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