Old 31st October 2010, 11:25   #1
dbd
Junior Member
 
Join Date: Oct 2010
Posts: 2
Installing a JRE Launcher From within an installer

I am new to NSIS and this forum, and so do not know where this post belongs. The general aim is to install a .jar file and a few other files, together with a JRE launcher to launch the application. If the launcher has been compiled into an exe, and the launcher.exe file is amongst what the installer installs, how can the launcher.exe, without searching on every execution, know where the .jar files were installed, i.e., the $INSTDIR?

OTOH, if the launcher has not been compiled, so as to expose the launcher code to the $INSTDIR, then how might the launcher get compiled for separate installation from the jar? (i.e, an .exe to launch the application, as opposed to one to install it.)

It seems that the only recourse would be to install both to the same directory, but even then it might not work unless that directory were chosen by the developer, not the user, at the time that the script is written.

Many thanks in advance for all replies.
dbd is offline   Reply With Quote
Old 1st November 2010, 01:11   #2
dbd
Junior Member
 
Join Date: Oct 2010
Posts: 2
Thank you, Forum. I have solved it. Communication may be by environment variable, either temporary or permanent. I have not yet looked at it in detail, but it seems correct.

The ability to post has helped me to think about this clearly and critically, so thanks.
dbd is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
installer, jar, jre, launcher

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