Link to home
Start Free TrialLog in
Avatar of divich
divich

asked on

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.
Avatar of Magadu
Magadu
Flag of Canada image

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.
Avatar of divich
divich

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Magadu
Magadu
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial