This content has been marked as final. Show 2 replies
I wouldn't mind getting some input on this issue as well.
I have a few applications that continue to run even if you check the Wait for completion box on the escript. Office 2007 is one of those.
I had to put a sleep on the front end of the next application in line in order to not cause it from stopping due to the Office install still running.
This is a lot of trial and error on the sleep time and if your network speed varies at times it can cause problems if the sleep isn't long enough. If you just make the sleep a lot longer than it needs to be you are adding time to the total OS build.
Is there another way to tackle this problem?
if you import the pre-packaged application Office 2007 you will see a fine example of looping based on WMI.
Basically the WMI checks to see if a certain process is active, and waits until the process is finished. This is a lot better than the static sleep.