Archive: MUI_PAGE_DIRECTORY problem?


MUI_PAGE_DIRECTORY problem?
Hi everyone

I have a script that sets the default install directory like this:

InstallDir "C:\Program Files\MyCompany\MyApp"

and then uses MUI_PAGE_DIRECTORY to allow the user to alter the installation path.

Today a user reported a problem to me where, if they hit the browse button, create a new folder called "C:\MyApp" and select that, then the wizard displays "C:\MyApp\MyApp".

Of course, at this point they can edit the path and correct it, but they (quite rightly IMHO) wanted to know why the installer didn't just do what they asked for the first time.

Any ideas/help would be much appreciated.

-- graham


I think all you need to do is follow the path with a slash like so:

InstallDir "$PROGRAMFILES\MyCompany\MyApp\"

According to the InstallDir documentation that should do the trick.


Thanks very much. That did indeed solve the problem. (Doh! Next time I'll spend more time reading the docs...)