Archive: $INSTDIR change problem


$INSTDIR change problem
If append a subdirectory name to $INSTDIR in the leave function of directory page, it will be lost.


Try the .onVerifyInstDir


It doesn't help. I got the same result.


Sorry, I didn't watch your 1st post carefully :)
I think the solution is into the manual, 4.8.1.21 InstallDir


I know this section.
It works only with the "Browse" button.

I need a workaround for the directly written path.


You don't want the user to know the appended installation dir?

Then add it into the installation section, e.g.
Setoupath "$INSTDIR\My_append"


This script represents the problem.

The $INSTDIR is repaired in the DirLeave function, but the messagebox in CustomPre function will show the unfixed value.