Archive: Manipulating Shortcut Position


Manipulating Shortcut Position
Is it possible to manipulate the position of shortcuts? I would like to have all sub directories at the top and all shortcuts below the sub directories.

It seems that the installer creates the shortcuts alphabetically.


I think the case is that your installer creates the shortcuts in the order that your script tells it to, but Windows displays them how it wants to.

There may be some way to have Windows change the position, but I don't see anything in the MSDN IShellLink docs that is relevant.


Windows handles the order of the shortcuts.
No matter what order they are created by the installer, they will appear in alphabetical order under the start menu. Only the user can change the order.

-Stu


No, you can set the order by setting certain registry values.


as in:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2\Programs\somethinghere

One can reverse the format if one is persitant. I do not know at the moment ;) since I have no need to reorder items.


Ah yes of course. Perhaps I'll have a look at it later and see what I can put together. Not very common requirement to set order, but people have asked in the past.

-Stu


One can reverse the format if one is persitant. I do not know at the moment ;) since I have no need to reorder items.
Format is not a problem. That's easy.

And registry plugin can read/write binary type values.

But there are other problems, one is NSIS related, the other is not:
1. String will be too long for NSIS to handle.
2. You need to reboot the system for the changes to take place.

Seems like too much trouble for such trivial thing.

you dont need to reboot, you need to kill explorer.exe, but its a nasty hack no matter how you do it