2021-01-23 04:23:47 +01:00
|
|
|
; This file is part of Notepad++ project
|
|
|
|
; Copyright (C)2021 Don HO <don.h@free.fr>
|
2016-09-21 20:55:10 +02:00
|
|
|
;
|
2021-01-23 04:23:47 +01: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 20:55:10 +02: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 04:23:47 +01:00
|
|
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2016-09-21 20:55:10 +02:00
|
|
|
; GNU General Public License for more details.
|
2021-01-23 04:23:47 +01:00
|
|
|
;
|
2016-09-21 20:55:10 +02:00
|
|
|
; You should have received a copy of the GNU General Public License
|
2021-01-23 04:23:47 +01:00
|
|
|
; along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2016-09-21 20:55:10 +02:00
|
|
|
|
2018-02-25 11:07:54 +01:00
|
|
|
|
2016-09-09 23:26:15 +02:00
|
|
|
SectionGroup "Plugins" Plugins
|
|
|
|
SetOverwrite on
|
2018-11-04 22:21:04 +01:00
|
|
|
|
2016-09-09 23:26:15 +02:00
|
|
|
${MementoSection} "NppExport" NppExport
|
|
|
|
Delete "$INSTDIR\plugins\NppExport.dll"
|
2018-04-30 19:36:15 +02:00
|
|
|
Delete "$INSTDIR\plugins\NppExport\NppExport.dll"
|
2018-11-04 22:21:04 +01:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppExport\NppExport.dll"
|
|
|
|
|
|
|
|
SetOutPath "$PLUGIN_INST_PATH\NppExport"
|
2019-07-23 14:30:45 +02:00
|
|
|
!ifdef ARCH64
|
|
|
|
File "..\bin64\plugins\NppExport\NppExport.dll"
|
2021-04-21 20:42:01 +02:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\NppExport\NppExport.dll"
|
2019-07-23 14:30:45 +02:00
|
|
|
!else
|
2018-04-30 19:36:15 +02:00
|
|
|
File "..\bin\plugins\NppExport\NppExport.dll"
|
2019-07-23 14:30:45 +02:00
|
|
|
!endif
|
2016-09-09 23:26:15 +02:00
|
|
|
${MementoSectionEnd}
|
|
|
|
|
|
|
|
|
|
|
|
${MementoSection} "Mime Tools" MimeTools
|
|
|
|
Delete "$INSTDIR\plugins\mimeTools.dll"
|
2018-04-30 19:36:15 +02:00
|
|
|
Delete "$INSTDIR\plugins\mimeTools\mimeTools.dll"
|
2018-11-04 22:21:04 +01:00
|
|
|
Delete "$PLUGIN_INST_PATH\mimeTools\mimeTools.dll"
|
|
|
|
|
|
|
|
SetOutPath "$PLUGIN_INST_PATH\mimeTools"
|
2016-09-09 23:26:15 +02:00
|
|
|
!ifdef ARCH64
|
2018-04-30 19:36:15 +02:00
|
|
|
File "..\bin64\plugins\mimeTools\mimeTools.dll"
|
2021-04-21 20:42:01 +02:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\mimeTools\mimeTools.dll"
|
2016-09-09 23:26:15 +02:00
|
|
|
!else
|
2018-04-30 19:36:15 +02:00
|
|
|
File "..\bin\plugins\mimeTools\mimeTools.dll"
|
2016-09-09 23:26:15 +02:00
|
|
|
!endif
|
|
|
|
${MementoSectionEnd}
|
|
|
|
|
|
|
|
${MementoSection} "Converter" Converter
|
|
|
|
Delete "$INSTDIR\plugins\NppConverter.dll"
|
2018-04-30 19:36:15 +02:00
|
|
|
Delete "$INSTDIR\plugins\NppConverter\NppConverter.dll"
|
2018-11-04 22:21:04 +01:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppConverter\NppConverter.dll"
|
|
|
|
|
|
|
|
SetOutPath "$PLUGIN_INST_PATH\NppConverter"
|
2016-09-09 23:26:15 +02:00
|
|
|
!ifdef ARCH64
|
2018-04-30 19:36:15 +02:00
|
|
|
File "..\bin64\plugins\NppConverter\NppConverter.dll"
|
2021-04-21 20:42:01 +02:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\NppConverter\NppConverter.dll"
|
2016-09-09 23:26:15 +02:00
|
|
|
!else
|
2018-04-30 19:36:15 +02:00
|
|
|
File "..\bin\plugins\NppConverter\NppConverter.dll"
|
2016-09-09 23:26:15 +02:00
|
|
|
!endif
|
|
|
|
${MementoSectionEnd}
|
2017-11-23 22:44:22 +01:00
|
|
|
|
2016-09-09 23:26:15 +02: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-04-21 20:42:01 +02: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"
|
2016-09-09 23:26:15 +02: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"
|
|
|
|
!endif
|
2021-02-07 00:15:51 +01:00
|
|
|
SetOutPath "$PLUGINSDIR\gupLocalization"
|
|
|
|
File "..\bin\updater\translations\"
|
2016-09-09 23:26:15 +02:00
|
|
|
${MementoSectionEnd}
|
|
|
|
|
2018-11-06 13:31:20 +01:00
|
|
|
${MementoSection} "Plugins Admin" PluginsAdmin
|
|
|
|
SetOverwrite on
|
2018-12-06 02:31:39 +01:00
|
|
|
SetOutPath $ALLUSERS_PLUGIN_CONF_PATH
|
2018-11-06 13:31:20 +01:00
|
|
|
!ifdef ARCH64
|
2019-03-03 03:29:55 +01:00
|
|
|
File "..\bin64\plugins\Config\nppPluginList.dll"
|
2021-04-21 20:42:01 +02:00
|
|
|
!else ifdef ARCHARM64
|
|
|
|
File "..\binarm64\plugins\Config\nppPluginList.dll"
|
2018-11-06 13:31:20 +01:00
|
|
|
!else
|
2019-03-03 03:29:55 +01:00
|
|
|
File "..\bin\plugins\Config\nppPluginList.dll"
|
2018-11-06 13:31:20 +01:00
|
|
|
!endif
|
|
|
|
${MementoSectionEnd}
|
|
|
|
|
2016-09-09 23:26:15 +02:00
|
|
|
;Uninstall section
|
|
|
|
SectionGroup un.Plugins
|
|
|
|
Section un.NppExport
|
|
|
|
Delete "$INSTDIR\plugins\NppExport.dll"
|
2018-04-30 19:36:15 +02:00
|
|
|
Delete "$INSTDIR\plugins\NppExport\NppExport.dll"
|
2018-08-18 11:09:08 +02:00
|
|
|
RMDir "$INSTDIR\plugins\NppExport"
|
2018-12-06 02:31:39 +01:00
|
|
|
|
2018-11-04 22:21:04 +01:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppExport\NppExport.dll"
|
|
|
|
RMDir "$PLUGIN_INST_PATH\NppExport"
|
2016-09-09 23:26:15 +02:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section un.Converter
|
|
|
|
Delete "$INSTDIR\plugins\NppConverter.dll"
|
2018-04-30 19:36:15 +02:00
|
|
|
Delete "$INSTDIR\plugins\NppConverter\NppConverter.dll"
|
2018-08-18 11:09:08 +02:00
|
|
|
RMDir "$INSTDIR\plugins\NppConverter"
|
2018-11-04 22:21:04 +01:00
|
|
|
Delete "$PLUGIN_INST_PATH\NppConverter\NppConverter.dll"
|
2018-12-06 02:31:39 +01:00
|
|
|
RMDir "$PLUGIN_INST_PATH\NppConverter"
|
2016-09-09 23:26:15 +02:00
|
|
|
SectionEnd
|
|
|
|
|
|
|
|
Section un.MimeTools
|
|
|
|
Delete "$INSTDIR\plugins\mimeTools.dll"
|
2018-04-30 19:36:15 +02:00
|
|
|
Delete "$INSTDIR\plugins\mimeTools\mimeTools.dll"
|
2018-08-18 11:09:08 +02:00
|
|
|
RMDir "$INSTDIR\plugins\mimeTools"
|
2018-12-06 02:31:39 +01:00
|
|
|
Delete "$PLUGIN_INST_PATH\mimeTools\mimeTools.dll"
|
2018-11-04 22:21:04 +01:00
|
|
|
RMDir "$PLUGIN_INST_PATH\mimeTools"
|
2016-09-09 23:26:15 +02:00
|
|
|
SectionEnd
|
|
|
|
|
2017-12-04 20:00:55 +01:00
|
|
|
Section un.DSpellCheck
|
2018-12-06 02:31:39 +01:00
|
|
|
|
2017-08-29 03:01:24 +02:00
|
|
|
Delete "$INSTDIR\plugins\DSpellCheck.dll"
|
2019-01-25 02:10:11 +01:00
|
|
|
Delete "$INSTDIR\plugins\DSpellCheck\DSpellCheck.dll"
|
2018-12-06 02:31:39 +01:00
|
|
|
Delete "$PLUGIN_INST_PATH\DSpellCheck\DSpellCheck.dll"
|
2017-08-29 03:01:24 +02:00
|
|
|
Delete "$UPDATE_PATH\plugins\Config\DSpellCheck.ini"
|
2018-12-06 02:31:39 +01:00
|
|
|
Delete "$ALLUSERS_PLUGIN_CONF_PATH\DSpellCheck.ini"
|
2017-08-29 03:01:24 +02:00
|
|
|
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.aff"
|
2018-12-06 02:31:39 +01:00
|
|
|
Delete "$USER_PLUGIN_CONF_PATH\Hunspell\en_US.aff"
|
2017-08-29 03:01:24 +02:00
|
|
|
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.dic"
|
2018-12-06 02:31:39 +01:00
|
|
|
Delete "$USER_PLUGIN_CONF_PATH\Hunspell\en_US.dic"
|
2017-12-28 17:28:57 +01:00
|
|
|
RMDir /r "$INSTDIR\plugins\Config" ; Remove Config folder recursively only if empty
|
2018-12-06 02:31:39 +01:00
|
|
|
RMDir /r "$ALLUSERS_PLUGIN_CONF_PATH\Config" ; Remove Config folder recursively only if empty
|
2018-08-18 11:09:08 +02:00
|
|
|
RMDir "$INSTDIR\plugins\DSpellCheck"
|
2017-12-04 20:00:55 +01:00
|
|
|
SectionEnd
|
2016-09-09 23:26:15 +02: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"
|
|
|
|
Delete "$INSTDIR\updater\getDownLoadUrl.php"
|
2021-02-07 00:15:51 +01:00
|
|
|
Delete "$INSTDIR\updater\nativeLang.xml"
|
2018-08-18 11:09:08 +02:00
|
|
|
RMDir "$INSTDIR\updater"
|
2018-11-06 13:31:20 +01: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 18:50:57 +01:00
|
|
|
Delete "$USER_PLUGIN_CONF_PATH\nppPluginList.dll" ; delete 7.6 version's left
|
2018-12-06 02:31:39 +01:00
|
|
|
Delete "$ALLUSERS_PLUGIN_CONF_PATH\nppPluginList.dll"
|
2018-11-06 13:31:20 +01:00
|
|
|
SectionEnd
|