Archive: renaming "Destination Folder" label


renaming "Destination Folder" label
Can anyone tell me how to rename "Destination Folder" to something else like "Application Folder".

Thanks


DirText can change that. For example:

DirText "" blabla

If using the MUI, use MUI_DIRECTORYPAGE_TEXT_DESTINATION.


It's not working

I have several paths to deal with so I'm using a Var to store the current folder label

Here is my code:

Var "FOLDER_LABEL"

!define MUI_DIRECTORYPAGE_TEXT_DESTINATION $FOLDER_LABEL

In my applicationPathPre function:

StrCpy $FOLDER_LABEL "Application Folder"

In my dataPathPre function:

StrCpy $FOLDER_LABEL "Data Folder"

In both cases it still say "Destination Folder" in blue. Any ideas?

Thanks


Works fine for me. Make sure you have set the setting before the page macro.


Still not working.

I have these defines

!define MUI_PAGE_CUSTOMFUNCTION_PRE "applicationPathPre"
!define MUI_PAGE_HEADER_TEXT "Software Location"
!define MUI_PAGE_HEADER_SUBTEXT $APP_FOLDER_SUBHEADER
!define MUI_DIRECTORYPAGE_TEXT $APP_FOLDER_TEXT

!define MUI_DIRECTORYPAGE_TEXT_DESTINATION $FOLDER_LABEL

before

!insertmacro MUI_PAGE_DIRECTORY

All except the MUI_DIRECTORYPAGE_TEXT_DESTINATION work fine

Can you please include a code fragment that I can test that you know works for you?

Thanks


This code works for b4:

!define MUI_DIRECTORYPAGE_TEXT_TOP "bla bla"
!define MUI_DIRECTORYPAGE_TEXT_DESTINATION "bla bla bla"
!insertmacro MUI_PAGE_DIRECTORY

!define MUI_DIRECTORYPAGE_TEXT_TOP "bla bla 2"
!define MUI_DIRECTORYPAGE_TEXT_DESTINATION "bla bla bla 2"
!insertmacro MUI_PAGE_DIRECTORY
Which version are you using? MUI_DIRECTORYPAGE_TEXT is a define from b4 (CVS) and has been replaced to fix a bug if I remember correctly. I think you should define MUI_DIRECTORYPAGE_TEXT as follows for that version:
!define MUI_DIRECTORYPAGE_TEXT "$APP_FOLDER_TEXT $FOLDER_LABEL"

All texts have separate setting now (beta 4). You are using a development version, so you should check the Readme for the settings or upgrade to beta 4.


I am using ver 2.0 beta 4. Should I be using another version?

Anyway the following suggestion worked.

!define MUI_DIRECTORYPAGE_TEXT "$APP_FOLDER_TEXT $FOLDER_LABEL"

Thanks for your help.


You are definately not using beta 4 but a CVS development snapshot. This setting does not exist in the beta 4 release.


I will upgrade, thanks again.