|
-
Feb 3rd, 2006, 04:44 PM
#1
Re: how to update an existing desktop shortcut?
well i've got no explanation for that. what OS are you using, I'm running XP.
Perhaps you should just check for the shortcut, delete it and then make your new one.
-
Feb 6th, 2006, 01:29 PM
#2
Thread Starter
Fanatic Member
Re: how to update an existing desktop shortcut?
I am also running WinXP, but I was installing my app on a Win2000 OS. I don't think that would make any difference.
Deleting one and then making a new one would be accaptable. Is this the correct whay to do that?
VB Code:
If strLinkName = "Agent Prospecting Presentation" Then
Kill "c:\MyWestfieldPresentation\Westfield_1to1F_v1.exe"
Else
strLinkName = "Agent Prospecting Presentation"
strLinkPath = "c:\MyWestfieldPresentation\Westfield_1to1F_v1.exe"
strLinkArguments = ""
fPrivate = True ' Add shortcut to desktop.
strGroupName = "..\..\Desktop"
sParent = "$(Programs)"
fSuccess = fCreateShellLink(strGroupName & vbNullChar, strLinkName, strLinkPath, strLinkArguments & vbNullChar, fPrivate, sParent)
End If
He who never made a mistake never made a discovery?
-
Feb 6th, 2006, 01:49 PM
#3
Re: how to update an existing desktop shortcut?
That would delete your .exe. You just want to delete the link on the dektop 'Agent Prospecting Presentation.lnk'
Presumably you'd have to find the location of the user's desktop first, so you can kill the link - Finding Special Folders
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
|