123mobile
16th August 2007 13:38 UTC
Problem with getting command line parameters
Hi,
I have this problem which might be very simple.
I want to do something like this:
makensis myscript.nsi param1 param2
ie while compiling my nsis script I want it to get some parameters. I am facing two problmes while running:
1. 'makensis' is not recognized as an internal or external command, operable program or batch file.
2. I am not getting param1 and param2 at compile time.
I am searching for a long time on this forum, but could not find the answers.
Prabhat.
Red Wine
16th August 2007 14:17 UTC
Open a command window within nsis directory and execute makensis /? to get all available parameters.
123mobile
16th August 2007 14:54 UTC
Hi,
I understand your point and I did exactly that. But the real problem is to find a way to give parameters to the nsis file at compile time(ie before I get my exe file). Is it possible?
Red Wine
16th August 2007 15:16 UTC
Isn't obvious that only available-acceptable parameters can get passed?
Afrow UK
16th August 2007 15:39 UTC
Use /DPARAMS="my params" and use the define PARAMS in your script.
Stu
123mobile
16th August 2007 16:10 UTC
I got it!!! Thanks to both of you. :)
Prabhat.