Commands for installing CrowdSec without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i crowdsec_1.8.2.msi /qn /norestartWrite a log
msiexec /i crowdsec_1.8.2.msi /qn /norestart /l*v "%TEMP%\crowdsec-install.log"Uninstall
msiexec /x {A67BCF91-FC60-4A58-A12C-BCE61BE9A108} /qn /norestart- MSI product code
- {A67BCF91-FC60-4A58-A12C-BCE61BE9A108}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A67BCF91-FC60-4A58-A12C-BCE61BE9A108}
- UpgradeCode
- {8EAB6970-25E3-4B7D-882F-5B7EFA311AFC}
- Install folder
- %ProgramFiles%\CrowdSec
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-crowdsec.ps1
$url = 'https://github.com/crowdsecurity/crowdsec/releases/download/v1.8.2/crowdsec_1.8.2.msi'
$sha256 = '07AE716FF38C3EAE60B79824E12A5CB9301FDB00158CC9339C6A3B491ADE9200'
$file = Join-Path $env:TEMP 'crowdsec_1.8.2.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