|
|
#1 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
|
MultiUser support and InstallDir
Hello,
I have 2 issues with using MultiUser.nsh and setting installation directory: 1. Command line parameter /D is ignored when using macro MULTIUSER_INIT. Path from parameter /D is overriden by MULTIUSER_INSTALLMODE_INSTDIR_x defines for setting INSTDIR. I need parameter /D to have highest priority. 2. When string from registry is found by defines MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_x, MultiUser support sets INSTDIR including file name. This is different behavior from InstallDirRegKey, that removes file name. It's simple to workaround the second issue, but don't know how to solve the first one. Thanks for any help |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
I haven't played with MultiUser (haven't really had a need). But, if I'm reading the documnetation correctly, the install directory is set by defining MULTIUSER_INSTALLMODE_INSTDIR before using !insertmacro MULTIUSER_INIT. (Hopefully, that's right.)
If so, here's something you might try: code: |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2008
Posts: 2
|
Thanks, I got it. I used custom parameter /INSTDIR instead of native /D, that can't be extracted by GetParameters (see documentation for Variables, $CMDLINE).
code: |
|
|
|
|
|
#4 | |
|
Major Dude
Join Date: Jan 2005
Location: Oregon Coast
Posts: 737
|
Quote:
)I'm glad you got it to work! |
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|