Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 5th October 2003, 18:04   #1
Press4Time
Junior Member
 
Join Date: Oct 2003
Location: Canada
Posts: 4
Question 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.
Press4Time is offline   Reply With Quote
Old 5th October 2003, 18:17   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,918
Did you put !insertmacro MUI_PAGE_WELCOME after !include "MUI.nsh"


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.

Joel is offline   Reply With Quote
Old 5th October 2003, 19:07   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
!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
Afrow UK is offline   Reply With Quote
Old 5th October 2003, 23:06   #4
Press4Time
Junior Member
 
Join Date: Oct 2003
Location: Canada
Posts: 4
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.
Press4Time is offline   Reply With Quote
Old 6th October 2003, 01:13   #5
Press4Time
Junior Member
 
Join Date: Oct 2003
Location: Canada
Posts: 4
Talking

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.
Press4Time is offline   Reply With Quote
Old 6th October 2003, 18:26   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 6th October 2003, 18:46   #7
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
That's because this is the only required setting.
Joost Verburg is offline   Reply With Quote
Old 6th October 2003, 19:55   #8
Press4Time
Junior Member
 
Join Date: Oct 2003
Location: Canada
Posts: 4
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.

Last edited by Press4Time; 6th October 2003 at 22:24.
Press4Time is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump