Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a Shortcut on the Desktop

Status
Not open for further replies.

BSG75

Technical User
Mar 18, 2005
23
US
I have a Vb application and when i package it to and deploy it to sever users it does not load a shorcut onto the desktop, I would like to know what the code would be to load the icon onto the desktop.
 
I don't know how to make an actual shortcut file, but you can make a URL if you stick this text in a .url file:

[InternetShortcut]
URL=C:\Program Files\MyProgram.exe
 
Are you using the Package and Deployment wizard? If so, I would consider using Visual Studio Installer or Inno Setup instead... search the forum for more info.

If you want to use the PDW, see CajunCenturion's posts here here and here.
 
I am using the package and deployment wizard. I will check on those other applications. So is there anyway to write code in the VB application that would allow me to put the shortcut onto the desktop.
 
So is there anyway to write code in the VB application that would allow me to put the shortcut onto the desktop
Yes, in the first link. But you're better off letting the installer of your choice do that for you.
 
Go to and get the links for Inno Script, (which he wrote) that writes scripts. Then get Inno Setup, from the link.
His vb app will let you build a single .exe as the setup file, and has options to show a shortcut on the desktop.

You'd have to modify the P&D program to include the functionality, and recompile it. Make sure you back it up before trying, though.

-David
2006 Microsoft Valueable Professional (MVP)
2006 Dell Certified System Professional (CSP)
 
Thanks it took me sometime but that Inno program works great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top