Jump to content

Command Line Parameter for Removal through Batch File


Recommended Posts

I have a batch file that I am creating to auto remove the following products:

#1:  ESET Management Agent

#2:  ESET EndPoint Antivirus

The following command line works, but it repairs the existing product, it does not remove it:

msiexec /i "C:\ProgramData\ESET\ESET Security\Installer\eea_nt64_enu.msi" /qb! PASSWORD="password123"

I just need the last parameter that goes with the "REMOVE" option; for example:

msiexec /i "C:\ProgramData\ESET\ESET Security\Installer\eea_nt64_enu.msi" /qb! PASSWORD="password123" REMOVE=Eset Management Agent, ESET Endpoint Antivirus

Link to comment
Share on other sites

  • Administrators

If you run "msiexec /?" you'll get a list of possible parameters:

Install Options
    </package | /i> <Product.msi>
        Installs or configures a product
    /a <Product.msi>
        Administrative install - Installs a product on the network
    /j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
        Advertises a product - m to all users, u to current user
    </uninstall | /x> <Product.msi | ProductCode>
        Uninstalls the product

In particular, you'll need to use the /uninstall parameter followed by the appropriate GUID which is unique for each product and version. The exact value can be found in the registry.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...