Old 11th January 2005, 07:58   #1
sgarza
Junior Member
 
Join Date: Jan 2005
Posts: 8
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???
sgarza is offline   Reply With Quote
Old 11th January 2005, 08:14   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Why not make two installers?
(Have one extract the other)

-Stu
Afrow UK is offline   Reply With Quote
Old 11th January 2005, 08:23   #3
sgarza
Junior Member
 
Join Date: Jan 2005
Posts: 8
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...
sgarza is offline   Reply With Quote
Old 11th January 2005, 08:55   #4
sgarza
Junior Member
 
Join Date: Jan 2005
Posts: 8
other suggest? please...
sgarza is offline   Reply With Quote
Old 11th January 2005, 09:44   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Attached Files
File Type: nsi multi-install.nsi (4.1 KB, 116 views)
Afrow UK is offline   Reply With Quote
Old 11th January 2005, 09:57   #6
sgarza
Junior Member
 
Join Date: Jan 2005
Posts: 8
YEYEYEYEYEYE!!!! little bit difficult but great!!!!
who are you?? the son of nsis???
sgarza is offline   Reply With Quote
Old 11th January 2005, 13:27   #7
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I can convert it to Modern UI if you wish (it'll look nicer!)

-Stu
Afrow UK is offline   Reply With Quote
Old 11th January 2005, 17:42   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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

Last edited by Afrow UK; 11th January 2005 at 18:45.
Afrow UK is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump