Commands for installing Mambaforge 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 CondaForge.Mambaforge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CondaForge.Mambaforge -e --silentwinget uninstall --id CondaForge.Mambaforge -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Mambaforge-24.11.0-1-Windows-x86_64.exe /SCustom folder
Mambaforge-24.11.0-1-Windows-x86_64.exe /S /D=C:\Apps\mambaforge- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mambaforge 24.11.0-1 (Python 3.12.8 64-bit)
64-bit · EXE (NSIS) · All users
Silent install
Mambaforge-24.11.0-1-Windows-x86_64.exe /SCustom folder
Mambaforge-24.11.0-1-Windows-x86_64.exe /S /D=C:\Apps\mambaforge- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mambaforge 24.11.0-1 (Python 3.12.8 64-bit)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-mambaforge.ps1
$url = 'https://github.com/conda-forge/miniforge/releases/download/24.11.0-1/Mambaforge-24.11.0-1-Windows-x86_64.exe'
$sha256 = '8EE08A4074AA1A2E48A0F73245E77571974BD8E33951D56CC67CE6960668294E'
$file = Join-Path $env:TEMP 'Mambaforge-24.11.0-1-Windows-x86_64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-mambaforge.ps1
$url = 'https://github.com/conda-forge/miniforge/releases/download/24.11.0-1/Mambaforge-24.11.0-1-Windows-x86_64.exe'
$sha256 = '8EE08A4074AA1A2E48A0F73245E77571974BD8E33951D56CC67CE6960668294E'
$file = Join-Path $env:TEMP 'Mambaforge-24.11.0-1-Windows-x86_64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait