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