Microsoft KB Archive/176887

From BetaArchive Wiki
Knowledge Base


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

  1. Create a simple project, named MyProj.
  2. Create a new program named Main.prg and add it to the project.
  3. In Main.prg, type the following code:

          WAIT WINDOW "inside " + Program() TIMEOUT 1 QUIT
                                
  4. Build the project into an .exe file name Myproj.exe.
  5. Create a second project to run as the Post-Setup Executable and name it Post.
  6. Create a new program named Postmain.prg and add it to the project.
  7. In Postmain.prg, type the following code:

          WAIT WINDOW "POST: inside " + Program() TIMEOUT 1
          QUIT
                                
  8. Build this project into .exe file named Post.exe.
  9. Create a distribution files folder and place Post.exe and Myproj.exe in the folder.
  10. Run the Setup Wizard.
  11. In Step 3 of the Setup Wizard, select and create Netsetup Disk Images.
  12. In Step 4 of the Setup Wizard, click the "..." button next to the Post-Setup Executable text box and select Post.exe.
  13. Finish running the Setup Wizard.
  14. 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.



Additional query words: Setup Wizard Post-setup kbvfp600fix

Keywords: kbbug kbfix KB176887