Skip to content

Commit

Permalink
[UPDATE] Update installer to adapt the new behaviour of langs.xml and…
Browse files Browse the repository at this point in the history
… the new NppShell.

- Notepad-plus svn trunk @ 713
  • Loading branch information
donho committed Nov 21, 2010
1 parent 42257cd commit 555fa8b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 15 deletions.
14 changes: 14 additions & 0 deletions PowerEditor/bin/change.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
Notepad++ v5.8.5 new features and fixed bugs (from v5.8.4) :

1. Fix Shell Extension icon absent issue.
2. Fix the crash problem if config.xml is not present.
3. Fix tab settings not saved under Windows 7 problem.
4. Fix localization switching under Windows 7 problem.
5. Fix x64 system files problems : not included in recent file history list while closing a file.
6. Fix x64 system files problems : not remembered in the next session problem.
7. Fix the search direction not being memorized problem.
8. Modify File Association dialog UI.
9. Fix the initial document encoding is not set by "New Document Settings".



Notepad++ v5.8.4 new features and fixed bugs (from v5.8.3) :

1. Fix memory leak problem while switching tab.
Expand Down
29 changes: 17 additions & 12 deletions PowerEditor/installer/nppSetup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@
; Define the application name
!define APPNAME "Notepad++"

!define APPVERSION "5.8.4"
!define APPNAMEANDVERSION "Notepad++ v5.8.4"
!define APPVERSION "5.8.5"
!define APPNAMEANDVERSION "Notepad++ v5.8.5"
!define VERSION_MAJOR 5
!define VERSION_MINOR 84
!define VERSION_MINOR 85

!define APPWEBSITE "http://notepad-plus-plus.org/"

; Main Install settings
Name "${APPNAMEANDVERSION}"
InstallDir "$PROGRAMFILES\Notepad++"
InstallDirRegKey HKLM "Software\${APPNAME}" ""
OutFile ".\build\npp.5.8.4.Installer.exe"
OutFile ".\build\npp.5.8.5.Installer.exe"

; GetWindowsVersion
;
Expand Down Expand Up @@ -357,15 +357,14 @@ GLOBAL_INST:
File "..\bin\config.model.xml"
File "..\bin\stylers.model.xml"

;UPGRATE $INSTDIR\langs.xml
nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\langsModel.xml" "$TEMP\langs.model.xml" "$INSTDIR\langs.xml"'
nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\langsModel.xml" "$TEMP\langs.model.xml" "$UPDATE_PATH\langs.xml"'
nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\configModel.xml" "$TEMP\config.model.xml" "$UPDATE_PATH\config.xml"'

nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\stylesGlobalModel.xml" "$TEMP\stylers.model.xml" "$UPDATE_PATH\stylers.xml"'
nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\stylesLexerModel.xml" "$TEMP\stylers_remove.xml" "$UPDATE_PATH\stylers.xml"'
nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\stylesLexerModel.xml" "$TEMP\stylers.model.xml" "$UPDATE_PATH\stylers.xml"'

; This line is added due to the bug of xmlUpdater, to be removed in the feature
; This line is added due to the bug of xmlUpdater, to be removed in the future
nsExec::ExecToStack '"$TEMP\xmlUpdater.exe" "$TEMP\stylesLexerModel.xml" "$TEMP\stylers.model.xml" "$UPDATE_PATH\stylers.xml"'

Delete "$UPDATE_PATH\contextMenu.backup.xml"
Expand All @@ -379,7 +378,6 @@ GLOBAL_INST:
File "..\bin\stylers.model.xml"

SetOverwrite off
File /oname=$INSTDIR\langs.xml "..\bin\langs.model.xml"
File "..\bin\shortcuts.xml"

; Set Section Files and Shortcuts
Expand All @@ -401,7 +399,7 @@ GLOBAL_INST:
Delete "$INSTDIR\nativeLang.xml"

StrCmp $LANGUAGE ${LANG_ENGLISH} +2 0
CopyFiles "$INSTDIR\localization\$(langFileName)" "$INSTDIR\nativeLang.xml"
CopyFiles "$INSTDIR\localization\$(langFileName)" "$UPDATE_PATH\nativeLang.xml"

; remove all the npp shortcuts from current user
Delete "$DESKTOP\Notepad++.lnk"
Expand Down Expand Up @@ -488,6 +486,10 @@ GLOBAL_INST:
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_02.dll"'
Delete "$INSTDIR\NppShell_02.dll"

IfFileExists "$INSTDIR\NppShell_03.dll" 0 +3
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_03.dll"'
Delete "$INSTDIR\NppShell_03.dll"

; detect the right of
UserInfo::GetAccountType
Pop $1
Expand All @@ -507,12 +509,12 @@ Section "Context Menu Entry" explorerContextMenu
SetOverwrite try
SetOutPath "$INSTDIR\"
${If} ${RunningX64}
File /oname=$INSTDIR\NppShell_03.dll "..\bin\NppShell64_03.dll"
File /oname=$INSTDIR\NppShell_04.dll "..\bin\NppShell64_04.dll"
${Else}
File "..\bin\NppShell_03.dll"
File "..\bin\NppShell_04.dll"
${EndIf}

Exec 'regsvr32 /s "$INSTDIR\NppShell_03.dll"'
Exec 'regsvr32 /s "$INSTDIR\NppShell_04.dll"'
SectionEnd

SubSection "Auto-completion Files" autoCompletionComponent
Expand Down Expand Up @@ -1165,9 +1167,11 @@ Section un.explorerContextMenu
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_01.dll"'
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_02.dll"'
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_03.dll"'
Exec 'regsvr32 /u /s "$INSTDIR\NppShell_04.dll"'
Delete "$INSTDIR\NppShell_01.dll"
Delete "$INSTDIR\NppShell_02.dll"
Delete "$INSTDIR\NppShell_03.dll"
Delete "$INSTDIR\NppShell_04.dll"
SectionEnd

Section Uninstall
Expand Down Expand Up @@ -1216,6 +1220,7 @@ Section Uninstall
Delete "$INSTDIR\session.xml"

SetShellVarContext current
Delete "$APPDATA\Notepad++\langs.xml"
Delete "$APPDATA\Notepad++\config.xml"
Delete "$APPDATA\Notepad++\stylers.xml"
Delete "$APPDATA\Notepad++\contextMenu.xml"
Expand Down
6 changes: 3 additions & 3 deletions PowerEditor/src/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#ifndef RESOURCE_H
#define RESOURCE_H

#define NOTEPAD_PLUS_VERSION TEXT("Notepad++ v5.8.4")
#define NOTEPAD_PLUS_VERSION TEXT("Notepad++ v5.8.5")

// should be X.Y : ie. if VERSION_DIGITALVALUE == 4, 7, 1, 0 , then X = 4, Y = 71
// ex : #define VERSION_VALUE TEXT("5.63\0")
#define VERSION_VALUE TEXT("5.84\0")
#define VERSION_DIGITALVALUE 5, 8, 4, 0
#define VERSION_VALUE TEXT("5.85\0")
#define VERSION_DIGITALVALUE 5, 8, 5, 0

#ifdef UNICODE
#define UNICODE_ANSI_MODE TEXT("(UNICODE)")
Expand Down

0 comments on commit 555fa8b

Please sign in to comment.