Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setup Wizard and Shortcut Start In path
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00243024
Message ID:
00243032
Views:
32
>The setup wizard allows for the user installing an app to specify a directory for installation, ex. C:\ABC. However the Start In directory defaults to C:\. Is there anyway to default this during creation of the distributed application like the install path?

No, but you could write a post-setup executable that goes out, reads the shortcut's Target path, pulls out the desired Starts In path detail and rewrites the information into the shortcut. The Windows Scripting Host's Wscript.Shell automation object has a CreateShortcut method that will allow you top rea from and write to a shortcut's properties. You migth explore installing it and making use of the automation object. WSH is a bse part of Win98 and WIn2K, and can be added to Win95 and WinNT at SP3 or later using the self-installing executable that can be downloaded from msdn.microsoft.com/scripting; it's also installed as an optional component of IE 4 anbd IE 5, and as a part of IIS (and possibly PWS as well.)

George Tasker's LNKFILES.DLL which can be downlaoded from here on UT may have similar capabilities; his .DLL is the most complete implementation of the IShellLink interface that I'm aware of for VFP other than the WSH automation option. You'll have to check to see if it will permit both reading and writing values.
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