Příkazy pro instalaci programu step-agent bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id Smallstep.step-agent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Smallstep.step-agent -e --silentwinget uninstall --id Smallstep.step-agent -e --silentPodle instalátoru
64bit · MSI · en-US
Tichá instalace
msiexec /i step-agent_amd64.msi /qn /norestartZapsat protokol
msiexec /i step-agent_amd64.msi /qn /norestart /l*v "%TEMP%\step-agent-install.log"ARM64 · MSI · en-US
Tichá instalace
msiexec /i step-agent_arm64.msi /qn /norestartZapsat protokol
msiexec /i step-agent_arm64.msi /qn /norestart /l*v "%TEMP%\step-agent-install.log"PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-step-agent.ps1
$url = 'https://github.com/smallstep/step-agent/releases/download/v0.72.0/step-agent_amd64.msi'
$sha256 = 'FA1081262789EE2F370E1DDA464694F03F7907F3DF59B4C8BF5F7EC2B47C288A'
$file = Join-Path $env:TEMP 'step-agent_amd64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-step-agent.ps1
$url = 'https://github.com/smallstep/step-agent/releases/download/v0.72.0/step-agent_arm64.msi'
$sha256 = 'D765E0BA082D960F418FD29820E710120C6C382D631D278B987F876AC3EF552C'
$file = Join-Path $env:TEMP 'step-agent_arm64.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait