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
Answers (1)
Please log in to answer
Posted by:
SMal.tmcc
9 years ago
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
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
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