whourdady
24th March 2010 21:27 UTC
Calling SectionGroups from Functions
I am trying to use http://nsis.sourceforge.net/Two_inst..._one_installer
as a basis, so I have created the SectionGroups, but i just want to install everything in that sectiongroup, what code do I need just to run that sectiongroup.
Afrow UK
25th March 2010 12:07 UTC
To only run the sections in your SectionGroup you have to ensure those are the only ones visible. I'm pretty sure the SectionGroup itself will only show if it has visible sections inside it. Therefore with my code, you want to set the PROG2_StartIndex to the first section in the group and PROG2_EndIndex to the last.
Stu
whourdady
25th March 2010 15:24 UTC
The problem I am having now is that the everything is being installed on the first page, It creates 2 folders, then proceeds to the next page. I am going to attach my file, but please understand I am by no means, have a great understanding of what I am doing.
Thank you for helping.
Afrow UK
25th March 2010 16:03 UTC
You are specifying the SectionGroup for your PROG1/2_StartIndex defines. Try the first section as I said.
Stu
whourdady
25th March 2010 16:09 UTC
Ok i changed it, but it still installs all of the files on the first page. Here is the updated version as well
whourdady
25th March 2010 16:45 UTC
Hey Afrow UK, I got it to work using an if statement in the Sections, and do a strcmp if its not the correct section to jump to end of the section. I am not sure if that is the correct way to do that, but it works