Skip to content
⌘ NSIS Forum Archive

Problem finding a macro

3 posts

TundraWolf#

Problem finding a macro

Hey.

I posted a post about Ethereal previously. Ethereal has it's own script, however, when I tried to compile it and run it, it gave me this error:

!insertmacro: MUI_RESERVEFILE_INSTALLOPTIONS
!insertmacro: macro named "MUI_RESERVEFILE_INSTALLOPTIONS" not found!
Error in script "C:\ethereal-0.10.12\packaging\nsis\ethereal.nsi" on line 128 -- aborting creation process

Now, from there, I searched all the scripts on my harddrive looking for the macro "MUI_RESERVEFILE_INSTALLOPTIONS" and I found it in a file called System.nsh.

If I try removing the line of code at line 128, it gives me an error that it can't find a different macro.

Is there a way to get the compiler to look in other .nsh files to look for these macros?

Thanks for your time.
deguix#
First you have to !include "MUI.nsh" (which should probably be at the top of the script), then use that macro.