FIX: Running VFP Exe as Post-Setup Executable Hangs the Process
ID: Q176887
|
The information in this article applies to:
-
Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a
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.
- In Postmain.prg, type the following code:
WAIT WINDOW "POST: inside " + Program() TIMEOUT 1
QUIT
- Build this project into .exe file named Post.exe.
- Create a distribution files folder and place Post.exe and Myproj.exe in
the folder.
- Run the Setup Wizard.
- In Step 3 of the Setup Wizard, select and create Netsetup Disk Images.
- In Step 4 of the Setup Wizard, click the "..." button next to the
Post-Setup Executable text box and select Post.exe.
- Finish running the Setup Wizard.
- 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 : kbVFp
Version : WINDOWS:5.0,5.0a
Platform : WINDOWS
Issue type : kbbug