Fix Plugin directories not removed regression after uninstalling Notepad++

Close #4771
This commit is contained in:
Rajendra Singh 2018-08-18 14:39:08 +05:30 committed by Don HO
parent fe458a7072
commit 0bdbf348d9
1 changed files with 5 additions and 1 deletions

View File

@ -107,16 +107,19 @@ SectionGroup un.Plugins
Section un.NppExport Section un.NppExport
Delete "$INSTDIR\plugins\NppExport.dll" Delete "$INSTDIR\plugins\NppExport.dll"
Delete "$INSTDIR\plugins\NppExport\NppExport.dll" Delete "$INSTDIR\plugins\NppExport\NppExport.dll"
RMDir "$INSTDIR\plugins\NppExport"
SectionEnd SectionEnd
Section un.Converter Section un.Converter
Delete "$INSTDIR\plugins\NppConverter.dll" Delete "$INSTDIR\plugins\NppConverter.dll"
Delete "$INSTDIR\plugins\NppConverter\NppConverter.dll" Delete "$INSTDIR\plugins\NppConverter\NppConverter.dll"
RMDir "$INSTDIR\plugins\NppConverter"
SectionEnd SectionEnd
Section un.MimeTools Section un.MimeTools
Delete "$INSTDIR\plugins\mimeTools.dll" Delete "$INSTDIR\plugins\mimeTools.dll"
Delete "$INSTDIR\plugins\mimeTools\mimeTools.dll" Delete "$INSTDIR\plugins\mimeTools\mimeTools.dll"
RMDir "$INSTDIR\plugins\mimeTools"
SectionEnd SectionEnd
Section un.PluginManager Section un.PluginManager
@ -133,6 +136,7 @@ SectionGroup un.Plugins
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.aff" Delete "$INSTDIR\plugins\Config\Hunspell\en_US.aff"
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.dic" Delete "$INSTDIR\plugins\Config\Hunspell\en_US.dic"
RMDir /r "$INSTDIR\plugins\Config" ; Remove Config folder recursively only if empty RMDir /r "$INSTDIR\plugins\Config" ; Remove Config folder recursively only if empty
RMDir "$INSTDIR\plugins\DSpellCheck"
SectionEnd SectionEnd
SectionGroupEnd SectionGroupEnd
@ -147,5 +151,5 @@ Section un.AutoUpdater
Delete "$INSTDIR\updater\readme.txt" Delete "$INSTDIR\updater\readme.txt"
Delete "$INSTDIR\updater\README.md" Delete "$INSTDIR\updater\README.md"
Delete "$INSTDIR\updater\getDownLoadUrl.php" Delete "$INSTDIR\updater\getDownLoadUrl.php"
RMDir "$INSTDIR\updater\" RMDir "$INSTDIR\updater"
SectionEnd SectionEnd