Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Mui_directory_page (http://forums.winamp.com/showthread.php?t=300586)

volpolo 3rd December 2008 08:45

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 17:41

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 19:50

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 03:01

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.


All times are GMT. The time now is 04:42.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.