Archive: HM NIS Editor, insertmacro MUI_PAGE_WELCOME, has me stumped.


HM NIS Editor, insertmacro MUI_PAGE_WELCOME, has me stumped.
I have spent the last week and a half trying to overcome this HM NIS Edit error message. I have spent substantial time searching for an answer and havn't found one.

I've installed NSIS version 2.0 Beta 3 and HM NIS Edit 2.0b2
When I try to use the wizard I get the following error
!insertmacro: MUI_PAGE_WELCOME
!insertmacro: macro named "MUI_PAGE_WELCOME" not found!

I'm begining to think that the HM NIS Edit version numbers correspond with the NSIS version numbers but have not found any information to support my theory. Can anyone confirm what version of NSIS that HM NIS Edit 2.0b2 works with.?

I have tried several other NSIS editors including the NSIS built-in editor, but I don't have time to learn the NSIS scripting lingo from scratch. And for all my initial teething problems I believe that for a green thumb like me, HM NIS Wizards is my solution.

My thanks in advance.


Did you put !insertmacro MUI_PAGE_WELCOME after !include "MUI.nsh"


!insertmacro MUI_PAGE_WELCOME is for Modern UI 1.66, and comes with NSIS 2.0b4
2.0b3 uses the old !define MUI_WELCOMEPAGE.

It is highly recommended that you grab the latest development snapshot (2.0b4) from http://nsis.sourceforge.net/nightly/nsis.zip which will allow your current code to work properly.

-Stu


I stepped out for a few.
Yes Lobo Lunar, the code was done up right (for 2.0b4).
Well Afrow UK, I'll give the NSIS "Beta" release a go.
Besides after a quick search of the wizard made script it appears HM NIS doesn't use MUI_WELCOMEPAGE, but the newer form.
Thanks for pointing out what must seem like the obvious.


Yes I can sort of use NSIS.
I think this should be directed more at the wizard programmer for HM NIS Edit than anyone else, since it needs some updating.
Here's a list of simple things just to get going.

; !insertmacro MUI_PAGE_LICENSE ;change this to...
!insertmacro MUI_PAGE_LICENSE "License.txt"

; !define MUI_ICON "${NSISDIR}\Contrib\Icons\Setup.ico" ;Old Icon name
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\NAME.ico"
; !define MUI_UNICON "${NSISDIR}\Contrib\Icons\normal-uninstall.ico"
!define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\NAME.ico"

; !insertmacro MUI_FUNCTIONS_DESCRIPTION_BEGIN ;The "S"...
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
; !insertmacro MUI_FUNCTIONS_DESCRIPTION_END ;The "S"...
!insertmacro MUI_FUNCTION_DESCRIPTION_END

And this will finally let me make the "Testing.exe" installer with:
3 warnings:
!warning: The MUI_PRODUCT and MUI_VERSION defines have been removed. Use a normal Name command now.
(macro:MUI_INSERT:7)
unknown variable "GROUP.lnk" detected, ignoring (C:\Program Files\A-Testing\test-4.nsi:45)
unknown variable "GROUP.lnk" detected, ignoring (C:\Program Files\A-Testing\test-4.nsi:100)

I'm sure I'll figure out what else needs fixing with some more poking around. :)
I'm just learning about the "normal" Name command...
name "${PRODUCT} ${VERSION}" ;Define your own software name here.

Just thought I'd let others (who are new to this) find the solutions quick, and to let Hector know there are now problems with HM NIS wizard 2.0b2 and NSIS 2.0B4.


I'm not sure whether the HM NIS devloper reads these forums very regularely, so maybe you could email him.

The !insertmacro MUI_PAGE_LICENSE "License.txt" may be a good idea, but the theme with all the other page macros needs to be kept the same to not create confusion (kept without macro values).

-Stu


That's because this is the only required setting.


Sorry to confuse Afrow UK and others with the script above.
The commented out lines were the old style script that no longer works, although the HM NIS wizard still pumps it out that way.
I added the correct lines just below each old style script.

After I'd gotten to the point (as seen above), I quickly gave up on the wizard and just kept the MUI readme.html open while fixing the wizard's errors.

I will take the time later on to email Hector; who knows, he may already be working on a new release of HM NIS.

Meanwhile I've been able to follow the Readme files and have since dumped the test program and have started the installation script for distributing my software.
The 2.0b4 feels easier to script, probally thanks to those insertmacros.

My many thanks to all those who created and are still developing NSIS.