/build/static/layout/Breadcrumb_cap_w.png

Create URL shortcut using Installshield 2009

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

Answers (2)

Posted by: anonymous_9363 11 years ago
Red Belt
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.

Posted by: glsanod 11 years ago
White Belt
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?

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ