From: <ror...@us...> - 2007-07-27 12:29:16
|
Revision: 132 http://roreditor.svn.sourceforge.net/roreditor/?rev=132&view=rev Author: rorthomas Date: 2007-07-27 05:29:13 -0700 (Fri, 27 Jul 2007) Log Message: ----------- * moved setup to separate folder * added python file extension .reg file Modified Paths: -------------- trunk/postinstall.py Added Paths: ----------- trunk/devtools/python.reg trunk/devtools/setup/ trunk/devtools/setup/readme-installer.txt trunk/devtools/setup/setup.nsi trunk/devtools/setup/splash.bmp Removed Paths: ------------- trunk/readme-installer.txt trunk/setup.nsi trunk/splash.bmp trunk/testunrar.py trunk/testunzip.py Added: trunk/devtools/python.reg =================================================================== (Binary files differ) Property changes on: trunk/devtools/python.reg ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/devtools/setup/readme-installer.txt =================================================================== --- trunk/devtools/setup/readme-installer.txt (rev 0) +++ trunk/devtools/setup/readme-installer.txt 2007-07-27 12:29:13 UTC (rev 132) @@ -0,0 +1,2 @@ +have fun and report bugs and feature requests! :) +http://forum.rigsofrods.com \ No newline at end of file Added: trunk/devtools/setup/setup.nsi =================================================================== --- trunk/devtools/setup/setup.nsi (rev 0) +++ trunk/devtools/setup/setup.nsi 2007-07-27 12:29:13 UTC (rev 132) @@ -0,0 +1,262 @@ +; Script generated by the HM NIS Edit Script Wizard. + +; HM NIS Edit Wizard helper defines +!define PRODUCT_NAME "RoRToolkit" +!define PRODUCT_VERSION "r105" +!define PRODUCT_PUBLISHER "Thomas Fischer" +!define PRODUCT_WEB_SITE "http://wiki.rigsofrods.com/index.php?title=RoRToolkit" +!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" +!define PRODUCT_UNINST_ROOT_KEY "HKLM" + +!define PYTHONVERSION "2.5" +!define PYTHONDLURL "http://python.org/ftp/python/2.5.1/python-2.5.1.msi" +!define PYTHONDLFN "python-2.5.1.msi" + +SetCompressor lzma + +BrandingText "Rigs of Rods Toolkit" +InstProgressFlags smooth colored +XPStyle on +ShowInstDetails show +ShowUninstDetails show +SetDateSave on +#SetDatablockOptimize on +CRCCheck on +#SilentInstall normal + +; MUI 1.67 compatible ------ +!include "MUI.nsh" +!include "LogicLib.nsh" + +; MUI Settings +!define MUI_ABORTWARNING +!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-blue.ico" +!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-blue.ico" + +; Language Selection Dialog Settings +!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" +!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" +!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" + +; Welcome page +!insertmacro MUI_PAGE_WELCOME +; License page +!insertmacro MUI_PAGE_LICENSE "readme-installer.txt" +; Directory page +!insertmacro MUI_PAGE_DIRECTORY +; Instfiles page +!insertmacro MUI_PAGE_INSTFILES +; Finish page +;!define MUI_FINISHPAGE_RUN "$INSTDIR\rortoolkit.bat" +;!define MUI_FINISHPAGE_RUN_PARAMETERS "" +#!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Example.file" + +!define MUI_FINISHPAGE_NOAUTOCLOSE +!define MUI_FINISHPAGE_RUN +!define MUI_FINISHPAGE_RUN_NOTCHECKED +!define MUI_FINISHPAGE_RUN_TEXT "Update and start (Can take some time)" +!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchPostInstallation" +!insertmacro MUI_PAGE_FINISH + +; Uninstaller pages +!insertmacro MUI_UNPAGE_INSTFILES + +; Language files +!insertmacro MUI_LANGUAGE "English" +!insertmacro MUI_LANGUAGE "French" +!insertmacro MUI_LANGUAGE "German" +!insertmacro MUI_LANGUAGE "Spanish" +!insertmacro MUI_LANGUAGE "Polish" +!insertmacro MUI_LANGUAGE "Russian" +!insertmacro MUI_LANGUAGE "Ukrainian" +!insertmacro MUI_LANGUAGE "Finnish" +!insertmacro MUI_LANGUAGE "Czech" +!insertmacro MUI_LANGUAGE "Italian" + +; Reserve files +!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS + +; MUI end ------ + +Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" +OutFile "RoRToolkitSetup.exe" +;InstallDir "$PROGRAMFILES\RoRToolkit" +InstallDir "c:\rortoolkit" +ShowInstDetails show +ShowUnInstDetails show + +Var /GLOBAL PYOK +Var /GLOBAL PYPATH +Var /GLOBAL PYINSTALLED + +Function DetectPython + ReadRegStr $R6 HKCU "SOFTWARE\Python\PythonCore\${PYTHONVERSION}\InstallPath" "" + ${If} $R6 == '' + ReadRegStr $R6 HKLM "SOFTWARE\Python\PythonCore\${PYTHONVERSION}\InstallPath" "" + ${If} $R6 == '' + Push "No registry key found" + Push "NOK" + Return + ${EndIf} + ${EndIf} + + ${If} ${FileExists} "$R6\python.exe" + Push "$R6" + Push "OK" + ${Else} + Push "No python.exe found" + Push "NOK" + ${EndIf} +FunctionEnd + +Function CheckForPython + Banner::show /NOUNLOAD "Checking for Python ${PYTHONVERSION} ..." + StrCpy $PYINSTALLED "" + Call DetectPython + Pop $PYOK + Pop $PYPATH + Banner::destroy + ${If} $PYOK == 'OK' + DetailPrint "Detected Python ${PYTHONVERSION}!" + Return + ${Else} + MessageBox MB_YESNOCANCEL|MB_ICONEXCLAMATION "The installer cannot find Python ${PYTHONVERSION}!$\r$\nWould you like the installer to download and install Python ${PYTHONVERSION} for you?" IDNO abort IDCANCEL abort + DetailPrint "Downloading ${PYTHONDLURL}..." + + NSISdl::download ${PYTHONDLURL} ${PYTHONDLFN} + Pop $R0 ;Get the return value + StrCmp $R0 "success" dlok abort + dlok: + DetailPrint "Installing Python ${PYTHONVERSION}..." + ExecWait '"msiExec" /q /i "${PYTHONDLFN}"' + StrCpy $PYINSTALLED "" + Call DetectPython + Pop $PYOK + Pop $PYPATH + ${If} $PYOK == 'OK' + DetailPrint "Detected Python ${PYTHONVERSION}!" + Return + ${Else} + MessageBox MB_OK "Python ${PYTHONVERSION} installation failed! Please install by hand and restart this installation!" + Abort + ${EndIf} + Return + ${EndIf} + Return + abort: + MessageBox MB_OK "Please install Python ${PYTHONVERSION} and retry this installation!" + Abort +FunctionEnd + +Function InstallDirectX + InitPluginsDir + File /oname=$PLUGINSDIR\dxwebsetup.exe "tools\dxwebsetup.exe" + Banner::show /NOUNLOAD "Installing lastest DirectX ..." + ExecWait '"$PLUGINSDIR\dxwebsetup.exe /Q"' + Delete $PLUGINSDIR\dxwebsetup.exe + Banner::destroy +FunctionEnd + + +Function InstallPyWin32 + InitPluginsDir + File /oname=$PLUGINSDIR\pywin32-setup.exe "tools\pywin32-setup.exe" + Banner::show /NOUNLOAD "Installing Python for Windows ..." + ExecWait '"$PLUGINSDIR\pywin32-setup.exe"' + Delete $PLUGINSDIR\pywin32-setup.exe + Banner::destroy +FunctionEnd + +Function InstallPyParsing + InitPluginsDir + File /oname=$PLUGINSDIR\pyparsing-1.4.6.win32.exe "tools\pyparsing-1.4.6.win32.exe" + Banner::show /NOUNLOAD "Installing PyParsing Python Module ..." + ExecWait '"$PLUGINSDIR\pyparsing-1.4.6.win32.exe"' + Delete $PLUGINSDIR\pyparsing-1.4.6.win32.exe + Banner::destroy +FunctionEnd + +Function InstallGraphViz + InitPluginsDir + File /oname=$PLUGINSDIR\graphviz-2.12.exe "tools\graphviz-2.12.exe" + Banner::show /NOUNLOAD "Installing Graphviz for Windows ..." + ExecWait '"$PLUGINSDIR\graphviz-2.12.exe"' + Delete $PLUGINSDIR\graphviz-2.12.exe + Banner::destroy +FunctionEnd + + +Function .onInit + InitPluginsDir + File /oname=$PLUGINSDIR\..bmp "splash.bmp" + advsplash::show 1000 1300 600 -1 $PLUGINSDIR\splash + Pop $0 + Delete $PLUGINSDIR\splash.bmp + !insertmacro MUI_LANGDLL_DISPLAY +FunctionEnd + +Section "Install Python" SEC01 + Call CheckForPython +SectionEnd + +Section "Install Tools" SEC02 + Call InstallDirectX + Call InstallPyWin32 + Call InstallPyParsing + Call InstallGraphViz +SectionEnd + +Section "Full Installation" SEC03 + SetOutPath "$INSTDIR" + SetOverwrite try + File "/r" "..\..\*" +SectionEnd + +Function "LaunchPostInstallation" + ExecWait '"$INSTDIR\update.bat"' + ExecWait '"$INSTDIR\rortoolkit.bat"' +FunctionEnd + +Section -AdditionalIcons + SetOutPath $INSTDIR + WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" + CreateDirectory "$SMPROGRAMS\RoRToolkit" +# CreateShortCut "$SMPROGRAMS\RoRToolkit\RoR Truck Editor.lnk" "$INSTDIR\terraineditor.bat" "" "$INSTDIR\ror.ico" + CreateShortCut "$SMPROGRAMS\RoRToolkit\RoR Toolkit.lnk" "$INSTDIR\rortoolkit.bat" "" "$INSTDIR\ror.ico" + CreateShortCut "$SMPROGRAMS\RoRToolkit\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" + CreateShortCut "$SMPROGRAMS\RoRToolkit\Uninstall.lnk" "$INSTDIR\uninst.exe" +SectionEnd + +Section -Post + WriteUninstaller "$INSTDIR\uninst.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" + WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" +SectionEnd + + +Function un.onUninstSuccess + HideWindow + MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was uninstalled successfully." +FunctionEnd + +Function un.onInit + MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Do you want to uninstall $(^Name)?" IDYES +2 + Abort +FunctionEnd + +Section Uninstall + Delete "$INSTDIR\${PRODUCT_NAME}.url" + Delete "$INSTDIR\uninst.exe" + #RMDir "/r" "$INSTDIR\media" + RMDir "/r" "$INSTDIR" + + RMDir "/r" "$SMPROGRAMS\RoRToolkit" + Delete "$STARTMENU.lnk" + RMDir "$INSTDIR" + + DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" + SetAutoClose false +SectionEnd \ No newline at end of file Added: trunk/devtools/setup/splash.bmp =================================================================== (Binary files differ) Property changes on: trunk/devtools/setup/splash.bmp ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/postinstall.py =================================================================== --- trunk/postinstall.py 2007-07-27 12:14:42 UTC (rev 131) +++ trunk/postinstall.py 2007-07-27 12:29:13 UTC (rev 132) @@ -18,7 +18,7 @@ basename = os.path.basename(filename) filenameonly, extension = os.path.splitext(basename) thispath = os.path.join(installpath, filenameonly+".py") - pythonpath = "%systemdrive%\python25\python.exe" + pythonpath = "%systemdrive%\python25\pythonw.exe" content = ["@%s %s %%*" % (pythonpath, thispath)] saveFile(filename, content) Deleted: trunk/readme-installer.txt =================================================================== --- trunk/readme-installer.txt 2007-07-27 12:14:42 UTC (rev 131) +++ trunk/readme-installer.txt 2007-07-27 12:29:13 UTC (rev 132) @@ -1,2 +0,0 @@ -have fun and report bugs and feature requests! :) -http://forum.rigsofrods.com \ No newline at end of file Deleted: trunk/setup.nsi =================================================================== --- trunk/setup.nsi 2007-07-27 12:14:42 UTC (rev 131) +++ trunk/setup.nsi 2007-07-27 12:29:13 UTC (rev 132) @@ -1,262 +0,0 @@ -; Script generated by the HM NIS Edit Script Wizard. - -; HM NIS Edit Wizard helper defines -!define PRODUCT_NAME "RoRToolkit" -!define PRODUCT_VERSION "r105" -!define PRODUCT_PUBLISHER "Thomas Fischer" -!define PRODUCT_WEB_SITE "http://wiki.rigsofrods.com/index.php?title=RoRToolkit" -!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}" -!define PRODUCT_UNINST_ROOT_KEY "HKLM" - -!define PYTHONVERSION "2.5" -!define PYTHONDLURL "http://python.org/ftp/python/2.5.1/python-2.5.1.msi" -!define PYTHONDLFN "python-2.5.1.msi" - -SetCompressor lzma - -BrandingText "Rigs of Rods Toolkit" -InstProgressFlags smooth colored -XPStyle on -ShowInstDetails show -ShowUninstDetails show -SetDateSave on -#SetDatablockOptimize on -CRCCheck on -#SilentInstall normal - -; MUI 1.67 compatible ------ -!include "MUI.nsh" -!include "LogicLib.nsh" - -; MUI Settings -!define MUI_ABORTWARNING -!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-blue.ico" -!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall-blue.ico" - -; Language Selection Dialog Settings -!define MUI_LANGDLL_REGISTRY_ROOT "${PRODUCT_UNINST_ROOT_KEY}" -!define MUI_LANGDLL_REGISTRY_KEY "${PRODUCT_UNINST_KEY}" -!define MUI_LANGDLL_REGISTRY_VALUENAME "NSIS:Language" - -; Welcome page -!insertmacro MUI_PAGE_WELCOME -; License page -!insertmacro MUI_PAGE_LICENSE "readme-installer.txt" -; Directory page -!insertmacro MUI_PAGE_DIRECTORY -; Instfiles page -!insertmacro MUI_PAGE_INSTFILES -; Finish page -;!define MUI_FINISHPAGE_RUN "$INSTDIR\rortoolkit.bat" -;!define MUI_FINISHPAGE_RUN_PARAMETERS "" -#!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\Example.file" - -!define MUI_FINISHPAGE_NOAUTOCLOSE -!define MUI_FINISHPAGE_RUN -!define MUI_FINISHPAGE_RUN_NOTCHECKED -!define MUI_FINISHPAGE_RUN_TEXT "Update and start (Can take some time)" -!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchPostInstallation" -!insertmacro MUI_PAGE_FINISH - -; Uninstaller pages -!insertmacro MUI_UNPAGE_INSTFILES - -; Language files -!insertmacro MUI_LANGUAGE "English" -!insertmacro MUI_LANGUAGE "French" -!insertmacro MUI_LANGUAGE "German" -!insertmacro MUI_LANGUAGE "Spanish" -!insertmacro MUI_LANGUAGE "Polish" -!insertmacro MUI_LANGUAGE "Russian" -!insertmacro MUI_LANGUAGE "Ukrainian" -!insertmacro MUI_LANGUAGE "Finnish" -!insertmacro MUI_LANGUAGE "Czech" -!insertmacro MUI_LANGUAGE "Italian" - -; Reserve files -!insertmacro MUI_RESERVEFILE_INSTALLOPTIONS - -; MUI end ------ - -Name "${PRODUCT_NAME} ${PRODUCT_VERSION}" -OutFile "RoRToolkitSetup.exe" -;InstallDir "$PROGRAMFILES\RoRToolkit" -InstallDir "c:\rortoolkit" -ShowInstDetails show -ShowUnInstDetails show - -Var /GLOBAL PYOK -Var /GLOBAL PYPATH -Var /GLOBAL PYINSTALLED - -Function DetectPython - ReadRegStr $R6 HKCU "SOFTWARE\Python\PythonCore\${PYTHONVERSION}\InstallPath" "" - ${If} $R6 == '' - ReadRegStr $R6 HKLM "SOFTWARE\Python\PythonCore\${PYTHONVERSION}\InstallPath" "" - ${If} $R6 == '' - Push "No registry key found" - Push "NOK" - Return - ${EndIf} - ${EndIf} - - ${If} ${FileExists} "$R6\python.exe" - Push "$R6" - Push "OK" - ${Else} - Push "No python.exe found" - Push "NOK" - ${EndIf} -FunctionEnd - -Function CheckForPython - Banner::show /NOUNLOAD "Checking for Python ${PYTHONVERSION} ..." - StrCpy $PYINSTALLED "" - Call DetectPython - Pop $PYOK - Pop $PYPATH - Banner::destroy - ${If} $PYOK == 'OK' - DetailPrint "Detected Python ${PYTHONVERSION}!" - Return - ${Else} - MessageBox MB_YESNOCANCEL|MB_ICONEXCLAMATION "The installer cannot find Python ${PYTHONVERSION}!$\r$\nWould you like the installer to download and install Python ${PYTHONVERSION} for you?" IDNO abort IDCANCEL abort - DetailPrint "Downloading ${PYTHONDLURL}..." - - NSISdl::download ${PYTHONDLURL} ${PYTHONDLFN} - Pop $R0 ;Get the return value - StrCmp $R0 "success" dlok abort - dlok: - DetailPrint "Installing Python ${PYTHONVERSION}..." - ExecWait '"msiExec" /q /i "${PYTHONDLFN}"' - StrCpy $PYINSTALLED "" - Call DetectPython - Pop $PYOK - Pop $PYPATH - ${If} $PYOK == 'OK' - DetailPrint "Detected Python ${PYTHONVERSION}!" - Return - ${Else} - MessageBox MB_OK "Python ${PYTHONVERSION} installation failed! Please install by hand and restart this installation!" - Abort - ${EndIf} - Return - ${EndIf} - Return - abort: - MessageBox MB_OK "Please install Python ${PYTHONVERSION} and retry this installation!" - Abort -FunctionEnd - -Function InstallDirectX - InitPluginsDir - File /oname=$PLUGINSDIR\dxwebsetup.exe "tools\dxwebsetup.exe" - Banner::show /NOUNLOAD "Installing lastest DirectX ..." - ExecWait '"$PLUGINSDIR\dxwebsetup.exe /Q"' - Delete $PLUGINSDIR\dxwebsetup.exe - Banner::destroy -FunctionEnd - - -Function InstallPyWin32 - InitPluginsDir - File /oname=$PLUGINSDIR\pywin32-setup.exe "tools\pywin32-setup.exe" - Banner::show /NOUNLOAD "Installing Python for Windows ..." - ExecWait '"$PLUGINSDIR\pywin32-setup.exe"' - Delete $PLUGINSDIR\pywin32-setup.exe - Banner::destroy -FunctionEnd - -Function InstallPyParsing - InitPluginsDir - File /oname=$PLUGINSDIR\pyparsing-1.4.6.win32.exe "tools\pyparsing-1.4.6.win32.exe" - Banner::show /NOUNLOAD "Installing PyParsing Python Module ..." - ExecWait '"$PLUGINSDIR\pyparsing-1.4.6.win32.exe"' - Delete $PLUGINSDIR\pyparsing-1.4.6.win32.exe - Banner::destroy -FunctionEnd - -Function InstallGraphViz - InitPluginsDir - File /oname=$PLUGINSDIR\graphviz-2.12.exe "tools\graphviz-2.12.exe" - Banner::show /NOUNLOAD "Installing Graphviz for Windows ..." - ExecWait '"$PLUGINSDIR\graphviz-2.12.exe"' - Delete $PLUGINSDIR\graphviz-2.12.exe - Banner::destroy -FunctionEnd - - -Function .onInit - InitPluginsDir - File /oname=$PLUGINSDIR\splash.bmp "splash.bmp" - advsplash::show 1000 1300 600 -1 $PLUGINSDIR\splash - Pop $0 - Delete $PLUGINSDIR\splash.bmp - !insertmacro MUI_LANGDLL_DISPLAY -FunctionEnd - -Section "Install Python" SEC01 - Call CheckForPython -SectionEnd - -Section "Install Tools" SEC02 - Call InstallDirectX - Call InstallPyWin32 - Call InstallPyParsing - Call InstallGraphViz -SectionEnd - -Section "Full Installation" SEC03 - SetOutPath "$INSTDIR" - SetOverwrite try - File "/r" "*" -SectionEnd - -Function "LaunchPostInstallation" - ExecWait '"$INSTDIR\update.bat"' - ExecWait '"$INSTDIR\rortoolkit.bat"' -FunctionEnd - -Section -AdditionalIcons - SetOutPath $INSTDIR - WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}" - CreateDirectory "$SMPROGRAMS\RoRToolkit" -# CreateShortCut "$SMPROGRAMS\RoRToolkit\RoR Truck Editor.lnk" "$INSTDIR\terraineditor.bat" "" "$INSTDIR\ror.ico" - CreateShortCut "$SMPROGRAMS\RoRToolkit\RoR Toolkit.lnk" "$INSTDIR\rortoolkit.bat" "" "$INSTDIR\ror.ico" - CreateShortCut "$SMPROGRAMS\RoRToolkit\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url" - CreateShortCut "$SMPROGRAMS\RoRToolkit\Uninstall.lnk" "$INSTDIR\uninst.exe" -SectionEnd - -Section -Post - WriteUninstaller "$INSTDIR\uninst.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninst.exe" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}" - WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}" -SectionEnd - - -Function un.onUninstSuccess - HideWindow - MessageBox MB_ICONINFORMATION|MB_OK "$(^Name) was uninstalled successfully." -FunctionEnd - -Function un.onInit - MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2 "Do you want to uninstall $(^Name)?" IDYES +2 - Abort -FunctionEnd - -Section Uninstall - Delete "$INSTDIR\${PRODUCT_NAME}.url" - Delete "$INSTDIR\uninst.exe" - #RMDir "/r" "$INSTDIR\media" - RMDir "/r" "$INSTDIR" - - RMDir "/r" "$SMPROGRAMS\RoRToolkit" - Delete "$STARTMENU.lnk" - RMDir "$INSTDIR" - - DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" - SetAutoClose false -SectionEnd \ No newline at end of file Deleted: trunk/splash.bmp =================================================================== (Binary files differ) Deleted: trunk/testunrar.py =================================================================== --- trunk/testunrar.py 2007-07-27 12:14:42 UTC (rev 131) +++ trunk/testunrar.py 2007-07-27 12:29:13 UTC (rev 132) @@ -1,24 +0,0 @@ -#Thomas Fischer 31/05/2007, th...@th... -import sys, os, os.path, shutil - -def main(): - sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib")) - - fn = 'MudFest_v1-isc-d.rar' - - import UnRAR - #extract all the files in test.rar - zipdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "temp") - if os.path.isdir(zipdir): - shutil.rmtree(zipdir) - os.rmdir(zipdir) - os.mkdir(zipdir) - dst = os.path.join(zipdir, fn) - src = os.path.join(os.path.dirname(os.path.abspath(__file__)), fn) - shutil.copyfile(src, dst) - os.chdir(zipdir) - - UnRAR.Archive(fn).extract() - -if __name__=="__main__": - main() \ No newline at end of file Deleted: trunk/testunzip.py =================================================================== --- trunk/testunzip.py 2007-07-27 12:14:42 UTC (rev 131) +++ trunk/testunzip.py 2007-07-27 12:29:13 UTC (rev 132) @@ -1,18 +0,0 @@ -#Thomas Fischer 31/05/2007, th...@th... -import sys, os, os.path, shutil - -def main(): - sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib")) - - fn = 'daf_swapbody.zip' - - import UnZIP - - zipdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "temp") - if os.path.isdir(zipdir): - shutil.rmtree(zipdir) - - UnZIP.unzip(fn, zipdir) - -if __name__=="__main__": - main() \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |