Ordres per instal·lar step-desktop sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb winget
PowerShell
winget install --id Smallstep.step-desktop -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Smallstep.step-desktop -e --silentwinget uninstall --id Smallstep.step-desktop -e --silentPer instal·lador
64 bits · MSI · en-US
Instal·lació silenciosa
msiexec /i step-desktop_amd64.msi /qn /norestartDesar un registre
msiexec /i step-desktop_amd64.msi /qn /norestart /l*v "%TEMP%\step-desktop-install.log"ARM64 · MSI · en-US
Instal·lació silenciosa
msiexec /i step-desktop_arm64.msi /qn /norestartDesar un registre
msiexec /i step-desktop_arm64.msi /qn /norestart /l*v "%TEMP%\step-desktop-install.log"PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
install-step-desktop.ps1
$url = 'https://github.com/smallstep/step-agent/releases/download/v0.72.0/step-desktop_amd64.msi'
$sha256 = '77453DC0846FE049D7CC6E584F58BAF1623D62B2B0C8A947D43621FFFA52C184'
$file = Join-Path $env:TEMP 'step-desktop_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-desktop.ps1
$url = 'https://github.com/smallstep/step-agent/releases/download/v0.72.0/step-desktop_arm64.msi'
$sha256 = 'F2EA1F0DE2894EA88A3CF32B976993BBF96DEDA612569D8ABCC3AD0D980AA311'
$file = Join-Path $env:TEMP 'step-desktop_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