Archive: MUI directorypage appends product name


MUI directorypage appends product name
Hey hey hey hey hey hey hey, work-related issue.

I'm using an MUI directory page to specify an "extra" directory for a system (it's an output "dump" directory), similarly to this example from the MUI docs:

;Add a directory page to let the user specify a plug-ins folder
;Store the folder in $PLUGINS_FOLDER

Var PLUGINS_FOLDER
!define MUI_DIRECTORYPAGE_VARIABLE $PLUGINS_FOLDER
!insertmacro MUI_PAGE_DIRECTORY


There's joyful fun and stuff in that it all works, but when the user selects the directory, it appends the product's name (BrandingText, I think) to the end of the selected folder. This is clearly beneficial for install directories, but in the case of other directories, not so much. Is there some settings variable which controls the string appended to the path?

It'd be handy to be able to disable this or change the string it uses, since it gives you totally the wrong thing for my needs at present. I'm guessing it's possible, but my stab in the dark-style Google and forum searches have come up with nothing.

Any pointers appreciated, cheers. :)

This has been fixed for 2.24, which should be released this weekend. Either wait for it, or append a backslash to InstallDir.

InstallDir "$PROGRAMFILES\Stuff\"

You're a hero, kichik, I'll try that. Cheers :)

Edit: Worked. Thanks again. :)