Can anyone help me to know how to install through Windows terminal (cmd) with command line ?
I manage to found the command “\S” for silent install but I also need to add a shortuct icon option on the desktop, all user install and PATH add.
Yes indeed, I saw the Nullsoft Scriptable Install System banner when it started on Windows but none of the classic command works… except the /S command but in this case I don’t have any desktop shortcut. Having a MSI installer isn’t the solution for my issue, I guess, unless the desktop option is already checked. The best is to have the choice like other classical NSIS app.
Also, there is an option to register Avogadro2 in the system PATH, it could be useful to add a special command line. For example, LatisPro has a command name /SERIALLTP=LTP-###-###-### for adding a serial key or /COMPONENTS="#######" for addingg special components.
There’s already those two extra page in fact !
I’m asking about silent install. For that, I open a terminal and tape :
// Go to the script location :
cd /d “%~dp0”
echo Installing Avogadro2…
Avogadro2-1.99.exe /ALLUSERS /S
The question is, how, with command line, add a desktop icon ?
Thank you for the CPACK_NSIS_MODIFY_PATH, I didn’t know that one ! But it seems no usable with a command line install.
Here what I can see when I lunch manually the .exe installer :
Do you have an example of another open source program that you install in this way that similarly provides command line options for the Windows installer? Then we could at least look into how they do it
It seems like many projects have their own NSIS configuration file, which may be the way to go. Currently we use cpack to generate the NSIS installer on-the-fly.
One benefit, judging from the Pynsist examples is that we could provide an installer with Python included.
Incidentally, have you tried VTK or Paraview? They use cpack to build their installers - I don’t know if they have the same problem.