Archive: InstallDir question


InstallDir question
I want to change the behaviour of the directory browse function in the Modern User Interface.

Current situation: you select the directory in which you want to install the application, and instead of the directory, you get 'the directory\your application'. Could it be changed in such a way that the chosen directory from the browse button was returned in full in the installation directory path, without the original application directory?

So.. if I have:

InstallDir "$PROGRAMFILES\Test1"

and I click on browse and select Program Files\Test2, the directory becomes:

C:\Program Files\Test2

instead of

C:\Program Files\Test2\Test1

IS THIS POSSIBLE?!?!

(Sorry for the confusing way of writing :))



Thanks for the help.


Yep, just set it with a trailing slash like so:
InstallDir "$PROGRAMFILES\Test1\"