2006-07-12 11:03:00 +00:00
|
|
|
/*
|
|
|
|
|
|
|
|
Uninstaller
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
;--------------------------------
|
|
|
|
;Sections
|
|
|
|
|
|
|
|
Section "un.Program Files" un.SecProgramFiles
|
|
|
|
|
|
|
|
;Binaries
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-10-21 22:53:19 +00:00
|
|
|
Delete "$INSTDIR\bin\lyx.exe"
|
|
|
|
Delete "$INSTDIR\bin\lyxc.exe"
|
2006-07-12 11:03:00 +00:00
|
|
|
!insertmacro FileListLyXBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListQtBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListMinGWBin Delete "$INSTDIR\bin\"
|
2006-09-19 23:07:00 +00:00
|
|
|
|
|
|
|
!ifdef BUILD_MSVC
|
|
|
|
!insertmacro FileListDllMSVCBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\bin\"
|
2006-09-25 21:33:12 +00:00
|
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\bin\"
|
2006-09-19 23:07:00 +00:00
|
|
|
!else
|
|
|
|
!insertmacro FileListDllMinGWBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListMinGWBin Delete "$INSTDIR\bin\"
|
|
|
|
!endif
|
|
|
|
|
2006-09-25 21:33:12 +00:00
|
|
|
!insertmacro FileListNetpbmBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListDvipostBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListDTLBin Delete "$INSTDIR\bin\"
|
2006-10-25 20:58:23 +00:00
|
|
|
!insertmacro FileListPDFToolsBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListPDFViewBin Delete "$INSTDIR\bin\"
|
2006-07-12 11:03:00 +00:00
|
|
|
|
|
|
|
;Icons
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
!insertmacro FileListLyXIcons Delete "$INSTDIR\bin\"
|
|
|
|
|
|
|
|
;Resources
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
RMDir /r "$INSTDIR\Resources"
|
|
|
|
|
|
|
|
;Components of Python
|
2006-09-19 23:07:00 +00:00
|
|
|
|
|
|
|
RMDir /r "$INSTDIR\python"
|
2006-07-12 11:03:00 +00:00
|
|
|
|
|
|
|
;Aiksaurus Data
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
!insertmacro FileListAiksaurusData Delete "$INSTDIR\aiksaurus\"
|
|
|
|
RMDir "$INSTDIR\aiksaurus"
|
|
|
|
|
2006-10-21 22:53:19 +00:00
|
|
|
;Helper DLLs for NSIS-based tools
|
2006-11-06 21:48:00 +00:00
|
|
|
|
|
|
|
!insertmacro FileListNSISPluginsStandard Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListNSISPlugins Delete "$INSTDIR\bin\"
|
2006-10-21 22:53:19 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
;Shortcuts
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
Delete "$SMPROGRAMS\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
|
|
|
Delete "$DESKTOP\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
|
|
|
|
2006-10-21 22:53:19 +00:00
|
|
|
;Uninstaller itself
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
Delete "$INSTDIR\${SETUP_UNINSTALLER}"
|
|
|
|
RMDir "$INSTDIR\bin"
|
|
|
|
|
2006-10-21 22:53:19 +00:00
|
|
|
;Application folder
|
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
SetOutPath "$PROGRAMFILES"
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
2006-10-21 22:53:19 +00:00
|
|
|
;Registry keys
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
DeleteRegKey SHELL_CONTEXT "${APP_REGKEY_SETUP}"
|
|
|
|
DeleteRegKey SHELL_CONTEXT "${APP_REGKEY}"
|
|
|
|
DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_REGNAME_DOC}"
|
|
|
|
DeleteRegKey SHELL_CONTEXT "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
|
|
|
|
|
2006-10-21 22:53:19 +00:00
|
|
|
;File associations
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
ReadRegStr $R0 SHELL_CONTEXT "Software\Classes\${APP_EXT}" ""
|
|
|
|
|
|
|
|
${if} $R0 == "${APP_REGNAME_DOC}"
|
|
|
|
DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_EXT}"
|
|
|
|
${endif}
|
|
|
|
|
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section "un.User Preferences and Custom Files" un.SecUserFiles
|
|
|
|
|
|
|
|
SetShellVarContext current
|
|
|
|
RMDir /r "$APPDATA\${APP_DIR_USERDATA}"
|
|
|
|
|
|
|
|
SectionEnd
|