Modern UI compile error
Yesterday I began working with NSIS 2.19.
To make it easier to create NSI scripts I installed Eclipse + EclipseNSIS plugin (great tools!!!).
Using EclipseNSIS wizard I created my first NSI script for an Access procedure I developed.
After creating I tried to compile it, but got 3 warnings and 1 error, so I was not able to go on.
Attached you find the problematic script.
Here is the script section which contains the line that gives the error (in red):
Section -post SEC0004
WriteRegStr HKLM "${REGKEY}" Path $INSTDIR
WriteUninstaller $INSTDIR\Scuolabus_uninstall.exe
!!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
SetOutPath $SMPROGRAMS\$StartMenuGroup
CreateShortcut "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk" $INSTDIR\Scuolabus_uninstall.exe
!insertmacro MUI_STARTMENU_WRITE_END
[...omissis...]
SectionEnd
Here is the error message, including also the 3 warnings (in orange):
!insertmacro: MUI_STARTMENU_WRITE_BEGIN
warning: unknown variable/constant "{MUI_STARTMENUPAGE_Application_VARIABLE}" detected, ignoring (macro:MUI_STARTMENU_WRITE_BEGIN:7)
warning: unknown variable/constant "{MUI_STARTMENUPAGE_Application_VARIABLE}" detected, ignoring (macro:MUI_STARTMENU_WRITE_BEGIN:10)
warning: unknown variable/constant "{MUI_STARTMENUPAGE_Application_DEFAULTFOLDER}" detected, ignoring (macro:MUI_STARTMENU_GETFOLDER:13)
Usage: StrCpy $(user_var: output) str [maxlen] [startoffset]
Error in macro MUI_STARTMENU_GETFOLDER on macroline 13
Error in macro MUI_STARTMENU_WRITE_BEGIN on macroline 12
Error in script "C:\Documents and Settings\gabriele\Documenti\eclipse workspace\Scuolabus Installer\setup.nsi" on line 96 -- aborting creation process
Compilation time: 22.250 sec.
I tried also the same wizard for generating a simpler script which provides a simple DOC deploying, and the problem arises again.
It seems like the error is generated into SYSTEM.NSH, but I don't have any ideas where the problem is.
May you help me?
Thanks in advance.