Archive: InstallDir behavior with MultiUser


InstallDir behavior with MultiUser
I'm using the MultiUser library to do user-level installs of my app. I have this line in my nsi script to set the install directory:

!define MULTIUSER_INSTALLMODE_INSTDIR "MyApp\MyVersion"


I'm also using MUI2.

I find that when the user changes the default installation directory, the "MyVersion" part is not automatically appended to the directory they choose. I've read elsewhere that that's typically handled by the InstallDir command, but MultiUser hides all that.

How do I get the auto-append feature back for user-selected install directories?

As with InstallDir, try adding a backstroke to the end of the path (see manual on InstallDir for explanation).

Stu


With this:

!define MULTIUSER_INSTALLMODE_INSTDIR "MyApp\MyVersion"


When I click "Browse" and choose the Desktop, I get this:
C:\Users\<user>\Desktop\


With this (note the trailing backslash):
!define MULTIUSER_INSTALLMODE_INSTDIR "MyApp\MyVersion\"


When I click "Browse" and choose the Desktop, I get this:
C:\Users\<user>\Desktop\


No change either way!