Skip to content
⌘ NSIS Forum Archive

$INSTDIR change problem

7 posts

ncsengodi#

$INSTDIR change problem

If append a subdirectory name to $INSTDIR in the leave function of directory page, it will be lost.
Red Wine#
Sorry, I didn't watch your 1st post carefully 🙂
I think the solution is into the manual, 4.8.1.21 InstallDir
ncsengodi#
I know this section.
It works only with the "Browse" button.

I need a workaround for the directly written path.
Red Wine#
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"
ncsengodi#
This script represents the problem.

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