Davion
25th May 2004 08:14 UTC
Setup with parameters through cmd
Is there a way to execute a NSIS Setup per Commandline?
Ok, I'll Specify what I mean
normally you have to choose the installpath, the Setup Type etc in the Setup Dialogs
but is there a way to call the Setup.exe through the commandline like this:
c:\>Setup.exe /c:\Program Files\Folder /normal /no shortcuts
to run the setup Silent, installing on "c:\Program Files\Folder" as a "normal" Setup and creating "no shortcuts"?
Is there a way to realize this, or Do I need a special plugin?
thanks in advance
Dave
evilO
25th May 2004 08:29 UTC
Hi Davion :)
No plugin is needed for that.. NSIS setups support the silent mode, providing that you do a bit of coding :D
Check these links, everything you need is there:
4.12 Silent Installers/Uninstallers
http://nsis.sourceforge.net/Docs/Chapter4.html#4.12
B.3 Get command line parameters
http://nsis.sourceforge.net/Docs/AppendixB.html#B.3
Example:
http://nsis.sourceforge.net/Examples/silent.nsi
Good luck ;)
evilO/Olive
Davion
25th May 2004 09:07 UTC
And this would give me the ability to enter all the needed input in the cmd and run the Setup Silent?
evilO
25th May 2004 10:44 UTC
Yes. Follow the links I posted, and read the doc.
evilO/Olive