Skip to content
⌘ NSIS Forum Archive

Customize INSTDIR according to CurrentUser/AllUsers install modes

2 posts

hoomanv#

Customize INSTDIR according to CurrentUser/AllUsers install modes

Hi,

MultiUser.nsh sets the $INSTDIR according to the $MultiUser.InstallMode value to one of the following:

CurrentUser:
"$LOCALAPPDATA\${MULTIUSER_INSTALLMODE_INSTDIR}"
AllUsers:
"$PROGRAMFILES\${MULTIUSER_INSTALLMODE_INSTDIR}"

I need a slightly different value for CurrentUser install mode, that is
"$LOCALAPPDATA\Programs\${MULTIUSER_INSTALLMODE_INSTDIR}"

How can I achieve this?
hoomanv#
Answered here:
https://stackoverflow.com/questions/47162998 (!define MULTIUSER_INSTALLMODE_FUNCTION)