The "Exist" is one-time/immediate, so it has to run in the loop. Just so long as you are aware of theh potential for issues if the CMD fails or does not generate the flag file.

Also - creating flag files, especially those that remain on the computer for long periods, is not a good method. With Kix, you should be able to tell if an application's registry key is present - if not, run the installer as a child process. When the child creates the flag, Kix can continue by deleting the flag file and then rebooting. The next time the script runs, it will detect the app's reg key.

Another method is to eliminate the flag file entirely and use SHELL to run the installer CMD file - Kix will wait for it to complete.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D