|
|
#1 |
|
Junior Member
Join Date: Oct 2009
Posts: 2
|
Help with Java JRE installer as shown online
Hi,
I was browsing for a JRE checker/installer and found the one online at: http://nsis.sourceforge.net/New_inst...ing_jre.ini%29 [nsis . sourceforge . net / New_installer_with_JRE_check] (I have looked at this forum for similar questions but lots of the links to answers are edited out) the thing is in the code it mentions: MustInstallJRE: Exch $0 ; $0 now has the installoptions page return value ; Do something with return value here Pop $0 ; Restore $0 StrCpy $InstallJRE "yes" Return obviosly the "do something with return value here" is supposed to call the section to do the install: There is a section called: Section -installjre jre. I have looked online at the documentation and I'm left a bit unsure. The doc says that the layout for sections are: Section [name] [section_index_output] but i have other sections that seem to follow a different layout of: Section "Start menu shortcuts" SecCreateShortcut. What is the difference with quotes? (it looks like the name is the second value) And if possible how do I call the installjre section? Many Thanks. Mark |
|
|
|
|
|
#2 | |||
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Re: Help with Java JRE installer as shown online
Quote:
Quote:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.13 Quote:
|
|||
|
|
|
|
|
#3 | |||
|
Junior Member
Join Date: Oct 2009
Posts: 2
|
Re: Re: Help with Java JRE installer as shown online
Quote:
Quote:
Quote:
http://forums.winamp.com/showthread....&highlight=jre I have attached the file i'm working on and the line number i'm having trouble with is 376. Thanks for the quick responce, Mark |
|||
|
|
|
|
|
#4 | |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Re: Re: Re: Help with Java JRE installer as shown online
Quote:
Sections are the separate components that the user can select or deselect for installation. Like, when you install winamp, you can choose to install CD or wmv support, or various other plugins. Each option on that Components page is a section in the installer script. (In your script there doesn't appear to be a Components page, but this doesn't change the behaviour of sections of course.) This is why sections cannot be 'called' manually. They are executed automatically (if they were enabled by the user on the Components page), as soon as the actual installation process begins. So what you need to do is use SectionSetFlags to enable or disable the section, so that it will or will not be installed. (note: Because sections are shown on the Components page, they have a name parameter. The name is what the section will be listed as, on the Components page.) |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|