>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.