Skip to content

Commit 8714206

Browse files
committed
#4588 Test
1 parent b624366 commit 8714206

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

indra/newview/installers/windows/installer_template.nsi

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff 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
265266
Push " /D="
266267
Call 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
271273
ReadRegStr $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

0 commit comments

Comments
 (0)