[Hdrflow-svn] SF.net SVN: hdrflow: [407] trunk/lib/openlibraries/installer
Status: Pre-Alpha
Brought to you by:
glslang
From: <gl...@us...> - 2008-02-06 22:55:45
|
Revision: 407 http://hdrflow.svn.sourceforge.net/hdrflow/?rev=407&view=rev Author: glslang Date: 2008-02-06 14:55:42 -0800 (Wed, 06 Feb 2008) Log Message: ----------- + breaking from the hive Added Paths: ----------- trunk/lib/openlibraries/installer/hdrflow_runtime.nsi Removed Paths: ------------- trunk/lib/openlibraries/installer/openlibraries_runtime.nsi Copied: trunk/lib/openlibraries/installer/hdrflow_runtime.nsi (from rev 406, trunk/lib/openlibraries/installer/openlibraries_runtime.nsi) =================================================================== --- trunk/lib/openlibraries/installer/hdrflow_runtime.nsi (rev 0) +++ trunk/lib/openlibraries/installer/hdrflow_runtime.nsi 2008-02-06 22:55:42 UTC (rev 407) @@ -0,0 +1,274 @@ +;-------------------------------- +;NSIS OpenLibraries Installation Script +;-------------------------------- + +!ifndef VERSION + !define VERSION 0_5_0 + !define VERSION_DOT 0.5.0 +!endif + +;-------------------------------- +;Configuration + +!ifdef OUTFILE + OutFile "${OUTFILE}" +!else + OutFile openlibraries-${VERSION_DOT}-runtime.exe +!endif + +SetCompressor /SOLID lzma + +InstType "Full" + +InstallDir $PROGRAMFILES\OpenLibraries +InstallDirRegKey HKLM Software\OpenLibraries "" + +;-------------------------------- +;Header Files + +!define ALL_USERS + +!include "MUI.nsh" +!include "Sections.nsh" +!include "add_to_path.nsh" +!include "write_env_str.nsh" + +;Names +Name "OpenLibraries" +Caption "OpenLibraries (v.${VERSION_DOT}) Setup" + +;Interface Settings +!define MUI_ABORTWARNING + +!define MUI_HEADERIMAGE +!define MUI_HEADERIMAGE_BITMAP "openlibraries.bmp" ; optional +!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp" + +!define MUI_COMPONENTSPAGE_SMALLDESC + +;Pages +!define MUI_WELCOMEPAGE_TITLE "Welcome to the OpenLibraries (v.${VERSION_DOT}) Setup Wizard" +!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of OpenLibraries.\r\n\r\n$_CLICK" + +!insertmacro MUI_PAGE_WELCOME +!insertmacro MUI_PAGE_LICENSE "..\COPYING" +!insertmacro MUI_PAGE_COMPONENTS +!insertmacro MUI_PAGE_DIRECTORY +!insertmacro MUI_PAGE_INSTFILES + +!define MUI_FINISHPAGE_LINK "Visit the web site for the latest news, FAQs and support" +!define MUI_FINISHPAGE_LINK_LOCATION "http://www.openlibraries.org/" + +!insertmacro MUI_PAGE_FINISH + +!insertmacro MUI_UNPAGE_CONFIRM +!insertmacro MUI_UNPAGE_INSTFILES + +;-------------------------------- +;Languages + +!insertmacro MUI_LANGUAGE "English" + +Section "OpenLibraries" SecCore + + SetDetailsPrint textonly + DetailPrint "Installing OpenLibraries..." + SetDetailsPrint listonly + + SectionIn 1 2 3 RO + SetOutPath $INSTDIR + + SetOverwrite on + + SetOutPath $INSTDIR\bin + File "..\src\openpluginlib\pl\Multi-threaded Release DLL\openpluginlib_pl-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\il\Multi-threaded Release DLL\openimagelib_il-vc80-r-${VERSION}.dll" + File "..\src\openmedialib\ml\Multi-threaded Release DLL\openmedialib_ml-vc80-r-${VERSION}.dll" + File "..\src\openobjectlib\sg\Multi-threaded Release DLL\openobjectlib_sg-vc80-r-${VERSION}.dll" + File "..\src\openassetlib\al\Multi-threaded Release DLL\openassetlib_al-vc80-r-${VERSION}.dll" + + ; dependencies + File "C:\Program Files\FFmpeg\lib\avcodec-51.dll" + File "C:\Program Files\FFmpeg\lib\avformat-51.dll" + File "C:\Program Files\FFmpeg\lib\avutil-49.dll" + File "C:\OpenEXR\bin\Release\Half.dll" + File "C:\OpenEXR\bin\Release\Iex.dll" + File "C:\OpenEXR\bin\Release\IlmImf.dll" + File "C:\OpenEXR\bin\Release\Half.dll" + File "C:\OpenEXR\bin\Release\IlmThread.dll" + File "C:\OpenEXR\bin\Release\Imath.dll" + File "C:\Program Files\NVIDIA Corporation\Cg\bin\cg.dll" + File "C:\Program Files\NVIDIA Corporation\Cg\bin\cgGL.dll" + File "C:\zlib\lib\zlib1.dll" + + ; Python + SetOutPath $INSTDIR\python + File "..\src\openpluginlib\py\Multi-threaded Release DLL\HDRFlowPlugin.pyd" + File "..\src\openimagelib\py\Multi-threaded Release DLL\HDRFlowImage.pyd" + File "..\src\openmedialib\py\Multi-threaded Release DLL\HDRFlowMedia.pyd" + File "..\src\openassetlib\py\Multi-threaded Release DLL\HDRFlowAsset.pyd" + + SetOutPath $INSTDIR\plugins\release + File "..\src\openimagelib\plugins\3D_lightmap\3D_lightmap_plugin.opl" + File "..\src\openimagelib\plugins\3D_lightmap\Multi-threaded Release DLL\openimagelib_3D_lightmap-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\dds\dds_plugin.opl" + File "..\src\openimagelib\plugins\dds\Multi-threaded Release DLL\openimagelib_dds-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\dpx\dpx_plugin.opl" + File "..\src\openimagelib\plugins\dpx\Multi-threaded Release DLL\openimagelib_dpx-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\exr\exr_plugin.opl" + File "..\src\openimagelib\plugins\exr\Multi-threaded Release DLL\openimagelib_exr-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\gdi+\gdi_plugin.opl" + File "..\src\openimagelib\plugins\gdi+\Multi-threaded Release DLL\openimagelib_gdi-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\hdr\hdr_plugin.opl" + File "..\src\openimagelib\plugins\hdr\Multi-threaded Release DLL\openimagelib_hdr-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\jpg\jpg_plugin.opl" + File "..\src\openimagelib\plugins\jpg\Multi-threaded Release DLL\openimagelib_jpg-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\sgi\sgi_plugin.opl" + File "..\src\openimagelib\plugins\sgi\Multi-threaded Release DLL\openimagelib_sgi-vc80-r-${VERSION}.dll" + File "..\src\openimagelib\plugins\tga\tga_plugin.opl" + File "..\src\openimagelib\plugins\tga\Multi-threaded Release DLL\openimagelib_tga-vc80-r-${VERSION}.dll" + File "..\src\openmedialib\plugins\oil\oil_plugin.opl" + File "..\src\openmedialib\plugins\oil\Multi-threaded Release DLL\openmedialib_oil-vc80-r-${VERSION}.dll" + File "..\src\openmedialib\plugins\gensys\gensys_plugin.opl" + File "..\src\openmedialib\plugins\gensys\Multi-threaded Release DLL\openmedialib_gensys-vc80-r-${VERSION}.dll" + File "..\src\openmedialib\plugins\quicktime\quicktime_plugin.opl" + File "..\src\openmedialib\plugins\quicktime\Multi-threaded Release DLL\openmedialib_quicktime-vc80-r-${VERSION}.dll" + File "..\src\openmedialib\plugins\ofx\ofx_plugin.opl" + File "..\src\openmedialib\plugins\ofx\Multi-threaded Release DLL\openmedialib_ofx-vc80-r-${VERSION}.dll" + ;File "..\src\openobjectlib\plugins\3ds\3ds_plugin.opl" + ;File "..\src\openobjectlib\plugins\3ds\Multi-threaded Release DLL\openobjectlib_3ds-vc80-r-${VERSION}.dll" + File "..\src\openobjectlib\plugins\obj\obj_plugin.opl" + File "..\src\openobjectlib\plugins\obj\Multi-threaded Release DLL\openobjectlib_obj-vc80-r-${VERSION}.dll" + File "..\src\openobjectlib\plugins\X3D\x3d_plugin.opl" + File "..\src\openobjectlib\plugins\X3D\Multi-threaded Release DLL\openobjectlib_x3d-vc80-r-${VERSION}.dll" + File "..\src\openassetlib\plugins\sqlite\sqlite3_metadata_plugin.opl" + File "..\src\openassetlib\plugins\sqlite\Multi-threaded Release DLL\openassetlib_sqlite-vc80-r-${VERSION}.dll" + File "..\src\openeffectslib\plugins\tonemap\tonemap_plugin.opl" + File "..\src\openeffectslib\plugins\tonemap\Multi-threaded Release DLL\openeffectslib_tonemap-vc80-r-${VERSION}.dll" + + SetOutPath $INSTDIR\shaders + File "..\effects\shaders\sepia.cg" + File "..\effects\shaders\sepia.frag" + File "..\effects\shaders\fixed_function.vert" + File "..\effects\shaders\passthrough.vert" + File "..\effects\shaders\passthrough.cg" + File "..\effects\shaders\rgb_to_yuv444.frag" + File "..\effects\shaders\yuv444_to_rgb.frag" + File "..\effects\shaders\yuv444_to_rgb.cg" + File "..\effects\shaders\yuv444_to_rgb_deinterlace.cg" + File "..\effects\shaders\yuv444_to_rgb_deinterlace.frag" + File "..\effects\shaders\histogram.cg" + File "..\effects\shaders\histogram.frag" + File "..\effects\shaders\channel_selector.cg" + File "..\effects\shaders\channel_selector.frag" + + SetDetailsPrint both + +;-------------------------------- +;Path environment variable + + Push "$INSTDIR\bin" + Call AddToPath + Push "$INSTDIR\bin\Release" + Call AddToPath +;-------------------------------- +;Python environment variable + Push "PYTHONPATH" + Push "$INSTDIR\python" + Call WriteEnvStr + +;-------------------------------- +;Registry + +WriteRegStr HKLM "Software\OpenLibraries" "CurrentVersion" "${VERSION_DOT}" +WriteRegStr HKLM "Software\OpenLibraries" "PluginsDirRelease" "$INSTDIR\plugins\release" +WriteRegStr HKLM "Software\OpenLibraries" "KernelsDir" "$INSTDIR\kernels" +WriteRegStr HKLM "Software\OpenLibraries" "ShadersDir" "$INSTDIR\shaders" + +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "DisplayName" "OpenLibraries" +WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "UninstallString" "$INSTDIR\uninst-openlibraries.exe" + +SectionEnd + +Section -post + + WriteUninstaller $INSTDIR\uninst-openlibraries.exe + +SectionEnd + +;-------------------------------- +;Descriptions + +!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN + !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "OpenLibraries development and runtime files" +!insertmacro MUI_FUNCTION_DESCRIPTION_END + +;-------------------------------- +;Uninstaller Section + +Section Uninstall + + SetDetailsPrint textonly + DetailPrint "Deleting Files..." + SetDetailsPrint listonly + + DeleteRegKey HKLM "Software\OpenLibraries" + DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" + + Push "$INSTDIR\bin" + Call un.RemoveFromPath + + Push "$INSTDIR\bin\Release" + Call un.RemoveFromPath + + Push "PYTHONPATH" + Call un.DeleteEnvStr + + RMDir /r $INSTDIR\bin + RMDir /r $INSTDIR\include + RMDir /r $INSTDIR\lib + RMDir /r $INSTDIR\plugins + RMDir /r $INSTDIR\kernels + RMDir /r $INSTDIR\shaders + RMDir /r $INSTDIR + + SetDetailsPrint both + + SectionEnd + + Function .onInit + + ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "UninstallString" + StrCmp $R0 "" done + + MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \ + "OpenLibraries is already installed. $\n$\nClick `OK` to remove the \ + previous version or `Cancel` to cancel this upgrade." \ + IDOK uninst + Abort + +;Run the uninstaller +uninst: + ClearErrors + ; Copy the uninstaller to a temp location + ;GetTempFileName $0 + ;CopyFiles $R0 $0 + ;Start the uninstaller using the option to not copy itself + ExecWait '$R0 _?=$INSTDIR' + + IfErrors no_remove_uninstaller + ; In most cases the uninstall is successful at this point. + ; You may also consider using a registry key to check whether + ; the user has chosen to uninstall. If you are using an uninstaller + ; components page, make sure all sections are uninstalled. + goto done + no_remove_uninstaller: + MessageBox MB_ICONEXCLAMATION \ + "Unable to remove previous version of OpenLibraries" + Abort + +done: + ; remove the copied uninstaller + ;Delete '$0' + +FunctionEnd Deleted: trunk/lib/openlibraries/installer/openlibraries_runtime.nsi =================================================================== --- trunk/lib/openlibraries/installer/openlibraries_runtime.nsi 2008-01-27 15:57:52 UTC (rev 406) +++ trunk/lib/openlibraries/installer/openlibraries_runtime.nsi 2008-02-06 22:55:42 UTC (rev 407) @@ -1,274 +0,0 @@ -;-------------------------------- -;NSIS OpenLibraries Installation Script -;-------------------------------- - -!ifndef VERSION - !define VERSION 0_5_0 - !define VERSION_DOT 0.5.0 -!endif - -;-------------------------------- -;Configuration - -!ifdef OUTFILE - OutFile "${OUTFILE}" -!else - OutFile openlibraries-${VERSION_DOT}-runtime.exe -!endif - -SetCompressor /SOLID lzma - -InstType "Full" - -InstallDir $PROGRAMFILES\OpenLibraries -InstallDirRegKey HKLM Software\OpenLibraries "" - -;-------------------------------- -;Header Files - -!define ALL_USERS - -!include "MUI.nsh" -!include "Sections.nsh" -!include "add_to_path.nsh" -!include "write_env_str.nsh" - -;Names -Name "OpenLibraries" -Caption "OpenLibraries (v.${VERSION_DOT}) Setup" - -;Interface Settings -!define MUI_ABORTWARNING - -!define MUI_HEADERIMAGE -!define MUI_HEADERIMAGE_BITMAP "openlibraries.bmp" ; optional -!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\orange.bmp" - -!define MUI_COMPONENTSPAGE_SMALLDESC - -;Pages -!define MUI_WELCOMEPAGE_TITLE "Welcome to the OpenLibraries (v.${VERSION_DOT}) Setup Wizard" -!define MUI_WELCOMEPAGE_TEXT "This wizard will guide you through the installation of OpenLibraries.\r\n\r\n$_CLICK" - -!insertmacro MUI_PAGE_WELCOME -!insertmacro MUI_PAGE_LICENSE "..\COPYING" -!insertmacro MUI_PAGE_COMPONENTS -!insertmacro MUI_PAGE_DIRECTORY -!insertmacro MUI_PAGE_INSTFILES - -!define MUI_FINISHPAGE_LINK "Visit the web site for the latest news, FAQs and support" -!define MUI_FINISHPAGE_LINK_LOCATION "http://www.openlibraries.org/" - -!insertmacro MUI_PAGE_FINISH - -!insertmacro MUI_UNPAGE_CONFIRM -!insertmacro MUI_UNPAGE_INSTFILES - -;-------------------------------- -;Languages - -!insertmacro MUI_LANGUAGE "English" - -Section "OpenLibraries" SecCore - - SetDetailsPrint textonly - DetailPrint "Installing OpenLibraries..." - SetDetailsPrint listonly - - SectionIn 1 2 3 RO - SetOutPath $INSTDIR - - SetOverwrite on - - SetOutPath $INSTDIR\bin - File "..\src\openpluginlib\pl\Multi-threaded Release DLL\openpluginlib_pl-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\il\Multi-threaded Release DLL\openimagelib_il-vc80-r-${VERSION}.dll" - File "..\src\openmedialib\ml\Multi-threaded Release DLL\openmedialib_ml-vc80-r-${VERSION}.dll" - File "..\src\openobjectlib\sg\Multi-threaded Release DLL\openobjectlib_sg-vc80-r-${VERSION}.dll" - File "..\src\openassetlib\al\Multi-threaded Release DLL\openassetlib_al-vc80-r-${VERSION}.dll" - - ; dependencies - File "C:\Program Files\FFmpeg\lib\avcodec-51.dll" - File "C:\Program Files\FFmpeg\lib\avformat-51.dll" - File "C:\Program Files\FFmpeg\lib\avutil-49.dll" - File "C:\OpenEXR\bin\Release\Half.dll" - File "C:\OpenEXR\bin\Release\Iex.dll" - File "C:\OpenEXR\bin\Release\IlmImf.dll" - File "C:\OpenEXR\bin\Release\Half.dll" - File "C:\OpenEXR\bin\Release\IlmThread.dll" - File "C:\OpenEXR\bin\Release\Imath.dll" - File "C:\Program Files\NVIDIA Corporation\Cg\bin\cg.dll" - File "C:\Program Files\NVIDIA Corporation\Cg\bin\cgGL.dll" - File "C:\zlib\lib\zlib1.dll" - - ; Python - SetOutPath $INSTDIR\python - File "..\src\openpluginlib\py\Multi-threaded Release DLL\HDRFlowPlugin.pyd" - File "..\src\openimagelib\py\Multi-threaded Release DLL\HDRFlowImage.pyd" - File "..\src\openmedialib\py\Multi-threaded Release DLL\HDRFlowMedia.pyd" - File "..\src\openassetlib\py\Multi-threaded Release DLL\HDRFlowAsset.pyd" - - SetOutPath $INSTDIR\plugins\release - File "..\src\openimagelib\plugins\3D_lightmap\3D_lightmap_plugin.opl" - File "..\src\openimagelib\plugins\3D_lightmap\Multi-threaded Release DLL\openimagelib_3D_lightmap-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\dds\dds_plugin.opl" - File "..\src\openimagelib\plugins\dds\Multi-threaded Release DLL\openimagelib_dds-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\dpx\dpx_plugin.opl" - File "..\src\openimagelib\plugins\dpx\Multi-threaded Release DLL\openimagelib_dpx-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\exr\exr_plugin.opl" - File "..\src\openimagelib\plugins\exr\Multi-threaded Release DLL\openimagelib_exr-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\gdi+\gdi_plugin.opl" - File "..\src\openimagelib\plugins\gdi+\Multi-threaded Release DLL\openimagelib_gdi-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\hdr\hdr_plugin.opl" - File "..\src\openimagelib\plugins\hdr\Multi-threaded Release DLL\openimagelib_hdr-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\jpg\jpg_plugin.opl" - File "..\src\openimagelib\plugins\jpg\Multi-threaded Release DLL\openimagelib_jpg-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\sgi\sgi_plugin.opl" - File "..\src\openimagelib\plugins\sgi\Multi-threaded Release DLL\openimagelib_sgi-vc80-r-${VERSION}.dll" - File "..\src\openimagelib\plugins\tga\tga_plugin.opl" - File "..\src\openimagelib\plugins\tga\Multi-threaded Release DLL\openimagelib_tga-vc80-r-${VERSION}.dll" - File "..\src\openmedialib\plugins\oil\oil_plugin.opl" - File "..\src\openmedialib\plugins\oil\Multi-threaded Release DLL\openmedialib_oil-vc80-r-${VERSION}.dll" - File "..\src\openmedialib\plugins\gensys\gensys_plugin.opl" - File "..\src\openmedialib\plugins\gensys\Multi-threaded Release DLL\openmedialib_gensys-vc80-r-${VERSION}.dll" - File "..\src\openmedialib\plugins\quicktime\quicktime_plugin.opl" - File "..\src\openmedialib\plugins\quicktime\Multi-threaded Release DLL\openmedialib_quicktime-vc80-r-${VERSION}.dll" - File "..\src\openmedialib\plugins\ofx\ofx_plugin.opl" - File "..\src\openmedialib\plugins\ofx\Multi-threaded Release DLL\openmedialib_ofx-vc80-r-${VERSION}.dll" - ;File "..\src\openobjectlib\plugins\3ds\3ds_plugin.opl" - ;File "..\src\openobjectlib\plugins\3ds\Multi-threaded Release DLL\openobjectlib_3ds-vc80-r-${VERSION}.dll" - File "..\src\openobjectlib\plugins\obj\obj_plugin.opl" - File "..\src\openobjectlib\plugins\obj\Multi-threaded Release DLL\openobjectlib_obj-vc80-r-${VERSION}.dll" - File "..\src\openobjectlib\plugins\X3D\x3d_plugin.opl" - File "..\src\openobjectlib\plugins\X3D\Multi-threaded Release DLL\openobjectlib_x3d-vc80-r-${VERSION}.dll" - File "..\src\openassetlib\plugins\sqlite\sqlite3_metadata_plugin.opl" - File "..\src\openassetlib\plugins\sqlite\Multi-threaded Release DLL\openassetlib_sqlite-vc80-r-${VERSION}.dll" - File "..\src\openeffectslib\plugins\tonemap\tonemap_plugin.opl" - File "..\src\openeffectslib\plugins\tonemap\Multi-threaded Release DLL\openeffectslib_tonemap-vc80-r-${VERSION}.dll" - - SetOutPath $INSTDIR\shaders - File "..\effects\shaders\sepia.cg" - File "..\effects\shaders\sepia.frag" - File "..\effects\shaders\fixed_function.vert" - File "..\effects\shaders\passthrough.vert" - File "..\effects\shaders\passthrough.cg" - File "..\effects\shaders\rgb_to_yuv444.frag" - File "..\effects\shaders\yuv444_to_rgb.frag" - File "..\effects\shaders\yuv444_to_rgb.cg" - File "..\effects\shaders\yuv444_to_rgb_deinterlace.cg" - File "..\effects\shaders\yuv444_to_rgb_deinterlace.frag" - File "..\effects\shaders\histogram.cg" - File "..\effects\shaders\histogram.frag" - File "..\effects\shaders\channel_selector.cg" - File "..\effects\shaders\channel_selector.frag" - - SetDetailsPrint both - -;-------------------------------- -;Path environment variable - - Push "$INSTDIR\bin" - Call AddToPath - Push "$INSTDIR\bin\Release" - Call AddToPath -;-------------------------------- -;Python environment variable - Push "PYTHONPATH" - Push "$INSTDIR\python" - Call WriteEnvStr - -;-------------------------------- -;Registry - -WriteRegStr HKLM "Software\OpenLibraries" "CurrentVersion" "${VERSION_DOT}" -WriteRegStr HKLM "Software\OpenLibraries" "PluginsDirRelease" "$INSTDIR\plugins\release" -WriteRegStr HKLM "Software\OpenLibraries" "KernelsDir" "$INSTDIR\kernels" -WriteRegStr HKLM "Software\OpenLibraries" "ShadersDir" "$INSTDIR\shaders" - -WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "DisplayName" "OpenLibraries" -WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "UninstallString" "$INSTDIR\uninst-openlibraries.exe" - -SectionEnd - -Section -post - - WriteUninstaller $INSTDIR\uninst-openlibraries.exe - -SectionEnd - -;-------------------------------- -;Descriptions - -!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN - !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "OpenLibraries development and runtime files" -!insertmacro MUI_FUNCTION_DESCRIPTION_END - -;-------------------------------- -;Uninstaller Section - -Section Uninstall - - SetDetailsPrint textonly - DetailPrint "Deleting Files..." - SetDetailsPrint listonly - - DeleteRegKey HKLM "Software\OpenLibraries" - DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" - - Push "$INSTDIR\bin" - Call un.RemoveFromPath - - Push "$INSTDIR\bin\Release" - Call un.RemoveFromPath - - Push "PYTHONPATH" - Call un.DeleteEnvStr - - RMDir /r $INSTDIR\bin - RMDir /r $INSTDIR\include - RMDir /r $INSTDIR\lib - RMDir /r $INSTDIR\plugins - RMDir /r $INSTDIR\kernels - RMDir /r $INSTDIR\shaders - RMDir /r $INSTDIR - - SetDetailsPrint both - - SectionEnd - - Function .onInit - - ReadRegStr $R0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenLibraries" "UninstallString" - StrCmp $R0 "" done - - MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION \ - "OpenLibraries is already installed. $\n$\nClick `OK` to remove the \ - previous version or `Cancel` to cancel this upgrade." \ - IDOK uninst - Abort - -;Run the uninstaller -uninst: - ClearErrors - ; Copy the uninstaller to a temp location - ;GetTempFileName $0 - ;CopyFiles $R0 $0 - ;Start the uninstaller using the option to not copy itself - ExecWait '$R0 _?=$INSTDIR' - - IfErrors no_remove_uninstaller - ; In most cases the uninstall is successful at this point. - ; You may also consider using a registry key to check whether - ; the user has chosen to uninstall. If you are using an uninstaller - ; components page, make sure all sections are uninstalled. - goto done - no_remove_uninstaller: - MessageBox MB_ICONEXCLAMATION \ - "Unable to remove previous version of OpenLibraries" - Abort - -done: - ; remove the copied uninstaller - ;Delete '$0' - -FunctionEnd This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |