mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-28 08:14:18 +02:00
Fix a regression of themes installation
Take consideration of installation with doLocal Conf.xml activated.
This commit is contained in:
parent
f3fcb50015
commit
5c031d9f81
@ -127,6 +127,7 @@ Section -"Notepad++" mainSection
|
|||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
!include "nsisInclude\uninstall.nsh"
|
||||||
!include "nsisInclude\autoCompletion.nsh"
|
!include "nsisInclude\autoCompletion.nsh"
|
||||||
!include "nsisInclude\themes.nsh"
|
!include "nsisInclude\themes.nsh"
|
||||||
!include "nsisInclude\binariesComponents.nsh"
|
!include "nsisInclude\binariesComponents.nsh"
|
||||||
@ -150,7 +151,7 @@ Section -FinishSection
|
|||||||
Call writeInstallInfoInRegistry
|
Call writeInstallInfoInRegistry
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
!include "nsisInclude\uninstall.nsh"
|
|
||||||
|
|
||||||
BrandingText "Don HO"
|
BrandingText "Don HO"
|
||||||
|
|
||||||
|
@ -25,189 +25,193 @@
|
|||||||
; along with this program; if not, write to the Free Software
|
; along with this program; if not, write to the Free Software
|
||||||
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
|
||||||
SectionGroup "Themes" Themes
|
SectionGroup "Themes" Themes
|
||||||
SetOverwrite off
|
SetOverwrite off
|
||||||
|
; UPDATE_PATH: the value is $INSTDIR if doLocalConf.xml exit,
|
||||||
|
; otherwise the value is $APPDATA\${APPNAME}
|
||||||
${MementoSection} "Black Board" BlackBoard
|
${MementoSection} "Black Board" BlackBoard
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Black board.xml"
|
File ".\themes\Black board.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Choco" Choco
|
${MementoSection} "Choco" Choco
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Choco.xml"
|
File ".\themes\Choco.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Hello Kitty" HelloKitty
|
${MementoSection} "Hello Kitty" HelloKitty
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Hello Kitty.xml"
|
File ".\themes\Hello Kitty.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Mono Industrial" MonoIndustrial
|
${MementoSection} "Mono Industrial" MonoIndustrial
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Mono Industrial.xml"
|
File ".\themes\Mono Industrial.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Monokai" Monokai
|
${MementoSection} "Monokai" Monokai
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Monokai.xml"
|
File ".\themes\Monokai.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Obsidian" Obsidian
|
${MementoSection} "Obsidian" Obsidian
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\obsidian.xml"
|
File ".\themes\obsidian.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Plastic Code Wrap" PlasticCodeWrap
|
${MementoSection} "Plastic Code Wrap" PlasticCodeWrap
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Plastic Code Wrap.xml"
|
File ".\themes\Plastic Code Wrap.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Ruby Blue" RubyBlue
|
${MementoSection} "Ruby Blue" RubyBlue
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Ruby Blue.xml"
|
File ".\themes\Ruby Blue.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Twilight" Twilight
|
${MementoSection} "Twilight" Twilight
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Twilight.xml"
|
File ".\themes\Twilight.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Vibrant Ink" VibrantInk
|
${MementoSection} "Vibrant Ink" VibrantInk
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Vibrant Ink.xml"
|
File ".\themes\Vibrant Ink.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Deep Black" DeepBlack
|
${MementoSection} "Deep Black" DeepBlack
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Deep Black.xml"
|
File ".\themes\Deep Black.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "vim Dark Blue" vimDarkBlue
|
${MementoSection} "vim Dark Blue" vimDarkBlue
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\vim Dark Blue.xml"
|
File ".\themes\vim Dark Blue.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Bespin" Bespin
|
${MementoSection} "Bespin" Bespin
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Bespin.xml"
|
File ".\themes\Bespin.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Zenburn" Zenburn
|
${MementoSection} "Zenburn" Zenburn
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Zenburn.xml"
|
File ".\themes\Zenburn.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Solarized" Solarized
|
${MementoSection} "Solarized" Solarized
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Solarized.xml"
|
File ".\themes\Solarized.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Solarized Light" Solarized-light
|
${MementoSection} "Solarized Light" Solarized-light
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Solarized-light.xml"
|
File ".\themes\Solarized-light.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Hot Fudge Sundae" HotFudgeSundae
|
${MementoSection} "Hot Fudge Sundae" HotFudgeSundae
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\HotFudgeSundae.xml"
|
File ".\themes\HotFudgeSundae.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "khaki" khaki
|
${MementoSection} "khaki" khaki
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\khaki.xml"
|
File ".\themes\khaki.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Mossy Lawn" MossyLawn
|
${MementoSection} "Mossy Lawn" MossyLawn
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\MossyLawn.xml"
|
File ".\themes\MossyLawn.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
|
|
||||||
${MementoSection} "Navajo" Navajo
|
${MementoSection} "Navajo" Navajo
|
||||||
SetOutPath "$APPDATA\${APPNAME}\themes"
|
SetOutPath "$UPDATE_PATH\themes"
|
||||||
File ".\themes\Navajo.xml"
|
File ".\themes\Navajo.xml"
|
||||||
${MementoSectionEnd}
|
${MementoSectionEnd}
|
||||||
SectionGroupEnd
|
SectionGroupEnd
|
||||||
|
|
||||||
|
|
||||||
SectionGroup un.Themes
|
SectionGroup un.Themes
|
||||||
|
|
||||||
Section un.BlackBoard
|
Section un.BlackBoard
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Black board.xml"
|
Delete "$themesParentPath\themes\Black board.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Choco
|
Section un.Choco
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Choco.xml"
|
Delete "$themesParentPath\themes\Choco.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.HelloKitty
|
Section un.HelloKitty
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Hello Kitty.xml"
|
Delete "$themesParentPath\themes\Hello Kitty.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.MonoIndustrial
|
Section un.MonoIndustrial
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Mono Industrial.xml"
|
Delete "$themesParentPath\themes\Mono Industrial.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Monokai
|
Section un.Monokai
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Monokai.xml"
|
Delete "$themesParentPath\themes\Monokai.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Obsidian
|
Section un.Obsidian
|
||||||
Delete "$APPDATA\${APPNAME}\themes\obsidian.xml"
|
Delete "$themesParentPath\themes\obsidian.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.PlasticCodeWrap
|
Section un.PlasticCodeWrap
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Plastic Code Wrap.xml"
|
Delete "$themesParentPath\themes\Plastic Code Wrap.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.RubyBlue
|
Section un.RubyBlue
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Ruby Blue.xml"
|
Delete "$themesParentPath\themes\Ruby Blue.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Twilight
|
Section un.Twilight
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Twilight.xml"
|
Delete "$themesParentPath\themes\Twilight.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.VibrantInk
|
Section un.VibrantInk
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Vibrant Ink.xml"
|
Delete "$themesParentPath\themes\Vibrant Ink.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.DeepBlack
|
Section un.DeepBlack
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Deep Black.xml"
|
Delete "$themesParentPath\themes\Deep Black.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.vimDarkBlue
|
Section un.vimDarkBlue
|
||||||
Delete "$APPDATA\${APPNAME}\themes\vim Dark Blue.xml"
|
Delete "$themesParentPath\themes\vim Dark Blue.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Bespin
|
Section un.Bespin
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Bespin.xml"
|
Delete "$themesParentPath\themes\Bespin.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Zenburn
|
Section un.Zenburn
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Zenburn.xml"
|
Delete "$themesParentPath\themes\Zenburn.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Solarized
|
Section un.Solarized
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Solarized.xml"
|
Delete "$themesParentPath\themes\Solarized.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Solarized-light
|
Section un.Solarized-light
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Solarized-light.xml"
|
Delete "$themesParentPath\themes\Solarized-light.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.HotFudgeSundae
|
Section un.HotFudgeSundae
|
||||||
Delete "$APPDATA\${APPNAME}\themes\HotFudgeSundae.xml"
|
Delete "$themesParentPath\themes\HotFudgeSundae.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.khaki
|
Section un.khaki
|
||||||
Delete "$APPDATA\${APPNAME}\themes\khaki.xml"
|
Delete "$themesParentPath\themes\khaki.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.MossyLawn
|
Section un.MossyLawn
|
||||||
Delete "$APPDATA\${APPNAME}\themes\MossyLawn.xml"
|
Delete "$themesParentPath\themes\MossyLawn.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section un.Navajo
|
Section un.Navajo
|
||||||
Delete "$APPDATA\${APPNAME}\themes\Navajo.xml"
|
Delete "$themesParentPath\themes\Navajo.xml"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
SectionGroupEnd
|
SectionGroupEnd
|
||||||
|
@ -189,6 +189,12 @@ Section Uninstall
|
|||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
Var themesParentPath
|
||||||
Function un.onInit
|
Function un.onInit
|
||||||
;!insertmacro MUI_UNGETLANGUAGE
|
; determinate theme path for uninstall themes
|
||||||
|
StrCpy $themesParentPath "$APPDATA\${APPNAME}"
|
||||||
|
IfFileExists $INSTDIR\doLocalConf.xml doesExist noneExist
|
||||||
|
doesExist:
|
||||||
|
StrCpy $themesParentPath $INSTDIR
|
||||||
|
noneExist:
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user