#155499 - 2006-01-17 03:34 PM
SHELL Command (When a setup program has completed)
|
Marc_Dufresne
Fresh Scripter
Registered: 2004-04-07
Posts: 5
|
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)
|
|
Top
|
|
|
|
#155505 - 2006-01-17 04:08 PM
Re: SHELL Command (When a setup program has completed)
|
Radimus
Moderator
   
Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
|
You may also to a process check, if there are no silent install commands.
do a manual install, while installing look at your processes, see if you can find setup.exe or issetup.exe, or whatever it is using.
then for scripting purposes...
shell '... ' sleep 5 while EnumProcess("setup.exe") sleep 2 loop $RC = Shutdown("", "System is being restarted to enable new settings.", 0, 1, 1)
|
|
Top
|
|
|
|
#155506 - 2006-01-17 04:12 PM
Re: SHELL Command (When a setup program has completed)
|
Marc_Dufresne
Fresh Scripter
Registered: 2004-04-07
Posts: 5
|
That's exactly what's happening. I will continue to see if the GroupWise Setup.exe has additional switches that support wait.
So far, I've come up dry.
|
|
Top
|
|
|
|
#155508 - 2006-01-17 05:51 PM
Re: SHELL Command (When a setup program has completed)
|
Marc_Dufresne
Fresh Scripter
Registered: 2004-04-07
Posts: 5
|
This while loop and the EnumProcess Function did the trick. Thanks Man!!!!
shell '... ' sleep 5 while EnumProcess("setup.exe") sleep 2 loop $RC = Shutdown("", "System is being restarted to enable new settings.", 0, 1, 1)
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|