I am using the SHELL command to launch the Novell GroupWise 6.5.5 setup routine to update our GroupWise Client software on a Windows 2000 Network.

I would like to stop the script from running until the setup.exe routine is completed. Once its completed, I want to prompt the user or just reboot the system to enable changes. I cannot find any command line switches for Novell GroupWise 6.5.5, that has a "REBOOT" switch. Therefore, I have to create my own code. I'm stuck on which condition to monitor that would tell me when the setup routine has completed.

Here's a sample of my code.
; Install/Upgrade Novell GroupWise Client Software.
$return = MessageBox("The system has determined that a newer version of GroupWise Software "
+ "is available for your computer. To begin the installation please "
+ "select OK.", "GroupWise Install Routine", 64)

Shell($ClientPathvGW65 + "setup.exe")
;How do I stop the script to wait for the setup routine to complete????

;Prompt user changes will take affect after next reboot.
$return = MessageBox("Novell GroupWise Software Installation is complete. "
+ "Changes will take effect on the next system restart. "
+ "Select OK to restart your system.", "GroupWise Install Routine", 64)

; Reboot system immediately.
;$RC = Shutdown("", "System is being restarted to enable new settings.", 0, 1, 1)