Archive: Directory Change Bug


Directory Change Bug
This code is entered for the install directory:



InstallDir $PROGRAMFILES\Folder_01

The user decides at directory page that they want
to install the files under another directory. They
want to change it to (Program Files\Folder_02) using
the browse button. After they choose and hit the ok
button it then reads in the text field for example:

"C:\Program Files\Folder_02\Folder_01"

This is a bug.

-MichaelFlya-

Add a backslash to InstallDir.


I think you may have misunderstood me. This is the
code at the top that stores a default path to the
variable ($INSTDIR). I didn't add quotations, but
here it is again with them.



InstallDir "$PROGRAMFILES\Folder_01"

There is no where to place a backslash.

-MichaelFlya-

There's always a place to add a backslash.

InstallDir "$PROGRAMFILES\Folder_01\"

That worked. Odd though, it shouldn't have
that error just because you don't add a
backslash. Correction add a backslash plus
put it in quotations. If you cannot remove
the need for it than why? I guess I should
say you should fool proof it lol.

Thanks !!

-MichaelFlya