Fixes the bug that causes nested oolite-saves directories to be created.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@379 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
dajt 2006-03-29 02:13:36 +00:00
parent b2df9f5b9a
commit 76d335104b

View File

@ -51,6 +51,42 @@ File /r "C:\program files\Oolite\*.*"
Call RegSetup
ClearErrors
FileOpen $0 $INSTDIR\RunOolite.bat w
IfErrors doneWriting
FileWrite $0 "@echo off"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 "set GNUSTEP_PATH_HANDLING=windows"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 "set GNUSTEP_LOCAL_ROOT=$INSTDIR\oolite.app"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 "set GNUSTEP_NETWORK_ROOT=$INSTDIR\oolite.app"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 "set GNUSTEP_SYSTEM_ROOT=$INSTDIR\oolite.app"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 "set HOMEPATH=$INSTDIR\oolite.app"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileWrite $0 "oolite.app\oolite.exe"
FileWriteByte $0 "13"
FileWriteByte $0 "10"
FileClose $0
doneWriting:
MessageBox MB_OK "Oolite Package was installed successfully"
SectionEnd