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.