Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Show App Name in Program Group of Start menu
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00059847
Message ID:
00059911
Views:
29
>How can I put my application exe filename to the Program group of the Start menu after the setup wizard has been completed ? I want this process to be done programmatically. Is it related to editing the registry ? If yes, what can I do to edit the registry to add my application exe filename ?
>
>Another question is: How can I instruct Win95 to restart automatically after the setup wizard has been completed ?
>
>
>Thanks a lot,
>Regards,
>Andi Hidajat
>pkshq@cbn.net.id

This may depend on the version of VFP you're using. In 5.0, you can add the items for the program group in the Setup Wizard. However, if I recall correctly, 3.0 is different. I haven't had much experience there, so what I'm about to tell you is based on FPW 2.6.

You have the option to run a program after the Setup Wizard completes its work. You can, using the command string interface with the Program Manager (and this applies to Win 95 as well), instruct it to add, create, and otherwise modify by groups and items in it. You can find out more about this interface at the Micrsoft site (search the Knowledge base for PROGMAN). Both the Win 3.1 and Win 32 SDK help files contain information that applies. Another source of information on this topic is an article I wrote that appeared in the April '97 issue of FoxPro Advisor.

In regards to your question regarding re-starting Windows, in VFP under Win 95, you can use:

DECLARE SHORT ExitWindowsEx IN Win32API;
SHORT uFlags, INTEGER dwReserved

with the syntax:

= ExitWindowsEx(2, 0)

This will cause the computer to re-start Windows. Note, however, that there is no opportunity provided for the user to abort this process. This function cannot be used in Win 3.1 since it would require that FOXTOOLS be loaded by the program to be run after the Setup is completed. Unfortunately, this can't done.

hth,

George
George

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

Click here to load this message in the networking platform