Archive: Mui Startmenu Page Woes


Mui Startmenu Page Woes
Hi.

I have incorporated the script from the sample StartMenu.nsi script virtually intact to the script I am writing. However, when I compile my script, I get a warning:

unknown variable "{MUI_STARTMENUPAGE_VARIABLE}" detected, ignoring

It does this eleven times: two times before my CreateShortcut commands, once for each of my eight CreateShortcut commands, and then once following.

Any suggestions on how to correct this. As far as I can tell, my usage is exactly like that in the StartMenu.nsi script.

Dave

PS Originally I got the MUI example files off the "NSIS Modern User Interface" page at the sourceforge.net site. None of the ones I tried would compile--just error messages. Then I discovered the ones in the Examples\ModernUI directory, and these did work. Comparing the files, it looks like the ones on the sourceforge site are old scripts that no longer work. Might want to update these.


Did you:
1. use ${MUI_STARTMENUPAGE_VARIABLE}.
2. Put !Include "MUI.nsh" on top.


The SF CVS server contains all files (from the olders to the newest versions). Please download the latest development snapshot at http://nsis.sf.net (or use NSIS Update or other CVS client).


Sorry it has taken so long to get back to this--life took me away.

Yes, lobo, I did use ${MUI_STARTMENUPAGE_VARIABLE}. Following the StartMenu.nsi example, I saw no place where it was defined, so I figured it had to have been defined in one of the functions behind the scenes. The example says to define it only if you want to change the variable used from $9 to something else.

And yes, I did include MUI.nsh at the top.

So is there something I am missing?

Dave


So you got the latest development version (Modern UI 1.65)?

Make sure that your script looks the same as the new examples (with the new page macro's).

There must be an error in your script, so please attach it.


Oops.

Now I see what I missed. I forgot

!define MUI_STARTMENUPAGE

Sorry to trouble you over such a simple mistake.

Dave


The latest Modern UI doesn't use that define anymore. If you upgrade to Modern UI 1.65, make sure to use the new page macro's.


I've now updated to 1.65 and will try it out. Thanks


I had the same problem when I was using $MUI_TEMP as the variable name (which I adopted from an example), and when I switched to $R0, it worked just fine.

However, when I run the installer, customizing the start menu folder has no effect. The start menu is always the same. Any ideas on how to change that?

PS. is there any way to build into the start menu MUI page a checkbox that determines if the shortcuts be made for all users or just the current user?


Here's the script I've been working on, in case it's easier to just have a look.


Try latest CVS version for the problems with $MUI_TEMP. As for not being able to customize start menu I don't see any problem. The texts you have entered show up on the white frame on the top.

There is no way to build another checkbox into the StartMenu page.

BTW, you need to remove the page defines and only use macros to insert pages.