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

Posted on 2005-05-03
Last Modified: 2010-04-12
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.


 rem echo on

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


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 NOT EXIST "C:\Windows\System32\ePOAgent\NAIMAS32.EXE" ELSE ECHO naimas32.exe missing

rem pause


rem pause

Question by:dafault
    1 Comment
    LVL 82

    Accepted Solution

    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

    if exist "C:\ePOAgent\FRAMEWORKSERVICE.EXE" goto EndMcAfee

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    Synchronize a new Active Directory domain with an existing Office 365 tenant
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now