Befehle, um sast 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 leonsnajdr.sast -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id leonsnajdr.sast -e --silentwinget uninstall --id leonsnajdr.sast -e --silentNach Installer
64-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i sast_26.9.67_x64_en-US.msi /qn /norestartProtokoll schreiben
msiexec /i sast_26.9.67_x64_en-US.msi /qn /norestart /l*v "%TEMP%\sast-install.log"Deinstallation
msiexec /x {D6AF9EAE-278F-4C4E-8DE5-526FF9B04F13} /qn /norestart- MSI-Produktcode
- {D6AF9EAE-278F-4C4E-8DE5-526FF9B04F13}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{D6AF9EAE-278F-4C4E-8DE5-526FF9B04F13}
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-sast.ps1
$url = 'https://github.com/LeonSnajdr/sast/releases/download/26.9.67/sast_26.9.67_x64_en-US.msi'
$sha256 = 'CD4F5AFE911765D16226F4E3CE494180737931426274FDD6AD0BCC7D47EB13C5'
$file = Join-Path $env:TEMP 'sast_26.9.67_x64_en-US.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