Skip to content

Commit

Permalink
SetOutPath should be executed before any CMD.exe execution
Browse files Browse the repository at this point in the history
  • Loading branch information
belphegor-belbel committed Jun 14, 2019
1 parent f294e6f commit 911a7f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openSUSE_installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ Function .onInit
StrCpy $systemDrive "C:"
${EndIf}

; SetOutPath should be executed before any CMD.exe execution;
; CMD.exe may cause error if openSUSE_installer.exe is run in UNC path.
SetOutPath $INSTDIR

Call GetSystemMemoryInfo
StrCpy $R0 768
${If} $4 L< $R0
Expand Down Expand Up @@ -1216,8 +1220,6 @@ lbl_hyperverrorsnodelete:
Return
${EndIf}

SetOutPath $INSTDIR

StrLen $1 $(STRING_VERSIONOFTHISMEDIA)
StrCpy $0 $distribution $1
${If} $0 == $(STRING_VERSIONOFTHISMEDIA)
Expand Down

0 comments on commit 911a7f2

Please sign in to comment.