volpolo
3rd December 2008 09:45 UTC
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
Animaether
3rd December 2008 18:41 UTC
I'm not sure what you mean by your question - could you give more details / an example of what you're looking for?
volpolo
3rd December 2008 20:50 UTC
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
Animaether
4th December 2008 04:01 UTC
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...
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.