Uninstall one software product and install a replacement software product with minimal down time
Problem
I need to replace one software product (software A) with a different software product (software B) and minimize the time between the uninstall of software A and install of software B.
A reboot is required after software A is uninstalled and another reboot required after software B is installed.
Solution
Create a script that does the following:
-
Uninstalls software A.
-
Reboots the endpoint.
-
Checks that software A was uninstalled correctly.
-
Tags the endpoint to indicate software A was uninstalled. You can use this tag to track any endpoints that do not uninstall software A correctly.
-
If software A was uninstalled correctly, copy the following to a temp directory:
-
Any required installation files for software B.
-
A script that installs software B.
-
-
Adds a RunOnce registry key that runs the script that installs software B then reboots the machine. This ensures that installation of software B starts immediately after reboot without waiting for the Tanium Client to go online and check for any tasks.
-
Cleans up the temp directory (step 5).
-
Removes the tag (step 4).