Variable "mui.StartMenuPage.Create" not referenced or never set, wasting memory!"StartMenuPage" is the page id I passed to MUI_PAGE_STARTMENU.
Any ideas what's wrong? Thanks in advance!
8 posts
Variable "mui.StartMenuPage.Create" not referenced or never set, wasting memory!"StartMenuPage" is the page id I passed to MUI_PAGE_STARTMENU.
Originally posted by kichikHere's a minimal example giving this and only this warning.
What script caused that?
OutFile not_referenced_case.exe
!include "MUI2.nsh"
var StartMenuFolder
!insertmacro MUI_PAGE_STARTMENU "StartMenuPage" $StartMenuFolder
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section -dummy
SectionEnd Originally posted by kichikInteresting, never heard of that before. I found it saves me manually writing $StartMenuFolder to the registry. Does it do anything more? I didn't find any documentation about it.
Well, you don't use MUI_STARTMENU_WRITE_BEGIN, so it's a lacking script.
Originally posted by kichikJust opened a bug here:
But nonetheless, that warning could be avoided. Submit a bug report and I'll fix it for the next release.
Originally posted by kichikHm, I had that without MUI_STARTMENU_WRITE_BEGIN before and nothing was written to registry.
It's documented under the MUI documentation. If you define MUI_STARTMENUPAGE_REGISTRY_ROOT, MUI_STARTMENUPAGE_REGISTRY_KEY and
MUI_STARTMENUPAGE_REGISTRY_VALUENAME it will also write the selected value to the specified registry key.