|
|
#1 |
|
Junior Member
Join Date: Jul 2007
Posts: 17
|
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. |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Open a command window within nsis directory and execute makensis /? to get all available parameters.
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2007
Posts: 17
|
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? |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Isn't obvious that only available-acceptable parameters can get passed?
Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Use /DPARAMS="my params" and use the define PARAMS in your script.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2007
Posts: 17
|
I got it!!! Thanks to both of you.
Prabhat. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|