Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distribution Disks--Create Desktop Shortcut Automaticall
Message
From
01/03/1999 20:08:29
 
 
To
01/03/1999 19:42:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00192942
Message ID:
00192947
Views:
18
>I am using the setup wizard to create distribution disks (under VFP 6.0). Everything is working well, except that I would like the setup process to create a shortcut on the desktop automatically when the app is installed, if this is possible. Currently, after installing the app, the installer has to go to the Windows Explorer and drag the main exe to the desktop to create the shortcut, and then he has to rename it to establish the proper caption on the shortcut. Is there anyway to get this to happen automatically when the installer installs the app from the distribution disks?
> I have associated an icon with the main .exe in step 6 of the Setup Wizard.

Setup Wizard will not do this by itself; you need to access the IShellLink API. George Tasker has a wrapper .DLL available for download here on UT; since I rely on the Windows Scripting Host for many things, I prefer to use the Wscript.Shell's CreateShortcut method, which requires at least partical installation of the Windows Scripting Host (it's a native part of Win98 and WinNT5, and can be added via a self-extracting .EXE from Microsoft's web site to any of the Win32 platforms.)

In either case, you'll have to code a post-setup executable to perform the work of creating the Desktop shortcut. Alternatively, you can use a different installer that has a native capability to create shortcuts on the desktop (InstallShield Pro can do it, as can Wise and several others. I use InstallShield for the vast major of my install tasks because of the completeness of the scripting language and a number of years experience with it, it is not cheap, and there is a significant learning curve to the product.)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform