- NSIS Discussion
- Newbie Needs Help
Archive: Newbie Needs Help
djskeezmo
30th October 2004 23:18 UTC
Newbie Needs Help
Hi,
I just installed the Nsis program and it seems like a great program. I know that this wuestion has probrly already been asked a million times, but how can install another file within my file. What i mean is that I call another file to install while my main window remains open. And it would only install if they selected the option that they wanted it to install.
IM confusing im know, and im sorry, but please help
Thanks in advance.
Skeezmo
deguix
30th October 2004 23:26 UTC
Exec "Program.exe"
djskeezmo
30th October 2004 23:28 UTC
i dont know if the code you gave me is for when the select the option at the beginnign but that is what i need..
Exec "Program.exe"
:)
djskeezmo
31st October 2004 00:14 UTC
I tried what you said with the exec command: this is what I have so far:
; Optional section (can be disabled by the user)
SubSection Messengers
Section "AOL Instant Messenger (AIM)"
Exec "..\silverfox\setup\messengers\aim.exe"
SectionEnd
Section "Yahoo Instant Messenger (YIM)"
Exec "..\silverfox\setup\messengers\yim.exe"
SectionEnd
Section "Windows Messenger"
Exec "..\silverfox\setup\messengers\windows.exe"
SectionEnd
Section "ICQ "
Exec "..\silverfox\setup\messengers\icq.exe"
SectionEnd
SubSectionEnd
and in the error log it doesnt say anything.
Please Help...
Thanks in advance
Afrow UK
31st October 2004 10:35 UTC
You must set the working directory to the installer directory first before using paths relative to the installer directory.
So:
SubSection Messengers
Section -dothisfirst
SetOutPath $EXEDIR
SectionEnd
Section "AOL Instant Messenger (AIM)"
Exec "..\silverfox\setup\messengers\aim.exe"
SectionEnd
Section "Yahoo Instant Messenger (YIM)"
Exec "..\silverfox\setup\messengers\yim.exe"
SectionEnd
Section "Windows Messenger"
Exec "..\silverfox\setup\messengers\windows.exe"
SectionEnd
Section "ICQ "
Exec "..\silverfox\setup\messengers\icq.exe"
SectionEnd
SubSectionEnd
-Stu
djskeezmo
1st November 2004 02:20 UTC
ok.. I finally got it to open up the actual SAM Program installer, but I want the progress Bar on my install so it will only say that it has completed after the SAM installer has finished, the MY SQL installer has finished, and all of the messengers have finished installing
Afrow UK
1st November 2004 17:42 UTC
Tried ExecWait?
-Stu
djskeezmo
2nd November 2004 03:24 UTC
No, where would I put that?
djskeezmo
2nd November 2004 04:25 UTC
I figured out where it goes on the Exec part, but Now in need one of the sections to be required and i have tried to put Section RO, SEctionRO, and RO like everywhere in =side that section but It is always getting a compile error.
Oh and so you know, I'm using the Modern UI
Thanks in Advance
Afrow UK
2nd November 2004 18:59 UTC
The Examples folder is there for a reason :p
See example2.nsi
-Stu
djskeezmo
5th November 2004 00:48 UTC
what am I supposed to look for in there...
it doesnt have the required option, I ran it and they were all able to be chosen.
PLz help...
Skeezmo
pengyou
5th November 2004 12:34 UTC
Have you looked at the example2.nsi script?
Afrow UK had a good reason for telling you to look at the example2.nsi script.
This example contains two sections: one is always enabled (and the user cannot change this setting) and the other can be enabled or disabled by the user.
If you look at that example script you will see that the section which is always enabled contains the line "SectionIn RO" (in an earlier message you mentioned you had tried using "Section RO" - this is why you got a compiler error)