Create shortcut in Quick Launch toolbar

  • Thread starter Thread starter Bob Dankert
  • Start date Start date
B

Bob Dankert

Is there a way to have my .NET installer create a shortcut to my application
in the Quick Launch toolbar? I would like to have a method that works with
pretty much all dotnet operating systems.

Thanks!

Bob Dankert

(This post is also posted in microsoft.public.dotnet.framework.setup,
reposted here as I do not beleive that newsgroup is msdn managed)
 
Hi Bob!

Is there a way to have my .NET installer create a shortcut to my
application
in the Quick Launch toolbar? I would like to have a method that works
with
pretty much all dotnet operating systems.

First you have to read this:
http://blogs.gotdotnet.com/raymondc/PermaLink.aspx/441c4836-e2ef-4088-bc06-936d41886fbc

If you still want to use the feature then you can create a link using
COM/Interop and "Windows Script Host Object Model":

Dim wshShell As IWshRuntimeLibrary.IWshShell_Class
wshShell = New IWshRuntimeLibrary.IWshShell_Class
Dim shortcut As IWshRuntimeLibrary.IWshShortcut_Class
shortcut = CType(wshShell.CreateShortcut("c:\test.lnk"), _
IWshRuntimeLibrary.IWshShortcut_Class)
shortcut.TargetPath = "C:\irgendeinedatei.txt"
shortcut.Save()

See documentation:
http://msdn.microsoft.com/library/en-us/script56/html/wsObjWshShortcut.asp

Another 2 ways to create links:
http://vbaccelerator.com/article.asp?id=4301
http://www.msjogren.net/dotnet/eng/samples/dotnet_shelllink.asp

Then have to retrieve the user's Application Data folder (using
Environment.GetFolderPath(), append "Microsoft\Internet Explorer\Quick
Launch" to the path and create a shortcut to your application there.

Cheers

Arne Janning
 
Thanks a lot for the reply. I have previously read that article.
Unfortunately, this program is a custom program we are designing for another
company, and they insist it go in the quick launch tray.

Thanks for the help!

Bob
 
Hi Bob,

Do you still have any concern about the issue? Please feel free to post
here.
Based on Arne's suggestion, if we add the shortcut file into the folder
below, it will apprear in the quick launch bar.

Then have to retrieve the user's Application Data folder (using
Environment.GetFolderPath(), append "Microsoft\Internet Explorer\Quick
Launch" to the path and create a shortcut to your application there.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
I'm sorry, I did not clarify that I did resolve the issue with the help of
these posts. Thanks a lot for all of the help!

Bob Dankert
 
Back
Top