Archive: installer for java application.


installer for java application.
i have a standalone java application.
how can i create installer for that??


By creating an nsi script and compiling it with makensisw.

Edit: Sorry for the wisecrack response, but your question is extremely inspecific and therefore cannot be answered. To learn NSIS, you can start by examining NSIS\Examples\Example1.nsi and Example2.nsi. You'll need to learn what ever command does and why they are used, you can use the command reference for this: http://nsis.sourceforge.net/Docs/Chapter4.html

Once you understand those two examples, you'll be well underway to creating your own installer.


start here
http://nsis.sourceforge.net/Java_Launcher
http://nsis.sourceforge.net/Java_Lau...E_installation
http://www.seas.gwu.edu/~drum/java/l...r/install.html

More: http://www.google.com/search?q=nsis+...&oe=utf-8&aq=t

Please use the guide from nsis to learn this language.


Thank you very much for your quick response..
the last links helps me, i downloaded the zip file and execute and test that, that works perfect.
but in my project i have many source and class files and are dependent to each other.
what i did is:

i changed the .class and .java files from NSISExampleApplication to myApplicationName(which has main method) of createInstaller1.nsi script which i download(the zip folder).

and i compile and run that, it installed but when i run that installed application it showing me error "could not find mainClass myApplicationName".
can you help me in this also?
do i need to give references to all of my dependent class and java files.(dependent to myApplicationName).??

Thank you..


you need to modify section with

setoutpath $instdir
file /r "path\to\my\files\*.*

Please take the tutorials and the documentation for basic elements of nsis
http://nsis.sourceforge.net/Docs/Chapter2.html#2.3.3
http://nsis.sourceforge.net/Docs/


it works thank you very much.
it's just awesome.
i am doing it like this:
SetOutPath $INSTDIR
file "C:\Documents and Settings\punit\Desktop\NSISExampleApplication1\*.*"

can you tell me one more thing, if i have some database dependencies, i mean i m using apache derby(embedded database), can i attach that also with this installer??
i mean the jar files/ plugins of apache derby, can i include??
so at the time of installation of the software database should also installed..

Thank you.


sorry, no indianer howling here. ;)
you need to respect apaches license if you want to inlcude its files.


sorry, no indianer howling here.
you need to respect apaches license if you want to inlcude its files.
if possible can you please elaborate, how??