Ordres per instal·lar Mambaforge 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 CondaForge.Mambaforge -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CondaForge.Mambaforge -e --silentwinget uninstall --id CondaForge.Mambaforge -e --silentPer instal·lador
64 bits · EXE (NSIS) · Usuari actual
Instal·lació silenciosa
Mambaforge-24.11.0-1-Windows-x86_64.exe /SUna altra carpeta
Mambaforge-24.11.0-1-Windows-x86_64.exe /S /D=C:\Apps\mambaforge- Clau de desinstal·lació al registre
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mambaforge 24.11.0-1 (Python 3.12.8 64-bit)
64 bits · EXE (NSIS) · Tots els usuaris
Instal·lació silenciosa
Mambaforge-24.11.0-1-Windows-x86_64.exe /SUna altra carpeta
Mambaforge-24.11.0-1-Windows-x86_64.exe /S /D=C:\Apps\mambaforge- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mambaforge 24.11.0-1 (Python 3.12.8 64-bit)
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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