views:

334

answers:

2

I'm using the excellent Innosetup installer and I notice that some Applications (often from Microsoft) get installed with their launch icon already highly visible ('pinned?' ) in the start menu (in Windows 7). Am I totally reliant on the most-recently-used algorithm for my icon to be 'large' in the start menu, or is there a way of promoting my application from the installer please? Thanks, Brian

+2  A: 

Have a look at: http://blogs.technet.com/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx

Mark Redman
and as noted in that article, there is a reason that there is not an API for pinning directly. Please don't spam the desktop/taskbar/startmenu/etc.
James Deville
+6  A: 

There's a reason there's no programmatic way to pin things to the taskbar/start menu. In my experience, I have seen the start menu highlight newly-created shortcuts, and that's designed to handle exactly this situation. When you see a newly-installed program show up on the start menu, it's probably because of that algorithm and not because the installer placed it there.

That said, if a new shortcut does not appear highlighted, it may be because the installer extracts a pre-existing shortcut and preserves an old timestamp on it, rather than using the API function to create a shortcut in the start menu.

jleedev