|
-
Jul 28th, 2002, 11:27 AM
#1
Thread Starter
Junior Member
Desktop Shortcut VB5
How do I make a Shortcut of my program to the desktop?
Thanks
Santiago Torres
-
Jul 28th, 2002, 02:49 PM
#2
-= B u g S l a y e r =-
Normally you do that when you distribute your app.
Its done by the installation program that you use.
could you be more specific ?
-
Jul 28th, 2002, 03:23 PM
#3
Thread Starter
Junior Member
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?
-
Jul 28th, 2002, 04:41 PM
#4
-= B u g S l a y e r =-
oh.. I see.. sorry, I'v never used that setup program. I always used Wise.
Have you tried what you suggested yourself?
-
Jul 28th, 2002, 04:42 PM
#5
-= B u g S l a y e r =-
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.
-
Jul 29th, 2002, 05:02 AM
#6
PowerPoster
hi
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|