Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th May 2012, 22:01   #1
jjkparker
Junior Member
 
Join Date: May 2012
Posts: 2
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:

code:
!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?
jjkparker is offline   Reply With Quote
Old 15th May 2012, 23:31   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
As with InstallDir, try adding a backstroke to the end of the path (see manual on InstallDir for explanation).

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 16th May 2012, 13:50   #3
jjkparker
Junior Member
 
Join Date: May 2012
Posts: 2
With this:
code:
!define MULTIUSER_INSTALLMODE_INSTDIR "MyApp\MyVersion"


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


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


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


No change either way!
jjkparker is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump