diff options
Diffstat (limited to 'util/scripts/win-binary/nsis/modules/eclipse.nsh')
-rw-r--r-- | util/scripts/win-binary/nsis/modules/eclipse.nsh | 398 |
1 files changed, 398 insertions, 0 deletions
diff --git a/util/scripts/win-binary/nsis/modules/eclipse.nsh b/util/scripts/win-binary/nsis/modules/eclipse.nsh new file mode 100644 index 0000000..8a826ab --- /dev/null +++ b/util/scripts/win-binary/nsis/modules/eclipse.nsh @@ -0,0 +1,398 @@ +!ifdef MODULE_ECLIPSE + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_INITIALIZE + +!define ECLIPSE_LOCATION_KEY "EclipseLocation" +var ECLIPSE_LOCATION +var ECLIPSE_MINGW_LOCATION + +!ifndef MODULE_ECLIPSE_INSTALLER + !define MODULE_ECLIPSE_INSTALLER "${PRODUCT_NAME} v${PRODUCT_VERSION}" +!endif +!ifndef MODULE_ECLIPSE_ROOT + !define MODULE_ECLIPSE_ROOT "${INSTALL_ROOT}\eclipse" +!endif +!ifndef MODULE_ECLIPSE_VERSION + !define MODULE_ECLIPSE_VERSION ${PRODUCT_VERSION} +!endif + +!define MODULE_ECLIPSE_QT_PREFIX "qtcpp" + +!define MODULE_ECLIPSE_QT_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}_${MODULE_ECLIPSE_VERSION}" + +!define MODULE_ECLIPSE_QTFEATURE_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}.feature_${MODULE_ECLIPSE_VERSION}" + +!define MODULE_ECLIPSE_QTPROJECT_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}project_${MODULE_ECLIPSE_VERSION}" +!define MODULE_ECLIPSE_QTPROJECT_LABEL "Qt Project Integration" +!define MODULE_ECLIPSE_QTPROJECT_INSTALLEDKEY "EclipseQtProjectInstalled" +!define MODULE_ECLIPSE_QTPROJECT_WIN32X86_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}project.win32.x86_${MODULE_ECLIPSE_VERSION}" + +!define MODULE_ECLIPSE_QTDESIGNER_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}designer_${MODULE_ECLIPSE_VERSION}" +!define MODULE_ECLIPSE_QTDESIGNER_LABEL "Qt Designer Integration" +!define MODULE_ECLIPSE_QTDESIGNER_INSTALLEDKEY "EclipseQtDesignerInstalled" +!define MODULE_ECLIPSE_QTDESIGNER_WIN32X86_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}designer.win32.x86_${MODULE_ECLIPSE_VERSION}" +!define MODULE_ECLIPSE_QTDESIGNER_QT_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}designer.${MODULE_ECLIPSE_QT_PREFIX}_${MODULE_ECLIPSE_VERSION}" +!define MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}designerplugins.win32.x86_${MODULE_ECLIPSE_VERSION}" + +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_ID "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}integrationhelp_${MODULE_ECLIPSE_VERSION}" +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_LABEL "Qt Integration Help" +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_INSTALLEDKEY "EclipseQtIntegrationHelpInstalled" +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESSUBFOLDER "com.trolltech.${MODULE_ECLIPSE_QT_PREFIX}integrationhelp.examples_${MODULE_ECLIPSE_VERSION}" +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESSOURCE "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESSUBFOLDER}" +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESTARGET "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESSUBFOLDER}" +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE "${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESSOURCE}\AddressBook" +!define MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET "${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESTARGET}\AddressBook" + +!define MODULE_ECLIPSE_MSRT_VERSION "71" + +LangString ModuleEclipsePageTitle ${LANG_ENGLISH} "Eclipse Installation Location" +LangString ModuleEclipsePageDescription ${LANG_ENGLISH} "Select where eclipse is installed, and where MinGW is located." + +!define MODULE_ECLIPSE_PAGE "eclipse.ini" +Page custom ModuleEclipsePageEnter ModuleEclipsePageExit + +!include "includes\regsvr.nsh" + +!macroend ;ECLIPSE_INITIALIZE + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_SECTIONS + +Section -PreEclipseSection + WriteRegStr SHCTX "$PRODUCT_UNIQUE_KEY" "${ECLIPSE_LOCATION_KEY}" $ECLIPSE_LOCATION +SectionEnd + +SectionGroup "Eclipse Integration" + +Section "${MODULE_ECLIPSE_QTPROJECT_LABEL}" ECLIPSE_SEC01 + WriteRegDWORD SHCTX "$PRODUCT_UNIQUE_KEY" "${MODULE_ECLIPSE_QTPROJECT_INSTALLEDKEY}" 1 + SetOutPath "$ECLIPSE_LOCATION\plugins\" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QT_ID}.jar" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTPROJECT_ID}.jar" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTPROJECT_WIN32X86_ID}.jar" + + SetOutPath "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTFEATURE_ID}\corporate.gif" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTFEATURE_ID}\feature.xml" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTFEATURE_ID}\license.html" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-0.9.5" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-1.0.0" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-1.0.1" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-1.4.0" + + Call InstallQtModules + + SetOutPath "$ECLIPSE_INSTDIR" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\bin\${MODULE_ECLIPSE_QT_PREFIX}proparser.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\${MODULE_ECLIPSE_QT_PREFIX}qrceditor.dll" + + push "$ECLIPSE_INSTDIR\${MODULE_ECLIPSE_QT_PREFIX}proparser.dll" + call RegEclipseSvr + + push "$ECLIPSE_INSTDIR\${MODULE_ECLIPSE_QT_PREFIX}qrceditor.dll" + call RegEclipseSvr + + IfFileExists "$ECLIPSE_MINGW_LOCATION\gcc.exe" 0 done + Call MakeEclipseStartFile + !insertmacro CreateConditionalShortCut "$SMPROGRAMS\$STARTMENU_STRING\License.lnk" "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\license.html" + !insertmacro CreateConditionalShortCutWithParameters "$SMPROGRAMS\$STARTMENU_STRING\Start Eclipse with MinGW.lnk" "%COMSPEC%" "/c $\"$ECLIPSE_INSTDIR\start.bat$\"" + + done: +SectionEnd + +Section "${MODULE_ECLIPSE_QTDESIGNER_LABEL}" ECLIPSE_SEC02 + WriteRegDWORD SHCTX "$PRODUCT_UNIQUE_KEY" "${MODULE_ECLIPSE_QTDESIGNER_INSTALLEDKEY}" 1 + SetOutPath "$ECLIPSE_LOCATION\plugins\" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNER_ID}.jar" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNER_WIN32X86_ID}.jar" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNER_QT_ID}.jar" + + SetOutPath "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\qt3supportwidgets.dll" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\Qt3Support4.dll" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\QtSql4.dll" + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\QtNetwork4.dll" + SetOutPath "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\META-INF\" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\META-INF\MANIFEST.MF" + + Call InstallQtModules + + SetOutPath "$ECLIPSE_INSTDIR" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\bin\QtDesigner4.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\QtScript4.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\QtDesignerComponents4.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\${MODULE_ECLIPSE_QT_PREFIX}designer.dll" + + push "$ECLIPSE_INSTDIR\${MODULE_ECLIPSE_QT_PREFIX}designer.dll" + call RegEclipseSvr +SectionEnd + +Section "${MODULE_ECLIPSE_QTINTEGRATIONHELP_LABEL}" ECLIPSE_SEC03 + WriteRegDWORD SHCTX "$PRODUCT_UNIQUE_KEY" "${MODULE_ECLIPSE_QTINTEGRATIONHELP_INSTALLEDKEY}" 1 + SetOutPath "$ECLIPSE_LOCATION\plugins\" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\plugins\${MODULE_ECLIPSE_QTINTEGRATIONHELP_ID}.jar" + SetOutPath "${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESTARGET}\META-INF" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESSOURCE}\META-INF\MANIFEST.MF" + SetOutPath "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\adddialog.cpp" + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\adddialog.h" + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\adddialog.ui" + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\addressbook.cpp" + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\addressbook.h" + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\AddressBook.pro" + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\addressbook.ui" + File "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKSOURCE}\main.cpp" +SectionEnd + +SectionGroupEnd + +; usage: +; push dll to register +; call RegEclipseSvr +Function RegEclipseSvr + exch $0 ;filename + + ClearErrors + push $0 + call RegSvr + IfErrors 0 +2 + MessageBox MB_OK|MB_ICONEXCLAMATION 'Could not register "$0"' + + pop $0 +FunctionEnd + +# +# creates a start.bat file with mingw in the path +# +Function MakeEclipseStartFile + push $0 ; file handle + + ClearErrors + FileOpen $0 "$ECLIPSE_INSTDIR\start.bat" w + IfErrors done + + FileWrite $0 "@echo off$\r$\n" + FileWrite $0 "rem$\r$\n" + FileWrite $0 "rem This file is generated by the installer$\r$\n" + FileWrite $0 "rem$\r$\n" + FileWrite $0 "$\r$\n" + FileWrite $0 "echo Setting up environment...$\r$\n" + FileWrite $0 "echo -- Using MinGW in: $ECLIPSE_MINGW_LOCATION $\r$\n" + FileWrite $0 "$\r$\n" + FileWrite $0 "set PATH=$ECLIPSE_MINGW_LOCATION$\r$\n" + FileWrite $0 "set PATH=%PATH%;%SystemRoot%\System32$\r$\n" + FileWrite $0 "$\r$\n" + FileWrite $0 "echo Starting eclipse...$\r$\n" + FileWrite $0 'call "$ECLIPSE_LOCATION\eclipse.exe" -clean' + FileWrite $0 "$\r$\n" + FileClose $0 + + done: + pop $0 +FunctionEnd + +Function InstallQtModules + SetOutPath "$ECLIPSE_INSTDIR" + SetOverwrite ifnewer + File "${MODULE_ECLIPSE_ROOT}\bin\msvcp${MODULE_ECLIPSE_MSRT_VERSION}.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\msvcr${MODULE_ECLIPSE_MSRT_VERSION}.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\QtCore4.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\QtGui4.dll" + File "${MODULE_ECLIPSE_ROOT}\bin\QtXml4.dll" +FunctionEnd + +Function ModuleEclipsePageEnter + !insertmacro MUI_HEADER_TEXT "$(ModuleEclipsePageTitle)" "$(ModuleEclipsePageDescription)" + !insertmacro MUI_INSTALLOPTIONS_DISPLAY "${MODULE_ECLIPSE_PAGE}" +FunctionEnd + +Function ModuleEclipsePageExit + push $0 + push $1 + + !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_ECLIPSE_PAGE}" "Field 5" "State" + IfFileExists "$0\eclipse.exe" eclipse_found + MessageBox MB_OK|MB_ICONSTOP "$0\eclipse.exe not found!$\nPlease select a valid installation directory." + Goto failed + eclipse_found: + + ClearErrors + FileOpen $1 "$0\plugins\com.trolltech.writetest" a + IfErrors 0 has_write_access + MessageBox MB_OK|MB_ICONSTOP "Can't write to $0\plugins.$\nPlease select a valid installation directory." + Goto failed + has_write_access: + + FileClose $1 + Delete "$0\plugins\com.trolltech.writetest" + StrCpy $ECLIPSE_LOCATION $0 + !insertmacro MUI_INSTALLOPTIONS_READ $0 "${MODULE_ECLIPSE_PAGE}" "Field 3" "State" + StrCpy $ECLIPSE_MINGW_LOCATION $0 + IfFileExists "$ECLIPSE_MINGW_LOCATION\g++.exe" done + MessageBox MB_YESNO|MB_ICONSTOP "g++ not found in $ECLIPSE_MINGW_LOCATION . Continue with installation?" IDYES done IDNO failed + + failed: + pop $1 + pop $0 + Abort + + done: + pop $1 + pop $0 +FunctionEnd + +!macroend ;ECLIPSE_SECTIONS + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_DESCRIPTION +!ifdef ECLIPSE_SEC01 + !insertmacro MUI_DESCRIPTION_TEXT ${ECLIPSE_SEC01} "This installs the ${MODULE_ECLIPSE_QTPROJECT_LABEL} into Eclipse." +!endif +!ifdef ECLIPSE_SEC02 + !insertmacro MUI_DESCRIPTION_TEXT ${ECLIPSE_SEC02} "This installs the ${MODULE_ECLIPSE_QTDESIGNER_LABEL} into Eclipse." +!endif +!ifdef ECLIPSE_SEC03 + !insertmacro MUI_DESCRIPTION_TEXT ${ECLIPSE_SEC03} "This installs the ${MODULE_ECLIPSE_QTINTEGRATIONHELP_LABEL} into Eclipse." +!endif +!macroend + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_STARTUP + !insertmacro MUI_INSTALLOPTIONS_EXTRACT "${MODULE_ECLIPSE_PAGE}" + SectionSetFlags ${ECLIPSE_SEC01} 17 + SectionSetFlags ${ECLIPSE_SEC02} 1 + SectionSetFlags ${ECLIPSE_SEC03} 1 + + strcpy $ECLIPSE_INSTDIR "$PROGRAMFILES\Trolltech\Eclipse" +!macroend ;ECLIPSE_STATUP + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_FINISH +!macroend + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_UNSTARTUP + ReadRegStr $ECLIPSE_LOCATION SHCTX "$PRODUCT_UNIQUE_KEY" "${ECLIPSE_LOCATION_KEY}" + !insertmacro ConfirmOnRemove "${MODULE_ECLIPSE_QTPROJECT_INSTALLEDKEY}" "${MODULE_ECLIPSE_QTPROJECT_LABEL}" + !insertmacro ConfirmOnRemove "${MODULE_ECLIPSE_QTDESIGNER_INSTALLEDKEY}" "${MODULE_ECLIPSE_QTDESIGNER_LABEL}" + !insertmacro ConfirmOnRemove "${MODULE_ECLIPSE_QTINTEGRATIONHELP_INSTALLEDKEY}" "${MODULE_ECLIPSE_QTINTEGRATIONHELP_LABEL}" +!macroend + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_UNINSTALL +Section un."Eclipse Integration" + push $0 + + ReadRegDWORD $0 SHCTX "$PRODUCT_UNIQUE_KEY" "${MODULE_ECLIPSE_QTPROJECT_INSTALLEDKEY}" + intcmp $0 1 0 DoneUnInstallQtProject + push "$ECLIPSE_INSTDIR\qtproparser.dll" + call un.RegSvr + push "$ECLIPSE_INSTDIR\qtqrceditor.dll" + call un.RegSvr + + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QT_ID}.jar" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTPROJECT_ID}.jar" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTPROJECT_WIN32X86_ID}.jar" + + Delete "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\corporate.gif" + Delete "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\feature.xml" + Delete "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\license.html" + Delete "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-0.9.5" + Delete "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-1.0.0" + Delete "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-1.0.1" + Delete "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}\Changes-1.4.0" + RMDir "$ECLIPSE_LOCATION\features\${MODULE_ECLIPSE_QTFEATURE_ID}" + + Delete "$ECLIPSE_INSTDIR\${MODULE_ECLIPSE_QT_PREFIX}proparser.dll" + Delete "$ECLIPSE_INSTDIR\${MODULE_ECLIPSE_QT_PREFIX}qrceditor.dll" + Delete "$SMPROGRAMS\$STARTMENU_STRING\License.lnk" + Delete "$SMPROGRAMS\$STARTMENU_STRING\Start Eclipse with MinGW.lnk" + Delete "$ECLIPSE_INSTDIR\start.bat" + DoneUnInstallQtProject: + + ReadRegDWORD $0 SHCTX "$PRODUCT_UNIQUE_KEY" ${MODULE_ECLIPSE_QTDESIGNER_INSTALLEDKEY} + intcmp $0 1 0 DoneUnInstallQtDesigner + push "$ECLIPSE_INSTDIR\${MODULE_ECLIPSE_QT_PREFIX}designer.dll" + call un.RegSvr + + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNER_ID}.jar" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNER_WIN32X86_ID}.jar" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNER_QT_ID}.jar" + Delete "$ECLIPSE_INSTDIR\QtDesigner4.dll" + Delete "$ECLIPSE_INSTDIR\QtScript4.dll" + Delete "$ECLIPSE_INSTDIR\QtDesignerComponents4.dll" + Delete "$ECLIPSE_INSTDIR\${MODULE_ECLIPSE_QT_PREFIX}designer.dll" + + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\META-INF\MANIFEST.MF" + RMDir "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\META-INF" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\qt3supportwidgets.dll" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\Qt3Support4.dll" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\QtSql4.dll" + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}\QtNetwork4.dll" + RMDir "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTDESIGNERPLUGINS_ID}" + + DoneUnInstallQtDesigner: + + ReadRegDWORD $0 SHCTX "$PRODUCT_UNIQUE_KEY" "${MODULE_ECLIPSE_QTINTEGRATIONHELP_INSTALLEDKEY}" + intcmp $0 1 0 DoneUnInstallQtIntegrationHelp + Delete "$ECLIPSE_LOCATION\plugins\${MODULE_ECLIPSE_QTINTEGRATIONHELP_ID}.jar" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESTARGET}\META-INF\MANIFEST.MF" + RMDir "${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESTARGET}\META-INF" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\adddialog.cpp" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\adddialog.h" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\adddialog.ui" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\addressbook.cpp" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\addressbook.h" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\AddressBook.pro" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\addressbook.ui" + Delete "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}\main.cpp" + RMDir "${MODULE_ECLIPSE_QTINTEGRATIONHELP_ADDRESSBOOKTARGET}" + RMDir "${MODULE_ECLIPSE_QTINTEGRATIONHELP_EXAMPLESTARGET}" + DoneUnInstallQtIntegrationHelp: + + Delete "$ECLIPSE_INSTDIR\msvcp${MODULE_ECLIPSE_MSRT_VERSION}.dll" + Delete "$ECLIPSE_INSTDIR\msvcr${MODULE_ECLIPSE_MSRT_VERSION}.dll" + Delete "$ECLIPSE_INSTDIR\QtCore4.dll" + Delete "$ECLIPSE_INSTDIR\QtGui4.dll" + Delete "$ECLIPSE_INSTDIR\QtXml4.dll" + + RMDir "$ECLIPSE_INSTDIR" + + pop $0 +SectionEnd +!macroend ;ECLIPSE_UNINSTALL + +;------------------------------------------------------------------------------------------------ +!macro ECLIPSE_UNFINISH +!macroend + +!else ;MODULE_ECLIPSE +!macro ECLIPSE_INITIALIZE +!macroend +!macro ECLIPSE_SECTIONS +!macroend +!macro ECLIPSE_DESCRIPTION +!macroend +!macro ECLIPSE_STARTUP +!macroend +!macro ECLIPSE_FINISH +!macroend +!macro ECLIPSE_UNSTARTUP +!macroend +!macro ECLIPSE_UNINSTALL +!macroend +!macro ECLIPSE_UNFINISH +!macroend +!endif ;MODULE_ECLIPSE + |