|
|
#1 |
|
Junior Member
Join Date: May 2003
Posts: 7
|
Install a JRE with the NSIS installer
|
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
Something like :-
code: |
|
|
|
|
|
#3 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
If ExecWait doesn't wait see:
http://forums.winamp.com/showthread....ghlight=%2FSMS NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: May 2003
Posts: 7
|
Ok, thanks!
I'll try it |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: May 2003
Posts: 7
|
After using the code of Sunjammer i was getting an error (screenshot).
It means, that there was an error while overwriting a file (?). What means "jre_setup_exe_filename.exe" Which Filename? ![]() Ok, kichik, now i have a look at your link ![]() btw: With NSIS i can check if Flash-player is installed, right? Can i also check if a JRE/JDK is installed? If not, could i use a checkbox at the end of the installation? Many installers are using checkboxes for "view the readme now" and so on, can i use a checkbox for installing the JRE? So, if the user checks the box "install the JRE now", the installtion of the JRE starts. (In modern UI) Last edited by Leonard S; 23rd May 2003 at 17:24. |
|
|
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Try (notice the back slash instead of the forward slash):
code: There have been some threads about detecting JRE. Search the forum and have a look at The Archive too. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: May 2003
Posts: 7
|
Thanks, i've found one
.Yes, i know, i've changed the slash to a backslash, but i get still this error. What about the checkbox method? |
|
|
|
|
|
#8 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
According to that screen shot you haven't changed both, namely the one in the /oname.
Joost or somebody else will have to answer the checkbox question because I can't quite remember right now (it's 2am here ).
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: May 2003
Posts: 7
|
It doesn't work, and yes, i've changed both slashes.
It seems, that the Installer thinks the "JRE" is extracted to "$INSTDIR\$TEMP\jre_setup.exe", but it must be only "$TEMP\jre_setup". |
|
|
|
|
|
#10 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
Use (without the quotes in /oname):
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#11 | |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
Quote:
|
|
|
|
|
|
|
#12 |
|
Junior Member
Join Date: May 2003
Posts: 7
|
Thanks very much dudes.
Now it works ![]() Another Question: Jext has many files, must i include them all with the "File" command? |
|
|
|
|
|
#13 |
|
Major Dude
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
|
File /r will recursively add the contents of a directory and wildcards are also supported. See http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.1.5
|
|
|
|
|
|
#14 |
|
Junior Member
Join Date: May 2003
Posts: 7
|
Very Quick answer! Thanks!
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|