Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Installing application in windows start menu
Message
 
To
08/02/2000 02:23:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00328658
Message ID:
00328725
Views:
25
>Is there a way to install my application in the windows start menu during the setup process
>
>thanks.

You have to create a short cut (lnk file) in the Start Menu folder in a post setup executable you can write to be run after the program the setup wizard generates. In order to do so you have to retrieve the name of the folder and then create the link file.

There are two ways of doing this. One is to use my LNKFILES.DLL available in the files download section under Win32 and other APIs here at the UT. The other is to use the Windows Script Host. Since my DLL comes with full documentation on how to do this, I'll demonstrate how to do it using the WSH.
oShell = CREATEOBJECT('WScript.Shell')
lnk = oShell.CreateShortCut('mylink.lnk')
lnk.TargetPath = oShell.SpecialFolders('StartMenu')
lnk.Save()
Since the WSH is part of Win2K and can do much more than this, I'd recommend this technique.

To find out more about the WSH, check Ed Rauh' FAQ on where to get more information here at the UT.
George

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

Click here to load this message in the networking platform