2007-02-08 21:09:30 +00:00
|
|
|
/*
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
uninstall.nsh
|
|
|
|
|
|
|
|
Uninstall
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
*/
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
Var FileAssociation
|
2007-02-08 21:09:30 +00:00
|
|
|
|
|
|
|
Section "un.Program Files" un.SecProgramFiles
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Binaries
|
2007-02-08 21:09:30 +00:00
|
|
|
!insertmacro FileListLyXBin Delete "$INSTDIR\bin\"
|
2008-05-01 18:33:36 +00:00
|
|
|
!insertmacro FileListLyXLauncher Delete "$INSTDIR\bin\"
|
2007-02-08 21:09:30 +00:00
|
|
|
!insertmacro FileListQtBin Delete "$INSTDIR\bin\"
|
2008-05-01 18:33:36 +00:00
|
|
|
!insertmacro FileListDll Delete "$INSTDIR\bin\"
|
2007-02-08 21:09:30 +00:00
|
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListNetpbmBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListDTLBin Delete "$INSTDIR\bin\"
|
2008-05-01 18:33:36 +00:00
|
|
|
!insertmacro FileListDvipostBin Delete "$INSTDIR\bin\"
|
2007-02-08 21:09:30 +00:00
|
|
|
!insertmacro FileListPDFToolsBin Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListPDFViewBin Delete "$INSTDIR\bin\"
|
2008-05-01 18:33:36 +00:00
|
|
|
!insertmacro FileListNSISPluginsStandard Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListNSISPlugins Delete "$INSTDIR\bin\"
|
|
|
|
!insertmacro FileListMetaFile2EPS Delete "$INSTDIR\bin\"
|
|
|
|
RMDir "$INSTDIR\bin"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Resources
|
2007-02-08 21:09:30 +00:00
|
|
|
RMDir /r "$INSTDIR\Resources"
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Components of Python
|
2008-05-01 18:33:36 +00:00
|
|
|
!insertmacro FileListPythonLibEncodings Delete "$INSTDIR\python\Lib\encodings\"
|
|
|
|
Delete "$INSTDIR\python\Lib\encodings\*.pyc"
|
|
|
|
RMDir "$INSTDIR\python\Lib\encodings"
|
|
|
|
!insertmacro FileListPythonLib Delete "$INSTDIR\python\Lib\"
|
|
|
|
Delete "$INSTDIR\python\Lib\*.pyc"
|
|
|
|
RMDir "$INSTDIR\python\Lib"
|
|
|
|
!insertmacro FileListPythonBin Delete "$INSTDIR\python\"
|
|
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\python\"
|
|
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\python\"
|
|
|
|
RMDir "$INSTDIR\python"
|
|
|
|
|
|
|
|
# Components of ImageMagick
|
|
|
|
!insertmacro FileListImageMagick Delete "$INSTDIR\imagemagick\"
|
|
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\imagemagick\"
|
|
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\imagemagick\"
|
|
|
|
RMDir "$INSTDIR\imagemagick"
|
|
|
|
|
|
|
|
# Components of Ghostscript
|
|
|
|
!insertmacro FileListGhostscriptBin Delete "$INSTDIR\ghostscript\bin\"
|
|
|
|
!insertmacro FileListMSVCBin Delete "$INSTDIR\ghostscript\bin\"
|
|
|
|
!insertmacro FileListMSVCManifest Delete "$INSTDIR\ghostscript\bin\"
|
|
|
|
RMDir "$INSTDIR\ghostscript\bin"
|
|
|
|
!insertmacro FileListGhostscriptLib Delete "$INSTDIR\ghostscript\lib\"
|
|
|
|
RMDir "$INSTDIR\ghostscript\lib"
|
|
|
|
!insertmacro FileListGhostscriptFonts Delete "$INSTDIR\ghostscript\fonts\"
|
|
|
|
RMDir "$INSTDIR\ghostscript\fonts"
|
|
|
|
!insertmacro FileListGhostscriptResourceCMap Delete "$INSTDIR\ghostscript\Resource\CMap\"
|
|
|
|
RMDir "$INSTDIR\ghostscript\Resource\CMap"
|
|
|
|
!insertmacro FileListGhostscriptResourceColorSpace Delete "$INSTDIR\ghostscript\Resource\ColorSpace\"
|
|
|
|
RMDir "$INSTDIR\ghostscript\Resource\ColorSpace"
|
|
|
|
!insertmacro FileListGhostscriptResourceDecoding Delete "$INSTDIR\ghostscript\Resource\Decoding\"
|
|
|
|
RMDir "$INSTDIR\ghostscript\Resource\Decoding"
|
|
|
|
!insertmacro FileListGhostscriptResourceEncoding Delete "$INSTDIR\ghostscript\Resource\Encoding\"
|
|
|
|
RMDir "$INSTDIR\ghostscript\Resource\Encoding"
|
|
|
|
RMDir "$INSTDIR\ghostscript\Resource"
|
|
|
|
RMDir "$INSTDIR\ghostscript"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Aiksaurus Data
|
2007-02-08 21:09:30 +00:00
|
|
|
!insertmacro FileListAiksaurusData Delete "$INSTDIR\aiksaurus\"
|
|
|
|
RMDir "$INSTDIR\aiksaurus"
|
|
|
|
|
2008-04-05 19:12:37 +00:00
|
|
|
# Postscript printer for metafile to EPS converter
|
2008-05-01 18:33:36 +00:00
|
|
|
!insertmacro FileListPSPrinter Delete "$INSTDIR\PSPrinter\"
|
|
|
|
RMDir "$INSTDIR\PsPrinter"
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Shortcuts
|
2007-02-08 21:09:30 +00:00
|
|
|
Delete "$SMPROGRAMS\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
|
|
|
Delete "$DESKTOP\${APP_NAME} ${APP_SERIES_NAME}.lnk"
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Uninstaller itself
|
2007-02-08 21:09:30 +00:00
|
|
|
Delete "$INSTDIR\${SETUP_UNINSTALLER}"
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Application folder
|
2008-05-01 18:33:36 +00:00
|
|
|
SetOutPath "$TEMP"
|
2007-02-08 21:09:30 +00:00
|
|
|
RMDir "$INSTDIR"
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# Registry keys
|
2007-02-08 21:09:30 +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}"
|
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
# File associations
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
ReadRegStr $FileAssociation SHELL_CONTEXT "Software\Classes\${APP_EXT}" ""
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-03-30 21:37:53 +00:00
|
|
|
${If} $FileAssociation == "${APP_REGNAME_DOC}"
|
2007-02-08 21:09:30 +00:00
|
|
|
DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_EXT}"
|
2008-03-30 21:37:53 +00:00
|
|
|
${EndIf}
|
2007-02-08 21:09:30 +00:00
|
|
|
|
2008-04-05 19:12:37 +00:00
|
|
|
${If} $MultiUser.Privileges != "Admin"
|
|
|
|
${OrIf} $MultiUser.Privileges != "Power"
|
|
|
|
|
|
|
|
# Delete Postscript printer for metafile o EPS conversion
|
|
|
|
ExecWait '$PrinterConf /q /dl /n "Metafile to EPS Converter"'
|
|
|
|
|
|
|
|
# Also delete printer driver
|
|
|
|
ExecWait '$PrinterConf /q /dd /m "Metafile to EPS Converter"'
|
|
|
|
|
|
|
|
${EndIf}
|
|
|
|
|
2007-02-08 21:09:30 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section "un.User Preferences and Custom Files" un.SecUserFiles
|
|
|
|
|
|
|
|
SetShellVarContext current
|
|
|
|
RMDir /r "$APPDATA\${APP_DIR_USERDATA}"
|
|
|
|
|
|
|
|
SectionEnd
|