Skip to content

Commit

Permalink
Merge pull request #22222 from twangboy/fix_installer
Browse files Browse the repository at this point in the history
Fixed problem with nested directories
  • Loading branch information
twangboy committed Apr 1, 2015
2 parents c8378ff + 8615e8d commit 9ab3d5e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkg/windows/installer/Salt-Minion-Setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,19 @@ FunctionEnd

Function .onInit

MessageBox MB_OK "$INSTDIR"

confFind:
IfFileExists "$INSTDIR\conf\minion" confFound confNotFound

confNotFound:
${If} $INSTDIR == "c:\salt\bin\Scripts"
StrCpy $INSTDIR "C:\salt"
goto confFind
${Else}
goto confReallyNotFound
${EndIf}

confFound:
FileOpen $0 "$INSTDIR\conf\minion" r

Expand All @@ -256,7 +267,7 @@ Function .onInit
EndOfFile:
FileClose $0

confNotFound:
confReallyNotFound:
Push $R0
Push $R1
Push $R2
Expand Down

0 comments on commit 9ab3d5e

Please sign in to comment.