Hi Guys,

What is best practice when creating shortcuts on the start menu?

I´m using Installshield 2009 and just want to create a shortcut to a webpage on the start menu in Windows 7.

An example would be: (for all users) C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Youtube\Youtube.url

My MSI will create the Youtube folder and shortcut but how about shortcut icon? It seems to me that this can be done in serveral different ways but what is best practice?

If I create a txt-file and edit it with code and then add it to my Youtube folder I don´t know how to add the icon to that file inside the MSI, ho do I do that?

I worked around this by creating a folder under c:\Program Files\Yoututbe\Youtube.url and then created a shortcut in the editor that pointed to the .url, I was then able to point out an icon for my start menu shortcut. Is this the way to do it?

 

 

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

IS creates shortcuts easily enough but for tailoring, look up how to use the Shortcut table on MSDN, specifically the 'Icon_' and 'IconIndex' columns.

Answered 12/03/2012 by: VBScab
Red Belt

Please log in to comment
0

Hi VBScab,

 

I have looked at the Shortcut table but it seems to me that it doesn´t support the url extenstion. http://msdn.microsoft.com/en-us/library/windows/desktop/aa371847(v=vs.85).aspx

 

I suspect that the way to do it is to create an txt-file and save it as an .url-file an add it to a compontent, but how do I associate an icon to this file without having to install the .ico file under a different folder on the target computer. Perhaps there isn´t a way? =)

With Shortcuts I have the Icon File and Icon Index rows to edit but how do I associate an icon to any other file?

Answered 12/07/2012 by: glsanod
White Belt

Please log in to comment
Answer this question or Comment on this question for clarity