How to force silently a batch Script to start only after the fisrt one is finished

In my company I would like to use SMS to push a script to uninstall the old antivirus (Trend Micro) and as soon as it is uninstalled install the new antivirus.
I created two small scripts: the first one uninstall the old antivirus, and the second one install the new one. I tried them as .bat files and they are working fine.
The second thing I would like the all process to be silent, so the user won't notice.

Script 1:
@echo off
start
"c:\Program Files\Trend Micro\OfficeScan Client\NTRmv.exe"

Script 2:
@echo off
start
\\AntivirusServer\OFCSCAN\Autopcc

How can I in one script include those 2 small scripts, so it's like the second one starts as soon as the first one is uninstalled, and the all process is silent.
So I can push it to my clients using SMS.

"Somebody suggested me /wait after the first script but that didn't work."

Thanks for your help.
divichITAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MagaduCommented:
I had similar case when I had to uninstall Antivirus then install new one using SMS.
In SMS I created package that contains 2 programs 1  "Uninstall old One", 2  "Install New One"
In the second program I used "Run another program first" option and selected the First program, as the program that SMS   has to run before executing second one.
This was worked perfect, because SMS will not attempt to install New Program is uninstall fails and I got better reporting.

I hope this helps.
0
divichITAuthor Commented:
Thanks Magadu, that really helps.
Would you know how to run these Uninstall and Install silently?
I don't want the users to notice that something is going on.
0
MagaduCommented:
Unfortunately I am not familiar with Trend Micro, but I found this article that may help you to uninstall it unattended.
http://www.experts-exchange.com/Virus_and_Spyware/Anti-Virus/Enterprise_Anti-Virus/Q_23139261.html 

In SMS when you create the program in General tab Set  "Run" to "Hidden" then  checkmark  "Suppress program notification" in Advanced Tab this will hide these programs from the user.

P.S. In most cases running "Setup.exe /?" (install executables name)  shows me parameters for silent install. Usually it's /Q or /S or /Silent  ... or so on.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Shell Scripting

From novice to tech pro — start learning today.