Skip to content

Commit

Permalink
[ENHANCE] Enhance the packaging procedure.
Browse files Browse the repository at this point in the history
- Notepad-plus svn trunk @ 763
  • Loading branch information
donho committed May 29, 2011
1 parent ae0a9d8 commit f2ea003
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 21 deletions.
50 changes: 38 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.9"
!define APPNAMEANDVERSION "Notepad++ v5.9"
!define APPVERSION "5.91"
!define APPNAMEANDVERSION "Notepad++ v5.91"
!define VERSION_MAJOR 5
!define VERSION_MINOR 87
!define VERSION_MINOR 91

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

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

; GetWindowsVersion
;
Expand Down Expand Up @@ -132,6 +132,7 @@ FunctionEnd
; Modern interface settings
!include "MUI.nsh"
!include "x64.nsh"
!include "nsDialogs.nsh"

!define MUI_ICON ".\images\npp_inst.ico"

Expand All @@ -149,6 +150,7 @@ FunctionEnd
!insertmacro MUI_PAGE_LICENSE "..\license.txt"
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_COMPONENTS
;page Custom ChooserIcon
!insertmacro MUI_PAGE_INSTFILES


Expand Down Expand Up @@ -232,15 +234,15 @@ Function .onInit
Pop $R0

StrCmp $R0 "95" 0 +3
MessageBox MB_OK "The installer contains only Unicode version of Notepad++, which is not compatible with your Windows 95.$\nPlease use ANSI version in zipped package, which you can download here :$\nhttps://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072"
MessageBox MB_OK "This version of Notepad++ does not support your OS.$\nPlease download zipped package of version 5.9 and use ANSI version. You can find v5.9 here:$\nhttp://notepad-plus-plus.org/release/5.9"
Abort

StrCmp $R0 "98" 0 +3
MessageBox MB_OK "The installer contains only Unicode version of Notepad++, which is not compatible with your Windows 98.$\nPlease use ANSI version in zipped package, which you can download here :$\nhttps://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072"
MessageBox MB_OK "This version of Notepad++ does not support your OS.$\nPlease download zipped package of version 5.9 and use ANSI version. You can find v5.9 here:$\nhttp://notepad-plus-plus.org/release/5.9"
Abort

StrCmp $R0 "ME" 0 +3
MessageBox MB_OK "The installer contains only Unicode version of Notepad++, which is not compatible with your Windows ME.$\nPlease use ANSI version in zipped package, which you can download here :$\nhttps://sourceforge.net/project/showfiles.php?group_id=95717&package_id=102072"
MessageBox MB_OK "This version of Notepad++ does not support your OS.$\nPlease download zipped package of version 5.9 and use ANSI version. You can find v5.9 here:$\nhttp://notepad-plus-plus.org/release/5.9"
Abort

!insertmacro MUI_LANGDLL_DISPLAY
Expand All @@ -257,6 +259,12 @@ Function .onInit

FunctionEnd

/*
Function ChooserIcon
FunctionEnd
*/

LangString langFileName ${LANG_ENGLISH} "english.xml"
LangString langFileName ${LANG_FRENCH} "french.xml"
LangString langFileName ${LANG_TRADCHINESE} "chinese.xml"
Expand Down Expand Up @@ -447,26 +455,44 @@ GLOBAL_INST:
Delete "$INSTDIR\plugins\NPPTextFX.ini"

IfFileExists "$INSTDIR\plugins\NppAutoIndent.dll" 0 +4
MessageBox MB_OK "Due to the stabilty issue,$\nNppAutoIndent.dll will be moved to the directory $\"disabled$\"" /SD IDOK
MessageBox MB_OK "Due to the stability issue,$\nNppAutoIndent.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\NppAutoIndent.dll" "$INSTDIR\plugins\disabled\NppAutoIndent.dll"
Delete "$INSTDIR\plugins\NppAutoIndent.dll"

IfFileExists "$INSTDIR\plugins\FTP_synchronize.dll" 0 +4
MessageBox MB_OK "Due to the stabilty issue,$\nFTP_synchronize.dll will be moved to the directory $\"disabled$\"" /SD IDOK
MessageBox MB_OK "Due to the stability issue,$\nFTP_synchronize.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\FTP_synchronize.dll" "$INSTDIR\plugins\disabled\FTP_synchronize.dll"
Delete "$INSTDIR\plugins\FTP_synchronize.dll"

IfFileExists "$INSTDIR\plugins\NppPlugin_ChangeMarker.dll" 0 +4
MessageBox MB_OK "Due to the stabilty issue,$\nNppPlugin_ChangeMarker.dll will be moved to the directory $\"disabled$\"" /SD IDOK
MessageBox MB_OK "Due to the stability issue,$\nNppPlugin_ChangeMarker.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\NppPlugin_ChangeMarker.dll" "$INSTDIR\plugins\disabled\NppPlugin_ChangeMarker.dll"
Delete "$INSTDIR\plugins\NppPlugin_ChangeMarker.dll"

IfFileExists "$INSTDIR\plugins\QuickText.UNI.dll" 0 +4
MessageBox MB_OK "Due to the stabilty issue,$\n\QuickText.UNI.dll will be moved to the directory $\"disabled$\"" /SD IDOK
MessageBox MB_OK "Due to the stability issue,$\n\QuickText.UNI.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\QuickText.UNI.dll" "$INSTDIR\plugins\disabled\QuickText.UNI.dll"
Delete "$INSTDIR\plugins\QuickText.UNI.dll"


IfFileExists "$INSTDIR\plugins\AHKExternalLexer.dll" 0 +4
MessageBox MB_OK "Due to the compability issue,$\n\AHKExternalLexer.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\AHKExternalLexer.dll" "$INSTDIR\plugins\disabled\AHKExternalLexer.dll"
Delete "$INSTDIR\plugins\AHKExternalLexer.dll"

IfFileExists "$INSTDIR\plugins\NppExternalLexers.dll" 0 +4
MessageBox MB_OK "Due to the compability issue,$\n\NppExternalLexers.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\NppExternalLexers.dll" "$INSTDIR\plugins\disabled\NppExternalLexers.dll"
Delete "$INSTDIR\plugins\NppExternalLexers.dll"

IfFileExists "$INSTDIR\plugins\ExternalLexerKVS.dll" 0 +4
MessageBox MB_OK "Due to the compability issue,$\n\ExternalLexerKVS.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\ExternalLexerKVS.dll" "$INSTDIR\plugins\disabled\ExternalLexerKVS.dll"
Delete "$INSTDIR\plugins\ExternalLexerKVS.dll"

IfFileExists "$INSTDIR\plugins\Oberon2LexerU.dll" 0 +4
MessageBox MB_OK "Due to the compability issue,$\n\Oberon2LexerU.dll will be moved to the directory $\"disabled$\"" /SD IDOK
Rename "$INSTDIR\plugins\Oberon2LexerU.dll" "$INSTDIR\plugins\disabled\Oberon2LexerU.dll"
Delete "$INSTDIR\plugins\Oberon2LexerU.dll"


; Context Menu Management : removing old version of Context Menu module
Expand Down
7 changes: 2 additions & 5 deletions PowerEditor/installer/packageAll.bat
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,8 @@ If ErrorLevel 1 PAUSE


rem Notepad++ ANSI package
del /F /S /Q .\zipped.package.release\ansi\npp.pdb
del /F /S /Q .\zipped.package.release\ansi\config.xml
del /F /S /Q .\zipped.package.release\ansi\langs.xml
del /F /S /Q .\zipped.package.release\ansi\stylers.xml
del /F /S /Q .\zipped.package.release\ansi\session.xml
del /F /S /Q .\zipped.package.release\ansi\*.*

copy /Y ..\bin\SciLexer.dll .\zipped.package.release\ansi\
If ErrorLevel 1 PAUSE
copy /Y ..\bin\license.txt .\zipped.package.release\ansi\
Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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.9")
#define NOTEPAD_PLUS_VERSION TEXT("Notepad++ v5.9.1")

// 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.9\0")
#define VERSION_DIGITALVALUE 5, 9, 0, 0
#define VERSION_VALUE TEXT("5.91\0")
#define VERSION_DIGITALVALUE 5, 9, 1, 0

#ifdef UNICODE
#define UNICODE_ANSI_MODE TEXT("(UNICODE)")
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/visual.net/notepadPlus.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
</Configuration>
<Configuration
Name="ANSI Release|Win32"
OutputDirectory="..\installer\zipped.package.release\ansi"
OutputDirectory="..\bin-ansi"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="1"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
Expand Down

0 comments on commit f2ea003

Please sign in to comment.