Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can not Change Destination Directory
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00092787
Message ID:
00092821
Views:
23
>I have followed step by step the procedure to make my own setup installation program, but I have problems :
>
>1. After the setup wizard done, I try to install the program and I change the destination directory, after that I run the program but the error come out, the error will not come out if I use the default directory.
>
>2. The Program does not exist in the shortcut menus, why ?
>
>3. I want windows automatically load my program, how to do this ?
>
>thanks and good luck ....

First, there's a bug in the original setup wizard that came with VFP 5.0. If you haven't updated it from the MS site, you should do so. I don't know if this is causing the directory problem, but it may be.

Make sure that the "PM Item" check box is checked (Step 6) for the application. I'm not exactly sure how to create a desktop icon, but if no item is checked there won't be an item in the Start Menu.

There are two ways to get a program to load when Windows 95 starts. One, and probably prefereable, is to install the item in the Startup group. The other way is to add the item to the LOAD= line in the WIN.INI file, in the [windows] section. Either can be done programmatically in a program you create to be run after the setup program (there's a post setup executable file you can specify in Step 4).

To install another copy of your program in the Startup folder, you can initiate a DDE conversation with the Program Manager. I wrote an article on how to do this in the April, 1997 issue of FoxPro Advisor.

Adding the information to WIN.INI can be done through the Windows API calls, GetProfileString() (so that the current contents aren't completely removed) and WriteProfileString().

hth,
George

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

Click here to load this message in the networking platform