Software Deployment Question

How do I perform an Install directly after an uninstallation script runs?

01/22/2015 1927 views
I have an uninstall script that I can run to remove unmanaged versions of Forefront AntiVirus. The problem is I don't want to leave my machines exposed without a proper AntiVirus. What I would like to do is figure out a way to include an installation of ESET right after Forefront is uninstalled. Can someone provide some steps on how to modify my uninstallation script to include an installation action? The script I am using was created from the Dell KACE uninstaller wizard. Thanks for your time.
4 Comments   [ + ] Show comments


  • I would suggest that you create a batch file which first runs the uninstaller then runs the installer, and call that from the KACE installer wizard.
  • thanks for your feedback. I used the KACE uninstaller wizard to create the first batch file... which works fine.. next I created the package I want to install and tested it with a separate batch file (like you suggested). What I am asking is how do I modify the KACE uninstaller script to include the details of my installer batch file. Where do you click? what are the steps? thanks.
    • Yes, I understand what you have done, but I am suggesting an alternative solution which does not use the uninstaller wizard.
  • Assuming that your deployment tool (KACE?) can chain installations, in the same way SCCM can do, you could chain the uninstall and new install together so they run after each other.
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • thanks everyone for your time and suggestions on this.

    I was able to figure it all out. I used the software distribution approach to run after forefront was uninstalled.

    Here are the steps I took:

    1) First, I used the Configuration Policy to create an uninstaller of the Forefront AV and assigned it to the computers with Forefront Installed.

    2) Next, I gathered up my ESET installation file. In this case it was an MSI installer file I made from the ESET Configuration server. It allows me to create a configuration and bind it to the ESET installation so my workstations will connect to the ESET server without further configuration.

    3) now in In the KACE dashboad I created a software inventory item for ESET and attached the ESET MSI installation file to it.

    4) In the managed software distributions section of the KACE management dashboard, I created a new managed software installation in which the ESET software inventory item I created is assigned and the label for the forefront computers is included.

    5) Finally, I ran the forefront uninstaller script and let the ESET Managed Software Installer run when the computers KACE agent called home. *note some of the machines required a "force Inventory" to kick off the ESET installation.

All Answers

Create a batch file with the uninstall and install in it.    Zip that up with your AV software.  Create a CIR for the new AV and upload the zip to that.  create a managed distribution using that CIR software and call the batch file as the install command.

Batch file example:  (the "start /wait" will keep the commands sequenced)

start /wait msiexec /x oldAV.msi /qn
start /wait msiexec /i newAV.msi /qn

Let me know if you need more detail on this process

Answered 01/26/2015 by: SMal.tmcc
Red Belt

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ