/build/static/layout/Breadcrumb_cap_w.png

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

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. - EdT 9 years ago
  • 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. - threedo 9 years ago
    • Yes, I understand what you have done, but I am suggesting an alternative solution which does not use the uninstaller wizard. - EdT 9 years ago
  • 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. - dunnpy 9 years ago
  • 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. - threedo 9 years ago

Answers (1)

Posted by: SMal.tmcc 9 years ago
Red Belt
0
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

 
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