Merge pull request #61 from TheCycoONE/win32nsi-lua

Move deletion of Lua files in Windows Installer
This commit is contained in:
Edvin
2013-11-01 08:31:10 -07:00
committed by Stephen E. Baker
parent 21ce03ccd0
commit 69a3ed8157

View File

@@ -179,6 +179,12 @@ FunctionEnd
Section "MainSection" SEC01
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
${If} ${FileExists} "$INSTDIR\Lua"
RMDir /r "$INSTDIR\Lua"
CreateDirectory "$INSTDIR\Lua"
${EndIf}
${If} ${RunningX64}
File /r /x .svn x64\*.*
Goto continued
@@ -221,10 +227,6 @@ Section "MainSection" SEC01
; The three other needed folders
; The old Lua folder is deleted first, if any exists, so that the game can start properly.
${If} ${FileExists} "$INSTDIR\Lua"
RMDir /r "$INSTDIR\Lua"
CreateDirectory "$INSTDIR\Lua"
${EndIf}
SetOutPath "$INSTDIR\Lua"
File /r /x .svn ..\CorsixTH\Lua\*.*