Archive: Order of Start Menu Shortcuts


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? :igor:


You need enumusersreg.nsh.

As for Start Menu2... No idea there. Tried google?


I'm guessing "Start Menu" is the 2000 style start menu (hidden items) and "Start Menu2" is the XP style


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.