Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th February 2010, 21:09   #1
ignacioalex
Junior Member
 
Join Date: Jun 2009
Posts: 4
Order of Start Menu Shortcuts

Hi all,

I'd like to configure the order of the shortcuts created in my application's group in the start menu, since Windows is placing them in alphabetical order instead of following the order defined in my script.

I followed the instructions in this post:

http://forums.shoutcast.com/showthre...postid=2239145

which instructs to write a binary value to the registry:
WriteRegBin HKCU "Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\XYZ" "Order" 00890888003.....

However this does not fully solve my problem, as I would like to configure the menu order for all users of the machine. Simply writing to the HKLM instead of HKCU does not work as expected, so it seems that Windows does not check this key. Is there any other key I could write to that would affect all users of the machine?

I also had to make a slight modification to make it work: in my case the correct key is ...\Start Menu2\... instead of ...\Start Menu\... . How confident should I be that this will work accross all Windows versions?
ignacioalex is offline   Reply With Quote
Old 17th February 2010, 21:17   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,841
You need enumusersreg.nsh.

As for Start Menu2... No idea there. Tried google?
MSG is offline   Reply With Quote
Old 17th February 2010, 23:03   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 2,779
I'm guessing "Start Menu" is the 2000 style start menu (hidden items) and "Start Menu2" is the XP style

IntOp $PostCount $PostCount + 1
Anders is online now   Reply With Quote
Old 18th February 2010, 17:09   #4
ignacioalex
Junior Member
 
Join Date: Jun 2009
Posts: 4
I've successfully used EnumRegUsers.nsh to implement the start menu ordering for all users of the machine. It's still not yet a complete solution, as user accounts created after the application installation won't be affected. Anyway that's a big improvement over the previous solution, as now only such user accounts will have their start menu items messed up. Perhaps we can't completely fix this issue if Windows doesn't check for any key in HKLM.

I had to make a few minor changes to EnumRegUsers.nsh in order to allow using it from uninstaller sections. Maybe these should be useful to others, so I commited them to the wiki page.

You are right about the ...\Start Menu2\... key: ...\Start Menu\... configures the order of start menu items in classic menus, whereas ...\Start Menu2\... configures the order in modern menus.

Thank you very much for your comments.
ignacioalex is offline   Reply With Quote
Reply
Go Back   Winamp 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