File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
indra/newview/installers/windows Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -258,21 +258,24 @@ Function .onInit
258258# However, SL-10506 complains about the resulting behavior, so the logic below
259259# is adapted from before we introduced MultiUser.nsh.
260260
261+ MessageBox MB_OK " Install path:'$INSTDIR' InstallDir:'$InstallDir' InstallDirRegKey:'$InstallDirRegKey'"
261262# Check if user specified /D= on the command line
262- System::Call ' kernel32::GetCommandLine()t .r1 '
263- StrCpy $1 $R1
264- Push $1
263+ System::Call ' kernel32::GetCommandLine()t .r0 '
264+ MessageBox MB_OK " data0:'$0' "
265+ Push $0
265266Push " /D="
266267Call StrStr
267- Pop $2
268- StrCmp $2 " " 0 after_instdir
268+ Pop $1
269+ MessageBox MB_OK " data1:'$1'"
270+ StrCmp $1 " " 0 after_instdir
269271
270272# if $0 is empty, this is the first time for this viewer name
271273ReadRegStr $0 SHELL_CONTEXT " ${INSTNAME_KEY}" " "
272274
273275# viewer with this name was installed before
274276${If} $0 != " "
275277 # use the value we got from registry as install location
278+ MessageBox MB_OK " Using value from registry:'$0'"
276279 StrCpy $INSTDIR $0
277280${EndIf}
278281
You can’t perform that action at this time.
0 commit comments