Merge branch 'nsis_ImproveInstaller' of https://github.com/SinghRajenM/notepad-plus-plus into SinghRajenM-nsis_ImproveInstaller
This commit is contained in:
commit
6fff9837c6
|
@ -100,7 +100,6 @@ page Custom ExtraOptions
|
||||||
|
|
||||||
!include "nsisInclude\mainSectionFuncs.nsh"
|
!include "nsisInclude\mainSectionFuncs.nsh"
|
||||||
|
|
||||||
!include "nsisInclude\langs4Npp.nsh"
|
|
||||||
!include "nsisInclude\autoCompletion.nsh"
|
!include "nsisInclude\autoCompletion.nsh"
|
||||||
|
|
||||||
!include "nsisInclude\binariesComponents.nsh"
|
!include "nsisInclude\binariesComponents.nsh"
|
||||||
|
@ -109,11 +108,6 @@ page Custom ExtraOptions
|
||||||
InstType "Minimalist"
|
InstType "Minimalist"
|
||||||
|
|
||||||
|
|
||||||
Section -FinishSection
|
|
||||||
Call writeInstallInfoInRegistry
|
|
||||||
SectionEnd
|
|
||||||
|
|
||||||
|
|
||||||
Var diffArchDir2Remove
|
Var diffArchDir2Remove
|
||||||
Var noUpdater
|
Var noUpdater
|
||||||
Function .onInit
|
Function .onInit
|
||||||
|
@ -142,7 +136,7 @@ ${If} $noUpdater == "true"
|
||||||
SectionSetText ${AutoUpdater} ""
|
SectionSetText ${AutoUpdater} ""
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
SectionSetSize ${mainSection} 4500 ; This is rough estimation of files present in function copyCommonFiles
|
Call SetRoughEstimation ; This is rough estimation of files present in function copyCommonFiles
|
||||||
InitPluginsDir ; Initializes the plug-ins dir ($PLUGINSDIR) if not already initialized.
|
InitPluginsDir ; Initializes the plug-ins dir ($PLUGINSDIR) if not already initialized.
|
||||||
Call preventInstallInWin9x
|
Call preventInstallInWin9x
|
||||||
|
|
||||||
|
@ -210,6 +204,18 @@ Section -"Notepad++" mainSection
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
; Please **DONOT** move this function (SetRoughEstimation) anywhere else
|
||||||
|
; Just keep it right after the "mainSection" section
|
||||||
|
; Otherwise rough estimation for copyCommonFiles will not be set
|
||||||
|
; which will become reason for showing 0.0KB size on components section page
|
||||||
|
|
||||||
|
Function SetRoughEstimation
|
||||||
|
SectionSetSize ${mainSection} 4500 ; This is rough estimation of files present in function copyCommonFiles
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
|
|
||||||
|
!include "nsisInclude\langs4Npp.nsh"
|
||||||
|
|
||||||
!include "nsisInclude\themes.nsh"
|
!include "nsisInclude\themes.nsh"
|
||||||
|
|
||||||
${MementoSection} "Context Menu Entry" explorerContextMenu
|
${MementoSection} "Context Menu Entry" explorerContextMenu
|
||||||
|
@ -251,6 +257,15 @@ Function .onInstSuccess
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
|
||||||
|
; Keep "FinishSection" section in the last so that
|
||||||
|
; writing installation info happens in the last
|
||||||
|
; Specially for writing registry "EstimatedSize"
|
||||||
|
; which is visible in control panel in column named "size"
|
||||||
|
|
||||||
|
Section -FinishSection
|
||||||
|
Call writeInstallInfoInRegistry
|
||||||
|
SectionEnd
|
||||||
|
|
||||||
BrandingText "Je code donc je suis"
|
BrandingText "Je code donc je suis"
|
||||||
|
|
||||||
; eof
|
; eof
|
||||||
|
|
|
@ -118,7 +118,7 @@ SectionGroup un.Plugins
|
||||||
Delete "$UPDATE_PATH\plugins\Config\DSpellCheck.ini"
|
Delete "$UPDATE_PATH\plugins\Config\DSpellCheck.ini"
|
||||||
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.aff"
|
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.aff"
|
||||||
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.dic"
|
Delete "$INSTDIR\plugins\Config\Hunspell\en_US.dic"
|
||||||
RMDir "$INSTDIRplugins\Config\Hunspell\"
|
RMDir /r "$INSTDIR\plugins\Config" ; Remove Config folder recursively only if empty
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
SectionGroupEnd
|
SectionGroupEnd
|
||||||
|
|
Loading…
Reference in New Issue