Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Desktop Link
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00394305
Message ID:
00395336
Views:
10
>>>Hi, I need to create a desktop link to a VFP5 application as part of the user's installation for the application. I don't see any options in the Setup Wizard to permit this. Is there a way to do this in Setup or in the application project?
>>
>>No, not without a post setup executable. The setup program used by the setup wizard is a 16 bit application. As such it creates the short cuts using the DDE interface with the program manager, and can't retrieve the desktop folder, etc.
>>
>>The easiest way to do this, provided the Windows Script Host is installed, is to use the WScript.Shell object's methods to create the short cut link. If the WSH isn't available, my LNKFILES.DLL (in Files under Win32 and Other APIs) can do this from a post setup executable. The DLL comes with a help file with all the examples in VFP.
>
>George, Please forgive my ignorance, but I'm not familiar with the Windows Script Host. What is it and why wouldn't it be on all Win 95,98 and NT machines (you said ... provided the WSH is installed ...)
>
Allan,

Not to really add anything to what Ed told you, but to simply say that the WSH makes a number of possible rather easily from with VFP that previously either couldn't be done directly (like short cut links) or that took a good deal of code to accomplish. Since it provides quite a number of high useful properties and methods, it deserves serious consideration. I think you'll come to the conclusion, as I did, that it needs to be part your toolset.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform