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-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\"
|
|
|
|
!else
|
|
|
|
!insertmacro FileListDllMinGWBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListMinGWBin Delete "$INSTDIR\bin\"
|
|
|
|
!endif
|
2006-07-12 11:03:00 +00:00
|
|
|
|
|
|
|
;LaTeX Tools
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
!insertmacro FileListNetpbmBin Delete "$INSTDIR\latextools\"
|
|
|
|
!insertmacro FileListDvipostBin Delete "$INSTDIR\latextools\"
|
|
|
|
!insertmacro FileListDTLBin Delete "$INSTDIR\latextools\"
|
|
|
|
RMDir "$INSTDIR\latextools"
|
|
|
|
|
|
|
|
;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"
|
|
|
|
|
|
|
|
;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"
|
|
|
|
|
|
|
|
;Batch file and uninstaller itself
|
2006-09-19 23:07:00 +00:00
|
|
|
|
2006-07-12 11:03:00 +00:00
|
|
|
Delete "$INSTDIR\${APP_RUN}"
|
|
|
|
Delete "$INSTDIR\${SETUP_UNINSTALLER}"
|
|
|
|
RMDir "$INSTDIR\bin"
|
|
|
|
|
|
|
|
SetOutPath "$PROGRAMFILES"
|
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
|
|
|
;Remove 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}"
|
|
|
|
|
|
|
|
;Remove file association
|
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
|