2021-01-23 03:23:47 +00:00
|
|
|
; This file is part of Notepad++ project
|
|
|
|
; Copyright (C)2021 Don HO <don.h@free.fr>
|
2016-09-21 18:55:10 +00:00
|
|
|
;
|
2021-01-23 03:23:47 +00:00
|
|
|
; This program is free software: you can redistribute it and/or modify
|
|
|
|
; it under the terms of the GNU General Public License as published by
|
|
|
|
; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
; at your option any later version.
|
2016-09-21 18:55:10 +00:00
|
|
|
;
|
|
|
|
; This program is distributed in the hope that it will be useful,
|
|
|
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2021-01-23 03:23:47 +00:00
|
|
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-09-21 18:55:10 +00:00
|
|
|
; GNU General Public License for more details.
|
2021-01-23 03:23:47 +00:00
|
|
|
;
|
2016-09-21 18:55:10 +00:00
|
|
|
; You should have received a copy of the GNU General Public License
|
2021-01-23 03:23:47 +00:00
|
|
|
; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-09-21 18:55:10 +00:00
|
|
|
|
2018-02-25 10:07:54 +00:00
|
|
|
|
2016-09-09 21:26:15 +00:00
|
|
|
SectionGroup "Plugins" Plugins
|
|
|
|
SetOverwrite on
|
2018-11-04 21:21:04 +00:00
|
|
|
|
2016-09-09 21:26:15 +00:00
|
|
|
${MementoSection} "NppExport" NppExport
|
|
|
|
Delete "$INSTDIR\plugins\NppExport.dll"
|
2018-04-30 17:36:15 +00:00
|
|
|
Delete "$INSTDIR\plugins\NppExport\NppExport.dll"
|
2018-11-04 21:21:04 +00:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppExport\NppExport.dll"
|
|
|
|
|
|
|
|
SetOutPath "$PLUGIN_INST_PATH\NppExport"
|
2019-07-23 12:30:45 +00:00
|
|
|
!ifdef ARCH64
|
|
|
|
File "..\bin64\plugins\NppExport\NppExport.dll"
|
2021-04-21 18:42:01 +00:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\NppExport\NppExport.dll"
|
2019-07-23 12:30:45 +00:00
|
|
|
!else
|
2018-04-30 17:36:15 +00:00
|
|
|
File "..\bin\plugins\NppExport\NppExport.dll"
|
2019-07-23 12:30:45 +00:00
|
|
|
!endif
|
2016-09-09 21:26:15 +00:00
|
|
|
${MementoSectionEnd}
|
|
|
|
|
|
|
|
|
|
|
|
${MementoSection} "Mime Tools" MimeTools
|
|
|
|
Delete "$INSTDIR\plugins\mimeTools.dll"
|
2018-04-30 17:36:15 +00:00
|
|
|
Delete "$INSTDIR\plugins\mimeTools\mimeTools.dll"
|
2018-11-04 21:21:04 +00:00
|
|
|
Delete "$PLUGIN_INST_PATH\mimeTools\mimeTools.dll"
|
|
|
|
|
|
|
|
SetOutPath "$PLUGIN_INST_PATH\mimeTools"
|
2016-09-09 21:26:15 +00:00
|
|
|
!ifdef ARCH64
|
2018-04-30 17:36:15 +00:00
|
|
|
File "..\bin64\plugins\mimeTools\mimeTools.dll"
|
2021-04-21 18:42:01 +00:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\mimeTools\mimeTools.dll"
|
2016-09-09 21:26:15 +00:00
|
|
|
!else
|
2018-04-30 17:36:15 +00:00
|
|
|
File "..\bin\plugins\mimeTools\mimeTools.dll"
|
2016-09-09 21:26:15 +00:00
|
|
|
!endif
|
|
|
|
${MementoSectionEnd}
|
|
|
|
|
|
|
|
${MementoSection} "Converter" Converter
|
|
|
|
Delete "$INSTDIR\plugins\NppConverter.dll"
|
2018-04-30 17:36:15 +00:00
|
|
|
Delete "$INSTDIR\plugins\NppConverter\NppConverter.dll"
|
2018-11-04 21:21:04 +00:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppConverter\NppConverter.dll"
|
|
|
|
|
|
|
|
SetOutPath "$PLUGIN_INST_PATH\NppConverter"
|
2016-09-09 21:26:15 +00:00
|
|
|
!ifdef ARCH64
|
2018-04-30 17:36:15 +00:00
|
|
|
File "..\bin64\plugins\NppConverter\NppConverter.dll"
|
2021-04-21 18:42:01 +00:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\NppConverter\NppConverter.dll"
|
2016-09-09 21:26:15 +00:00
|
|
|
!else
|
2018-04-30 17:36:15 +00:00
|
|
|
File "..\bin\plugins\NppConverter\NppConverter.dll"
|
2016-09-09 21:26:15 +00:00
|
|
|
!endif
|
|
|
|
${MementoSectionEnd}
|
2017-11-23 21:44:22 +00:00
|
|
|
|
2016-09-09 21:26:15 +00:00
|
|
|
SectionGroupEnd
|
|
|
|
|
|
|
|
${MementoSection} "Auto-Updater" AutoUpdater
|
|
|
|
SetOverwrite on
|
|
|
|
SetOutPath "$INSTDIR\updater"
|
|
|
|
!ifdef ARCH64
|
|
|
|
File "..\bin64\updater\GUP.exe"
|
|
|
|
File "..\bin64\updater\libcurl.dll"
|
|
|
|
File "..\bin64\updater\gup.xml"
|
|
|
|
File "..\bin64\updater\LICENSE"
|
|
|
|
File "..\bin64\updater\README.md"
|
2021-11-08 00:41:26 +00:00
|
|
|
File "..\bin64\updater\updater.ico"
|
2021-04-21 18:42:01 +00:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\updater\GUP.exe"
|
|
|
|
File "..\binarm64\updater\libcurl.dll"
|
|
|
|
File "..\binarm64\updater\gup.xml"
|
|
|
|
File "..\binarm64\updater\LICENSE"
|
|
|
|
File "..\binarm64\updater\README.md"
|
2021-11-08 00:41:26 +00:00
|
|
|
File "..\binarm64\updater\updater.ico"
|
2016-09-09 21:26:15 +00:00
|
|
|
!else
|
|
|
|
File "..\bin\updater\GUP.exe"
|
|
|
|
File "..\bin\updater\libcurl.dll"
|
|
|
|
File "..\bin\updater\gup.xml"
|
|
|
|
File "..\bin\updater\LICENSE"
|
|
|
|
File "..\bin\updater\README.md"
|
2021-11-08 00:41:26 +00:00
|
|
|
File "..\bin\updater\updater.ico"
|
2016-09-09 21:26:15 +00:00
|
|
|
!endif
|
2021-02-06 23:15:51 +00:00
|
|
|
SetOutPath "$PLUGINSDIR\gupLocalization"
|
|
|
|
File "..\bin\updater\translations\"
|
2016-09-09 21:26:15 +00:00
|
|
|
${MementoSectionEnd}
|
|
|
|
|
2018-11-06 12:31:20 +00:00
|
|
|
${MementoSection} "Plugins Admin" PluginsAdmin
|
|
|
|
SetOverwrite on
|
2018-12-06 01:31:39 +00:00
|
|
|
SetOutPath $ALLUSERS_PLUGIN_CONF_PATH
|
2018-11-06 12:31:20 +00:00
|
|
|
!ifdef ARCH64
|
2019-03-03 02:29:55 +00:00
|
|
|
File "..\bin64\plugins\Config\nppPluginList.dll"
|
2021-04-21 18:42:01 +00:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\Config\nppPluginList.dll"
|
2018-11-06 12:31:20 +00:00
|
|
|
!else
|
2019-03-03 02:29:55 +00:00
|
|
|
File "..\bin\plugins\Config\nppPluginList.dll"
|
2018-11-06 12:31:20 +00:00
|
|
|
!endif
|
|
|
|
${MementoSectionEnd}
|
|
|
|
|
2016-09-09 21:26:15 +00:00
|
|
|
;Uninstall section
|
|
|
|
SectionGroup un.Plugins
|
|
|
|
Section un.NppExport
|
|
|
|
Delete "$INSTDIR\plugins\NppExport.dll"
|
2018-04-30 17:36:15 +00:00
|
|
|
Delete "$INSTDIR\plugins\NppExport\NppExport.dll"
|
2018-08-18 09:09:08 +00:00
|
|
|
RMDir "$INSTDIR\plugins\NppExport"
|
2018-12-06 01:31:39 +00:00
|
|
|
|
2018-11-04 21:21:04 +00:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppExport\NppExport.dll"
|
|
|
|
RMDir "$PLUGIN_INST_PATH\NppExport"
|
2016-09-09 21:26:15 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section un.Converter
|
|
|
|
Delete "$INSTDIR\plugins\NppConverter.dll"
|
2018-04-30 17:36:15 +00:00
|
|
|
Delete "$INSTDIR\plugins\NppConverter\NppConverter.dll"
|
2018-08-18 09:09:08 +00:00
|
|
|
RMDir "$INSTDIR\plugins\NppConverter"
|
2018-11-04 21:21:04 +00:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppConverter\NppConverter.dll"
|
2018-12-06 01:31:39 +00:00
|
|
|
RMDir "$PLUGIN_INST_PATH\NppConverter"
|
2016-09-09 21:26:15 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section un.MimeTools
|
|
|
|
Delete "$INSTDIR\plugins\mimeTools.dll"
|
2018-04-30 17:36:15 +00:00
|
|
|
Delete "$INSTDIR\plugins\mimeTools\mimeTools.dll"
|
2018-08-18 09:09:08 +00:00
|
|
|
RMDir "$INSTDIR\plugins\mimeTools"
|
2018-12-06 01:31:39 +00:00
|
|
|
Delete "$PLUGIN_INST_PATH\mimeTools\mimeTools.dll"
|
2018-11-04 21:21:04 +00:00
|
|
|
RMDir "$PLUGIN_INST_PATH\mimeTools"
|
2016-09-09 21:26:15 +00:00
|
|
|
SectionEnd
|
|
|
|
|
2017-12-04 19:00:55 +00:00
|
|
|
Section un.DSpellCheck
|
2018-12-06 01:31:39 +00:00
|
|
|
|
2017-08-29 01:01:24 +00:00
|
|
|
Delete "$INSTDIR\plugins\DSpellCheck.dll"
|
2019-01-25 01:10:11 +00:00
|
|
|
Delete "$INSTDIR\plugins\DSpellCheck\DSpellCheck.dll"
|
2018-12-06 01:31:39 +00:00
|
|
|
Delete "$PLUGIN_INST_PATH\DSpellCheck\DSpellCheck.dll"
|
2017-08-29 01:01:24 +00:00
|
|
|
Delete "$UPDATE_PATH\plugins\Config\DSpellCheck.ini"
|
2018-12-06 01:31:39 +00:00
|
|
|
Delete "$ALLUSERS_PLUGIN_CONF_PATH\DSpellCheck.ini"
|
2017-08-29 01:01:24 +00:00
|
|
|
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.aff"
|
2018-12-06 01:31:39 +00:00
|
|
|
Delete "$USER_PLUGIN_CONF_PATH\Hunspell\en_US.aff"
|
2017-08-29 01:01:24 +00:00
|
|
|
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.dic"
|
2018-12-06 01:31:39 +00:00
|
|
|
Delete "$USER_PLUGIN_CONF_PATH\Hunspell\en_US.dic"
|
2017-12-28 16:28:57 +00:00
|
|
|
RMDir /r "$INSTDIR\plugins\Config" ; Remove Config folder recursively only if empty
|
2018-12-06 01:31:39 +00:00
|
|
|
RMDir /r "$ALLUSERS_PLUGIN_CONF_PATH\Config" ; Remove Config folder recursively only if empty
|
2018-08-18 09:09:08 +00:00
|
|
|
RMDir "$INSTDIR\plugins\DSpellCheck"
|
2017-12-04 19:00:55 +00:00
|
|
|
SectionEnd
|
2016-09-09 21:26:15 +00:00
|
|
|
|
|
|
|
SectionGroupEnd
|
|
|
|
|
|
|
|
Section un.AutoUpdater
|
|
|
|
Delete "$INSTDIR\updater\GUP.exe"
|
|
|
|
Delete "$INSTDIR\updater\libcurl.dll"
|
|
|
|
Delete "$INSTDIR\updater\gup.xml"
|
|
|
|
Delete "$INSTDIR\updater\License.txt"
|
|
|
|
Delete "$INSTDIR\updater\LICENSE"
|
|
|
|
Delete "$INSTDIR\updater\gpl.txt"
|
|
|
|
Delete "$INSTDIR\updater\readme.txt"
|
|
|
|
Delete "$INSTDIR\updater\README.md"
|
2021-11-08 00:41:26 +00:00
|
|
|
Delete "$INSTDIR\updater\updater.ico"
|
2016-09-09 21:26:15 +00:00
|
|
|
Delete "$INSTDIR\updater\getDownLoadUrl.php"
|
2021-02-06 23:15:51 +00:00
|
|
|
Delete "$INSTDIR\updater\nativeLang.xml"
|
2018-08-18 09:09:08 +00:00
|
|
|
RMDir "$INSTDIR\updater"
|
2018-11-06 12:31:20 +00:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Function .onSelChange
|
|
|
|
${If} ${SectionIsSelected} ${PluginsAdmin}
|
|
|
|
!insertmacro SetSectionFlag ${AutoUpdater} ${SF_RO}
|
|
|
|
!insertmacro SelectSection ${AutoUpdater}
|
|
|
|
${Else}
|
|
|
|
!insertmacro ClearSectionFlag ${AutoUpdater} ${SF_RO}
|
|
|
|
${EndIf}
|
|
|
|
FunctionEnd
|
|
|
|
|
|
|
|
Section un.PluginsAdmin
|
2018-12-11 17:50:57 +00:00
|
|
|
Delete "$USER_PLUGIN_CONF_PATH\nppPluginList.dll" ; delete 7.6 version's left
|
2018-12-06 01:31:39 +00:00
|
|
|
Delete "$ALLUSERS_PLUGIN_CONF_PATH\nppPluginList.dll"
|
2018-11-06 12:31:20 +00:00
|
|
|
SectionEnd
|