88# - PY{MAJOR,MINOR,MICRO} Python version to be installed in the new env
99# - APPNAME Application (short) name
1010# - VER{MAJOR,MINOR,MICRO} Application version
11- # - PYINSTALLER basename of the Miniconda python installer
12- # - INSTALL_REGISTRY_KEY reg subkey name to use for storing install infomation
11+ # - PYINSTALLER basename of the Miniforge python installer
12+ # - INSTALL_REGISTRY_KEY reg subkey name to use for storing install information
1313# (details will be stored under Software/${INSTALL_REGISTRY_KEY})
1414
1515
@@ -383,46 +383,46 @@ Function RestoreSilentInstallDir
383383FunctionEnd
384384
385385
386- # Section Miniconda
386+ # Section Miniforge
387387# -----------------
388- # A Miniconda Python distributions
389- Section " Miniconda ${MINICONDA_VERSION }" \
390- SectionMiniconda
388+ # A Miniforge Python distributions
389+ Section " Miniforge ${MINIFORGE_VERSION }" \
390+ SectionMiniforge
391391 ${GetAnyAnacondaInstall} $BasePythonPrefix $PythonInstallMode
392392 ${If} $BasePythonPrefix != " "
393393 ${LogWrite} " Using exising (Ana|Mini)conda installed in \
394394 $BasePythonPrefix"
395395 ${Else}
396396 ${ExtractTemp} " ${BASEDIR}\${PYINSTALLER}" " ${TEMPDIR}"
397- DetailPrint " Installing Miniconda ${MINICONDA_VERSION }"
397+ DetailPrint " Installing Miniforge ${MINIFORGE_VERSION }"
398398 # Why does executing "${TEMPDIR}\${PYINSTALLER}" directly hang the
399- # Miniconda installer?
399+ # Miniforge installer?
400400 ${If} ${Silent}
401401 StrCpy $0 " /S /AddToPath=0 /RegisterPython=0"
402402 ${Else}
403403 StrCpy $0 " "
404404 ${EndIf}
405405 MessageBox MB_OKCANCEL \
406- ' ${APPLICATIONNAME} requires a Miniconda Python distribution \
406+ ' ${APPLICATIONNAME} requires a Miniforge Python distribution \
407407 installed on the system. This will be done by running a separate \
408408 installer program.$\r$\n$\r$\n \
409409 Click Ok to continue.' \
410- /SD IDOK IDOK continue_miniconda_ IDCANCEL abort_miniconda_
411- abort_miniconda_ :
412- Abort " Aborting Miniconda installation (user cancelled)."
413- continue_miniconda_ :
414- ${LogWrite} " Running miniconda installer"
410+ /SD IDOK IDOK continue_miniforge_ IDCANCEL abort_miniforge_
411+ abort_miniforge_ :
412+ Abort " Aborting Miniforge installation (user cancelled)."
413+ continue_miniforge_ :
414+ ${LogWrite} " Running miniforge installer"
415415 ${ExecToLog} ' cmd.exe /C "${TEMPDIR}\${PYINSTALLER}" \
416416 $0 /InstallationType=$MultiUser.InstallMode \
417417 '
418418 Pop $0
419419 ${If} $0 != 0
420- Abort " Miniconda installation failed (error value: $0)"
420+ Abort " Miniforge installation failed (error value: $0)"
421421 ${EndIf}
422422 ${GetAnyAnacondaInstall} $BasePythonPrefix $PythonInstallMode
423423 ${If} $BasePythonPrefix == " "
424424 Abort " No anaconda distribution found. Cannot proceed.$\r$\n \
425- Make sure Miniconda was installed successfully."
425+ Make sure Miniforge was installed successfully."
426426 ${EndIF}
427427 ${IfNot} ${FileExists} " $BasePythonPrefix\python.exe"
428428 Abort " No python.exe found in $BasePythonPrefix$\r$\n \
@@ -432,12 +432,12 @@ Section "Miniconda ${MINICONDA_VERSION}" \
432432 ${LogWrite} " Using conda installation: $BasePythonPrefix"
433433SectionEnd
434434
435- Function un.Miniconda
435+ Function un.Miniforge
436436 # Nothing to do. Anaconda installation has its own uninstall.
437437FunctionEnd
438438
439439
440- Section " -Miniconda env setup" SectionEnvSetup
440+ Section " -Miniforge env setup" SectionEnvSetup
441441 # Setup the PythonPrefix/PythonExecPrefix... variables
442442 # but does not actualy create any env (this is done in single step
443443 # in InstallPackages section
@@ -760,8 +760,8 @@ FunctionEnd
760760
761761!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
762762
763- !insertmacro MUI_DESCRIPTION_TEXT ${SectionMiniconda } \
764- " Install Miniconda ${MINICONDA_VERSION } (${BITS} bit)"
763+ !insertmacro MUI_DESCRIPTION_TEXT ${SectionMiniforge } \
764+ " Install Miniforge ${MINIFORGE_VERSION } (${BITS} bit)"
765765
766766!insertmacro MUI_DESCRIPTION_TEXT ${InstallPackages} \
767767 " Install required packages into the destination environment"
@@ -790,7 +790,7 @@ Section Uninstall
790790 Call un.Launchers
791791 Call un.InstallPackages
792792 Call un.Environment
793- Call un.Miniconda
793+ Call un.Miniforge
794794
795795 ${If} ${FileExists} " $InstDir \${UNINSTALL_EXEFILE} "
796796 Delete " $InstDir \${UNINSTALL_EXEFILE} "
@@ -823,14 +823,14 @@ Function .onInit
823823 # Found an appropriate python installation and can reuse it
824824 # Change the SectionPython to Unselected
825825 # (change text to Install (use) Private Python?)
826- SectionGetText ${SectionMiniconda } $0
827- SectionSetText ${SectionMiniconda } \
826+ SectionGetText ${SectionMiniforge } $0
827+ SectionSetText ${SectionMiniforge } \
828828 " Anaconda python distribution (already installed)"
829- !insertmacro UnselectSection ${SectionMiniconda }
830- !insertmacro SetSectionFlag ${SectionMiniconda } ${SF_RO}
829+ !insertmacro UnselectSection ${SectionMiniforge }
830+ !insertmacro SetSectionFlag ${SectionMiniforge } ${SF_RO}
831831 ${Else}
832- !insertmacro SelectSection ${SectionMiniconda }
833- !insertmacro SetSectionFlag ${SectionMiniconda } ${SF_RO}
832+ !insertmacro SelectSection ${SectionMiniforge }
833+ !insertmacro SetSectionFlag ${SectionMiniforge } ${SF_RO}
834834 ${EndIf}
835835FunctionEnd
836836
0 commit comments