Open hmaarrfk opened 3 weeks ago
Not sure if it is an offtopic, but did you consider using micromamba (https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html) for your use case?
micromamba
is a self-contained .exe, so using it you should avoid any problem in installingminiforge
or similar conda installers.
Originally posted by @traversaro in #599
Thanks for taking the time to submit this feedback!
I am not involved with the Miniforge project (I work on Miniconda), but I can help with some of these questions. The answer mostly boils down to that we need to move away from NSIS, but currently do not have enough people to completely rewrite the backend.
We do not want to interfere with a potentially existing conda installation on client machines! We run it with this command: cmd.exe /C start /wait "" "C:/path/to/installer" /S /InstallationType=JustMe /RegisterPython=0 /D=%LOCALAPPDATA%/Altair/MF
You can add
/NoRegistry=1
to avoid writing into the registry. You can also add/NoShortcuts=1
to the command to not overwrite shortcuts. You can see the full list of options when you runMiniforge.exe /?
or/Miniforge.exe /S /?
The windows installer is not robust at all. It can return simply 1 in case of errors, without logging anything.
Logging into a file is a problem with NSIS because of a few edge cases. Recently,
constructor
had a PR (https://github.com/conda/constructor/pull/847) that at least outputs to console (not stdout). That should be available with a new installer. Again, moving away from NSIS is the ultimate goal here.This is probably the biggest problem in regards to the Windows installer right now, that it cannot even install on many systems if the username is not short enough.
This can be solved on the Miniforge end @hmaarrfk - you just need to set
check_path_length
tofalse
in theconstruct.yaml
file. I don't know if there was a reason to restrict the path length though.Is there a particular reason why we cannot also have simple archive-based release artifacts in addition to the installers?
You might be looking for something like conda-standalone or micromamba. You can create a base environment via
conda.exe create -p %LOCALAPPDATA%\Altair\MF conda -c conda-forge
Then activate the environment in cmd.exe:
%LOCALAPPDATA%\Altair\MF\condabin\activate.bat
You can then run
conda init
in that environment.
Originally posted by @marcoesters in #599
Originally posted by @mboeck-altair in #599