Page 1 of 1 1
Topic Options
#132314 - 2005-01-13 01:07 AM Script continues before shell command completes
Ryan Dao Offline
Fresh Scripter

Registered: 2003-03-09
Posts: 45
I have the following shell command to install a new verstion of Symantec Antivirus. The setup starts but the script continues before the Shell command completes. Any idea?
Thx

Ryan
Code:
  


? "Upgrading SAV"

Shell '%COMSPEC% /C setup.exe /s /V"/l*v C:\IT\SAV902.log RUNLIVEUPDATE=0 REBOOT=ReallySuppress ADDLOCAL=SAVMain,SAVUI,SAVHelp,EMailTools,OutlookSnapin,Pop3Smtp,QClient /qb!"'

?
? "Completed. Thank You."

sleep 2

exit
Code:
  



Top
#132315 - 2005-01-13 01:11 AM Re: Script continues before shell command completes
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
This is the nature of the setup.exe. It spawns a detached process from that of the parent that started it.

try:

Shell '%COMSPEC% /start /wait setup.exe /s /V"/l*v C:\IT\SAV902.log RUNLIVEUPDATE=0 REBOOT=ReallySuppress
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#132316 - 2005-01-13 01:29 AM Re: Script continues before shell command completes
Ryan Dao Offline
Fresh Scripter

Registered: 2003-03-09
Posts: 45
Thanks...That get me to the command prompt, the script pauses there until I close it or type exit. Any other idea?
Thanks,
Ryan

Top
#132317 - 2005-01-13 01:50 AM Re: Script continues before shell command completes
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Why do you even use %COMSPEC%? It's not like SETUP is a DOS proggy! If SAV uses InstallShield, you could try the -SMS switch.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#132318 - 2005-01-13 02:06 AM Re: Script continues before shell command completes
Ryan Dao Offline
Fresh Scripter

Registered: 2003-03-09
Posts: 45
The -SMS switch is for msi files right? I have to use setup.exe cause it will automatically upgrade MS Installer if needed then it calls the msi file. Is there is a way to use -SMS with setup.exe please show me.
Thx.
RD

Top
#132319 - 2005-01-13 02:48 AM Re: Script continues before shell command completes
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
http://www.installshield.com/news/newsletter/0206-articles/LaunchIS5Setup.asp
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#132320 - 2005-01-15 04:09 PM Re: Script continues before shell command completes
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Any reason why you cannot use the Symantec Packager that comes with SAV CE? That is the preferable way to deploy and configure SAVCE.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1574 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.074 seconds in which 0.041 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org