Microsoft KB Archive/176887

= FIX: Running VFP Exe as Post-Setup Executable Hangs the Process =

Article ID: 176887

Article Last Modified on 3/9/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q176887



SYMPTOMS
When you run an .exe file written in Visual FoxPro (VFP) 5.x as a Post- Setup Executable in the Setup Wizard, the wizard does not successfully exit the setup process. The setup process hangs when the Post-Setup Executable is completed and you must use the CRTL-ALT-DEL keys to terminate the setup through the Task Manager.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This has been corrected in Visual FoxPro 6.0.



MORE INFORMATION
This behavior is seen in Windows NT 4.0 Server or Workstation regardless of the version of the Service Pack installed.

To re-create the problem the executable must be a Visual FoxPro executable and Windows NT 4.0 must be the operating system. Other executables, like Notepad.exe, do not cause the problem, nor does the problem occur if the setup program is running on Windows 95.

Steps to Reproduce Behavior
 Create a simple project, named MyProj. Create a new program named Main.prg and add it to the project.  In Main.prg, type the following code: WAIT WINDOW "inside " + Program TIMEOUT 1 QUIT  Build the project into an .exe file name Myproj.exe. Create a second project to run as the Post-Setup Executable and name it Post. Create a new program named Postmain.prg and add it to the project.</li>  In Postmain.prg, type the following code: WAIT WINDOW "POST: inside " + Program TIMEOUT 1 QUIT </li> Build this project into .exe file named Post.exe.</li> Create a distribution files folder and place Post.exe and Myproj.exe in the folder.</li> Run the Setup Wizard.</li> In Step 3 of the Setup Wizard, select and create Netsetup Disk Images.</li> In Step 4 of the Setup Wizard, click the "..." button next to the Post-Setup Executable text box and select Post.exe.</li> Finish running the Setup Wizard.</li> Quit Visual FoxPro and run the Netsetup Setup.exe on an NT 4.0 computer.

NOTE: The Setup program runs the Post-Setup Executable (Post.exe) and you will see "POST: inside Postmain" display in the upper-right corner. However, the setup hangs once the Post-Setup Executable is completed.</li></ol>

Additional query words: Setup Wizard Post-setup kbvfp600fix

Keywords: kbbug kbfix KB176887

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.