11 Section "un.Program Files" un.SecProgramFiles
14 !insertmacro FileListLyXBin Delete "$INSTDIR\bin\"
15 !insertmacro FileListLyXLauncher Delete "$INSTDIR\bin\"
16 !insertmacro FileListQtBin Delete "$INSTDIR\bin\"
17 !insertmacro FileListDll Delete "$INSTDIR\bin\"
18 !insertmacro FileListMSVC Delete "$INSTDIR\bin\"
19 !insertmacro FileListNetpbmBin Delete "$INSTDIR\bin\"
20 !insertmacro FileListDTLBin Delete "$INSTDIR\bin\"
21 !insertmacro FileListDvipostBin Delete "$INSTDIR\bin\"
22 !insertmacro FileListPDFToolsBin Delete "$INSTDIR\bin\"
23 !insertmacro FileListPDFViewBin Delete "$INSTDIR\bin\"
24 !insertmacro FileListNSISPluginsStandard Delete "$INSTDIR\bin\"
25 !insertmacro FileListNSISPlugins Delete "$INSTDIR\bin\"
26 !insertmacro FileListMetaFile2EPS Delete "$INSTDIR\bin\"
30 RMDir /r "$INSTDIR\Resources"
32 # Components of Python
33 !insertmacro FileListPythonLibEncodings Delete "$INSTDIR\python\Lib\encodings\"
34 Delete "$INSTDIR\python\Lib\encodings\*.pyc"
35 RMDir "$INSTDIR\python\Lib\encodings"
36 !insertmacro FileListPythonLib Delete "$INSTDIR\python\Lib\"
37 Delete "$INSTDIR\python\Lib\*.pyc"
38 RMDir "$INSTDIR\python\Lib"
39 !insertmacro FileListPythonBin Delete "$INSTDIR\python\"
40 !insertmacro FileListMSVC Delete "$INSTDIR\python\"
41 RMDir "$INSTDIR\python"
43 # Components of ImageMagick
44 !insertmacro FileListImageMagick Delete "$INSTDIR\imagemagick\"
45 !insertmacro FileListMSVC Delete "$INSTDIR\imagemagick\"
46 RMDir "$INSTDIR\imagemagick"
48 # Components of Ghostscript
49 !insertmacro FileListGhostscript Delete "$INSTDIR\ghostscript\"
50 !insertmacro FileListMSVC Delete "$INSTDIR\ghostscript\"
51 RMDir "$INSTDIR\ghostscript"
54 Delete "$SMPROGRAMS\${APP_NAME} ${APP_SERIES_NAME}.lnk"
55 Delete "$DESKTOP\${APP_NAME} ${APP_SERIES_NAME}.lnk"
58 Delete "$INSTDIR\${SETUP_UNINSTALLER}"
65 DeleteRegKey SHELL_CONTEXT "${APP_REGKEY_SETUP}"
66 DeleteRegKey SHELL_CONTEXT "${APP_REGKEY}"
67 DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_REGNAME_DOC}"
68 DeleteRegKey SHELL_CONTEXT "Software\Microsoft\Windows\CurrentVersion\Uninstall\${SETUP_UNINSTALLER_KEY}"
72 ReadRegStr $FileAssociation SHELL_CONTEXT "Software\Classes\${APP_EXT}" ""
74 ${If} $FileAssociation == "${APP_REGNAME_DOC}"
75 DeleteRegKey SHELL_CONTEXT "Software\Classes\${APP_EXT}"
78 ${If} $MultiUser.Privileges != "Admin"
79 ${OrIf} $MultiUser.Privileges != "Power"
81 # Delete Postscript printer for metafile to EPS conversion
82 ExecWait '$PrinterConf /q /dl /n "Metafile to EPS Converter"'
88 Section "un.User Preferences and Custom Files" un.SecUserFiles
90 SetShellVarContext current
91 RMDir /r "$APPDATA\${APP_DIR_USERDATA}"