;NSIS Modern User Interface version 1.70 ;XMLEditor Installer Script ;Written by Veerasekar ;-------------------------------- ;Include Modern UI !include "MUI.nsh" ;-------------------------------- ;General ;Name and file Name "XMLVision" OutFile "xmleditor.exe" ;Default installation folder InstallDir "$PROGRAMFILES\Climb\XMLVision" ;Get installation folder from registry if available InstallDirRegKey HKCU "Software\xmleditor" "" ;-------------------------------- ;Interface Settings !define MUI_ABORTWARNING !define MUI_HEADERIMAGE "C:\Documents and Settings\Veerasekar\workspace\XMLVision\installer\SAWORD.BMP" !define MUI_HEADERIMAGE_BITMAP_NOSTRETCH !define MUI_HEADERIMAGE_BITMAP "C:\Documents and Settings\Veerasekar\workspace\XMLVision\installer\SAWORD.BMP" !define MUI_ICON "C:\Documents and Settings\Veerasekar\workspace\XMLVision\installer\xmleditor.ico" !define MUI_UNICON "C:\Documents and Settings\Veerasekar\workspace\XMLVision\installer\xmleditor.ico" ;-------------------------------- ;Pages !insertmacro MUI_PAGE_LICENSE "C:\Documents and Settings\Veerasekar\workspace\XMLVision\License.txt" !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_UNPAGE_CONFIRM !insertmacro MUI_UNPAGE_INSTFILES ;-------------------------------- ;Languages !insertmacro MUI_LANGUAGE "English" ;-------------------------------- ;Installer Sections Section "XMLEditor (required)" SecDummy SectionIn RO ;Files to be installed SetOutPath "$INSTDIR" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\XMLVision.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\installer\xmleditor.ico" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\swt-win32-3138.dll" SetOutPath "$INSTDIR\lib" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\org.eclipse.swt.win32.win32.x86_3.1.0.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\avalon-configuration.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\commons-lang-exception-2.0.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\isorelax.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\jaxen-core.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\jaxen-dom.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\log4j-core.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\msv-20031002.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\relaxngDatatype.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\saxpath.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\xpp3-1.1.3.4-RC3_min.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\xsdlib.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\dom3-xercesImpl.jar" File "C:\Documents and Settings\Veerasekar\workspace\XMLVision\lib\dom3-xmlParserAPIs.jar" SetOutPath "$INSTDIR" ; Write the installation path into the registry WriteRegStr HKLM SOFTWARE\xmleditor "Install_Dir" "$INSTDIR" ; Write the uninstall keys for Windows WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xmleditor" "DisplayName" "XMLVision" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xmleditor" "UninstallString" '"$INSTDIR\uninstall.exe"' WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xmleditor" "NoModify" 1 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xmleditor" "NoRepair" 1 WriteUninstaller "uninstall.exe" SectionEnd ; Optional section (can be disabled by the user) Section "Start Menu Shortcuts" CreateDirectory "$SMPROGRAMS\XMLVision" CreateShortCut "$SMPROGRAMS\XMLVision\XMLVision.lnk" "$INSTDIR\XMLVision.jar" "" "$INSTDIR\xmleditor.ico" CreateShortCut "$SMPROGRAMS\XMLVision\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" SectionEnd ;-------------------------------- ;Uninstaller Section Section "Uninstall" ; Remove registry keys DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\xmleditor" DeleteRegKey HKLM SOFTWARE\xmleditor DeleteRegKey /ifempty HKCU "Software\xmleditor" ; Remove shortcuts RMDir /r "$SMPROGRAMS\XMLVision" ; Remove directories used RMDir /r "$INSTDIR" SectionEnd