Befehle, um CrowdSec 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 CrowdSecurity.CrowdSec -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CrowdSecurity.CrowdSec -e --silentwinget uninstall --id CrowdSecurity.CrowdSec -e --silentNach Installer
64-Bit · MSI · Alle Benutzer · en-US
Stille Installation
msiexec /i crowdsec_1.8.1.msi /qn /norestartProtokoll schreiben
msiexec /i crowdsec_1.8.1.msi /qn /norestart /l*v "%TEMP%\crowdsec-install.log"Deinstallation
msiexec /x {A67BCF91-FC60-4A58-A12C-BCE61BE9A108} /qn /norestart- MSI-Produktcode
- {A67BCF91-FC60-4A58-A12C-BCE61BE9A108}
- Deinstallationsschlüssel in der Registry
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A67BCF91-FC60-4A58-A12C-BCE61BE9A108}
- UpgradeCode
- {8EAB6970-25E3-4B7D-882F-5B7EFA311AFC}
- Installationsordner
- %ProgramFiles%\CrowdSec
PowerShell: herunterladen, prüfen, installieren
Lädt die offizielle Datei herunter, prüft den SHA256-Hash und installiert still.
install-crowdsec.ps1
$url = 'https://github.com/crowdsecurity/crowdsec/releases/download/v1.8.1/crowdsec_1.8.1.msi'
$sha256 = '014E15D97AC015D9E75D151150AF08C5661901DC14904D44CA7240DA1CDB70E6'
$file = Join-Path $env:TEMP 'crowdsec_1.8.1.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