03-22-2006 07:05 PM
03-23-2006 05:21 PM
03-23-2006 05:55 PM
03-24-2006 04:43 PM
03-24-2006 04:59 PM
05-22-2006 11:30 AM
Dear Wendy L.,
I tried your simple example and LaunchExecutableEx() does indeed wait for the execution of notepad to finish. I then modified your program to run notepad, then wordpad, and then notepad again and each time the program spun waiting for the executable to finish before starting the next executable. However, if you substitute the "setup.exe" program from a CVI Distribution Kit it does not wait. At least, our application's setup.exe does not wait. It initially returns a "0" status but eventually returns a "1" indicating the setup.exe finished installing. Meanwhile the Distribution Kit is still running. We are trying to create a simple CVI application that installs three different CVI Distribution Kits sequentially. Instead of running them squentially as we want, our application runs the first then the second and then the third -- all three of them run concurrently.
Is this because the setup.exe programs are 16-bit executables? The CVI help page on LaunchExecutableEx() specifically states that LaunchExecutableEx() will fail to work if the launched application is a 16-bit application. This would explain why the setup.exe programs do not work (do not run to completion before returning).
Do you know some way that I can get setup.exe to work properly with LaunchExecutableEx()?
-- Don
05-22-2006 06:14 PM
05-23-2006 05:16 AM
I think you're right about setup.exe finishing quickly. I read that "setup.exe" only checks for the presence of the msi program in the operating system and installs it if it is missing (for Win95/98 and Win2K). I think it then kicks off the install using msi and returns. That would explain the behavior we've observed Today I will try to check on starting the msi program instead of setup.exe to see if that solves our problem. Thanks for the tip, Colin. I'll post my results soon.
-- Don
05-23-2006 10:08 AM
05-23-2006 08:22 PM