How do I make a Shortcut of my program to the desktop?
Thanks
Santiago Torres
Printable View
How do I make a Shortcut of my program to the desktop?
Thanks
Santiago Torres
Normally you do that when you distribute your app.
Its done by the installation program that you use.
could you be more specific ?
I am using the instalation program that came with VB5.
Do I just copy a shortcut to the files included in my app and as destination $desktop$?
or
how do I tell the instalation program to creat a short cut in the desktop?
oh.. I see.. sorry, I'v never used that setup program. I always used Wise.
Have you tried what you suggested yourself?
btw, from what I can remember, the 'Setup program' that came with vb5 was not too good... ??
you could always use Inno Setup , which is free, and can do proper setups. :)
Not very sure you need this but just in case, you can make a shortcut through your code. Place it in the runonce reg.
Add a refernce to windows scripting host.
Here's the code:
Code:DesktopPath = oShell.SpecialFolders("AllUsersDesktop")
Set MyShortcut = oShell.CreateShortcut(DesktopPath "\MyApp.lnk") ' Set shortcut object properties and save it
mPath = App.path & "\" & app.EXEName
MyShortcut.TargetPath = mPath
MyShortcut.WorkingDirectory = App.Path
MyShortcut.Save