Archive: two page instfiles and two section


two page instfiles and two section
I'm very sorry but i can't do a structure like this:

ask directory installation
copyfile there
1 section where i launch other PROGRAM.A installation
2 section where i launch other one PROGRAM.B installation
ask a directory where user installed the program.A
copy other file in this second directory

i try with structure like:

page components
Page directory
Page instfiles FILESA
1 section PROGRAM.A installation
1 section PROGRAM.B installation
Page directory
Page instfiles FILESB

but with this structure the PROGRAM.A and PROGRAM.B installation run two times!! how i must change the structure???


Why not make two installers?
(Have one extract the other)

-Stu


i think too , but i thouhght that is more "clean" to have only one exe,and that it's very strange nsis can't doa structure like the one i want...


other suggest? please...


Ok, I had a go and this one works. The code, however, is very long. You must have at least one section read-only (using SectionIn RO).

It's hard to explain how it works, but I've put quite a few comments in there which should help you.
Basically, it divides the 4 sections in two (for the two apps), including the sections sizes.

If you add more sections, you need to change the Group 'range' defines (under all sections)

-Stu


YEYEYEYEYEYE!!!! little bit difficult but great!!!!
who are you?? the son of nsis???


I can convert it to Modern UI if you wish (it'll look nicer!)

-Stu


I realised that I didn't have to get/set section sizes after I moved the code to before the directory pages.
I've also changed it to use Modern UI

Edit Moved to:
http://nsis.sourceforge.net/archive/...instances=0,64

-Stu