don't declare variables for registry values if they won't be used

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5265 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2007-09-01 10:58:03 +00:00
parent bb8fc680f5
commit 4fe86652a8
2 changed files with 15 additions and 7 deletions

View file

@ -10,12 +10,14 @@ Localization
!macro MUI_LANGDLL_VARIABLES
!ifndef MUI_LANGDLL_VARIABLES
!define MUI_LANGDLL_VARIABLES
;/GLOBAL because the macros are included in a function
Var /GLOBAL mui.LangDLL.RegistryLanguage
!ifdef MUI_LANGDLL_REGISTRY_ROOT & MUI_LANGDLL_REGISTRY_KEY & MUI_LANGDLL_REGISTRY_VALUENAME
!ifndef MUI_LANGDLL_REGISTRY_VARAIBLES
!define MUI_LANGDLL_REGISTRY_VARAIBLES
;/GLOBAL because the macros are included in a function
Var /GLOBAL mui.LangDLL.RegistryLanguage
!endif
!endif
!macroend

View file

@ -17,10 +17,16 @@ Start Menu folder page
Var mui.StartMenuPage.FolderList
Var mui.StartMenuPage.Create
Var mui.StartMenuPage.RegistryLocation
Var mui.StartMenuPage.ReturnValue
!endif
!ifdef MUI_STARTMENUPAGE_REGISTRY_ROOT & MUI_STARTMENUPAGE_REGISTRY_KEY & MUI_STARTMENUPAGE_REGISTRY_VALUENAME
!ifndef MUI_STARTMENUPAGE_REGISTRY_VARIABLES
!define MUI_STARTMENUPAGE_REGISTRY_VARIABLES
Var mui.StartMenuPage.RegistryLocation
!endif
!endif
!macroend