mirror of
https://github.com/CorsixTH/CorsixTH.git
synced 2025-07-23 04:13:01 +02:00
Merge pull request #61 from TheCycoONE/win32nsi-lua
Move deletion of Lua files in Windows Installer
This commit is contained in:
@@ -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\*.*
|
||||
|
||||
|
Reference in New Issue
Block a user