• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

Batch file to Uninstall Symantec Corp Ed 9 and install Epolicy Orch 3.5

Hello all,

My batch writing skills just plain suck. I'm trying to create a batch file that will uninstall Symantec Corporate Edition 9.0 and install McAfee Epolicy Orchestrator client  3.5. I'll attach what I currently have, but i keep getting a message indicating that the path was not found for the Symantec uninstall. Like I said earlier my batch writing skills suck and desperately need help.

Thanks.

 rem echo on

IF EXIST "C:\Program Files\Symantec AntiVirus\RTVSCAN.EXE" msiexec.exe /qn /uninstall /promptrestart <848AC794-8B81-440A-81AE-6474337DB527>  

pause

IF NOT EXIST "C:\Program Files\Symantec AntiVirus\RTVSCAN.EXE" Else Echo No

REM command msiexec.exe /q/x <848AC794-8B81-440A-81AE-6474337DB527>

rem pause

rem Echo Uninstalling Symantec Antivirus Client from Workstation

rem pause

rem IF EXIST "C:\ePOAgent\FRAMEWORKSERVICE.EXE" ELSE GOTO END_BATCH

rem IF NOT EXIST "C:\Windows\System32\ePOAgent\NAIMAS32.EXE" ELSE ECHO naimas32.exe missing

rem pause

rem \\servername\0409\FRAMEPKG.EXE /FORCEINSTALL /INSTALL=AGENT /s


rem pause
rem :END_BATCH




0
dafault
Asked:
dafault
1 Solution
 
oBdACommented:
Assuming your syntax for the uninstall/install is correct, try something like that; the lines that actually do the work are currently commented out (note that the program's GUID needs to be enclosed in curly brackets, "{}"):

@echo off
if not exist "C:\Program Files\Symantec AntiVirus\RTVSCAN.EXE" goto EndSymantec
REM start "" /wait msiexec.exe /x {848AC794-8B81-440A-81AE-6474337DB527} /qb
pause
:EndSymantec

if exist "C:\ePOAgent\FRAMEWORKSERVICE.EXE" goto EndMcAfee
REM \\servername\0409\FRAMEPKG.EXE /FORCEINSTALL /INSTALL=AGENT /s
pause
:EndMcAfee
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now