Old 3rd December 2008, 08:45   #1
volpolo
Junior Member
 
Join Date: Nov 2008
Location: Italy
Posts: 13
Mui_directory_page

I use a MUI_DIRECTORY_PAGE (using $INSTDIR)for Application Setup.
I use, also, another MUI_DIRECTORY_PAGE (using !define MUI_DIRECTORYPAGE_VARIABLE $MyDir) for Application Data.

I need:

the second DIRECTORY page manage $MyDir such as like $INSTDIR; I mean that user selection (browse button) must be ADDED to the value / path in $MyDir.

Who can help me?

Thanks in advance
volpolo is offline   Reply With Quote
Old 3rd December 2008, 17:41   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
I'm not sure what you mean by your question - could you give more details / an example of what you're looking for?
Animaether is offline   Reply With Quote
Old 3rd December 2008, 19:50   #3
volpolo
Junior Member
 
Join Date: Nov 2008
Location: Italy
Posts: 13
Try to explain.

First DIRECTORY_PAGE (used to choose the installation path of my application), use:

InstallDir "$PROGRAMFILES\MYApp"

When (if) the user select another path (ex. c:\PPP\), InstallDir becames "c:\PPP\MYApp".

This is the second DIRECTORY_PAGE :

!define MUI_DIRECTORYPAGE_VARIABLE $Var (Ex. Data)
!insertmacro MUI_PAGE_DIRECTORY

When (if) the user select another path (ex. c:\PPP\, same as below), $Var becames "c:\PPP\". It's no useful for me, i need it becames "c:\PPP\Data".

I hope it's better to understand for you.

Thanks for reply
volpolo is offline   Reply With Quote
Old 4th December 2008, 03:01   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Okay.. so you just want to make sure that when the user picks a folder, "\Data\" is always appended?

E.g. the user picks "c:\PPP\", then you want the result to be "c:\PPP\Data\", and if the user picks "c:\foo\", then you want the result to be "c:\foo\Data\"?

If so, just append it after the user picks the folder...
code:

StrCpy $Var '$Var\Data\'


You may have to manually update the text in the directory text field using sendmessage and wm_settext, so as not to minimize confusing the user.
Animaether 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