![]() |
Merging two scripts
Hi
the java launcher (http://nsis.sourceforge.net/A_slight..._Java_Launcher) example executes this command: StrCpy $0 '"$R0" -classpath "${CLASSPATH}" ${CLASS}' Now I was wondering if it's possible to modify this into something like this: StrCpy $0 '"$R0" -classpath "$INSTDIR" ${CLASS}' What I mean is that I need a different Java Launcher depending on the installation path a user chooses in the actual installation. So my question is: can my installer compile the java launcher on-the-fly during the installation process and save it into the installation dir? I think I can probably have an universal java launcher that will require an .ini file, but I only want to use that as a last resort. best regards mike |
You would probably have to package up MAKENSIS.EXE with your installation. Then, do the following:[list=1][*]modify the Java Launcher NSI file to !include a parameter file with all your parameters.
[*]During your install, create your parameters file on the fly based on the user's input. [*]Use MakeNSIS.exe to build the EXE.[/list=1] |
| All times are GMT. The time now is 05:55. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.