2016-09-21 18:55:10 +00:00
|
|
|
; this file is part of installer for Notepad++
|
|
|
|
; Copyright (C)2016 Don HO <don.h@free.fr>
|
|
|
|
;
|
|
|
|
; 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 2 of the License, or (at your option) any later version.
|
|
|
|
;
|
|
|
|
; Note that the GPL places important restrictions on "derived works", yet
|
|
|
|
; it does not provide a detailed definition of that term. To avoid
|
|
|
|
; misunderstandings, we consider an application to constitute a
|
|
|
|
; "derivative work" for the purpose of this license if it does any of the
|
|
|
|
; following:
|
|
|
|
; 1. Integrates source code from Notepad++.
|
|
|
|
; 2. Integrates/includes/aggregates Notepad++ into a proprietary executable
|
|
|
|
; installer, such as those produced by InstallShield.
|
|
|
|
; 3. Links to a library or executes a program that does any of the above.
|
|
|
|
;
|
|
|
|
; This program is distributed in the hope that it will be useful,
|
|
|
|
; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
; GNU General Public License for more details.
|
|
|
|
;
|
|
|
|
; You should have received a copy of the GNU General Public License
|
|
|
|
; along with this program; if not, write to the Free Software
|
|
|
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
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
|
|
|
!ifndef ARCH64
|
|
|
|
${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"
|
|
|
|
!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}
|
|
|
|
|
|
|
|
!endif
|
|
|
|
|
|
|
|
${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"
|
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"
|
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"
|
|
|
|
!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
|
|
|
|
${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"
|
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"
|
|
|
|
Delete "$INSTDIR\updater\getDownLoadUrl.php"
|
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
|