Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling wizard functions
Message
From
06/02/2000 16:19:08
 
 
To
06/02/2000 16:06:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00328090
Message ID:
00328093
Views:
23
>hello!
>
>the first time i tried to use the setup wizard it showed that user's of my application can change the default directory where the files would be installed. Is there a way to diable this function because if the directory would change then my application would not function.
>for example this code "do c:\pleasure\main.mpr". If the user would not install the file in the directory "pleasure" then that code would produce an error.How can I prevent this?
>

(1) Don't hardcode paths in your application. Instead, put code in locations searched as a part of the VFP path specified by SET PATH; by not hard-coding a path, you are not tied to an absolute location.

(2) You can disallow user specification of the path and program group by the Setup Wizard install byusing one of several command line switches; to list them, run your setup with the /? argument.
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
Reply
Map
View

Click here to load this message in the networking platform