Old 15th February 2009, 21:55   #1
David.Tooley
Junior Member
 
Join Date: Feb 2009
Location: Auckland, New Zealand
Posts: 2
Multiple specified directiories

Hi, I am trying to simplify one of our installations by pushing 2 app installers into 1.

the only thing stopping me is the fact that i cannot seem to figure out how to set 2 or more MUI_PAGE_DIRECTORY uses.


Example

App1 and App2 combined into one installer... i want to set App1 to a custom location and also App2 to a different location, both different than each other and different to the default install dir.


Currently I get the 1 MUI_PAGE_DIRECTORY page and it allows me to choose a different folder which will then install App1 and App2 inside.


Please if someone could help or share some advice, i would appreciate it.

Thanks
David

Last edited by David.Tooley; 15th February 2009 at 22:25.
David.Tooley is offline   Reply With Quote
Old 15th February 2009, 22:51   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Just use 2 MUI_PAGE_DIRECTORY entries, and specify a different variable (using !define MUI_DIRECTORYPAGE_VARIABLE) to hold the directory picked for each of your two components.

e.g.
code:

var InstDirOne
!define MUI_DIRECTORYPAGE_VARIABLE $InstDirOne
!insertmacro MUI_PAGE_DIRECTORY

var InstDirTwo
!define MUI_DIRECTORYPAGE_VARIABLE $InstDirTwo
!insertmacro MUI_PAGE_DIRECTORY



Make sure you use those variables in your components instead of $INSTDIR
Animaether is offline   Reply With Quote
Old 15th February 2009, 23:24   #3
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
oh.. just to add - if you would rather have 2 directory fields on 1 page, you'll have to create a custom page yourself using e.g. nsDialogs or the older InstallOptions(2/Ex)
Animaether is offline   Reply With Quote
Old 15th February 2009, 23:39   #4
David.Tooley
Junior Member
 
Join Date: Feb 2009
Location: Auckland, New Zealand
Posts: 2
Thanks heaps, i'm giving it a try now... its looking good so far..

Thanks
David
David.Tooley 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