|
|
|
|
#1 |
|
Junior Member
Join Date: Mar 2012
Posts: 6
|
installer for java application.
i have a standalone java application.
how can i create installer for that?? |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,840
|
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. |
|
|
|
|
|
#3 |
|
Major Dude
Join Date: May 2003
Posts: 676
|
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. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2012
Posts: 6
|
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.. |
|
|
|
|
|
#5 |
|
Major Dude
Join Date: May 2003
Posts: 676
|
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/ |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Mar 2012
Posts: 6
|
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. |
|
|
|
|
|
#7 |
|
Major Dude
Join Date: May 2003
Posts: 676
|
sorry, no indianer howling here.
![]() you need to respect apaches license if you want to inlcude its files. |
|
|
|
|
|
#8 | |
|
Junior Member
Join Date: Mar 2012
Posts: 6
|
Quote:
|
|
|
|
|
![]() |
|
|||||||
| Tags |
| application, desktop, exe, installer, java |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|