Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 7th July 2006, 13:17   #1
mykell
Junior Member
 
Join Date: Jul 2006
Posts: 3
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
mykell is offline   Reply With Quote
Old 9th July 2006, 05:14   #2
Comperio
Major Dude
 
Comperio's Avatar
 
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
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]
Comperio is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump