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:

  1. Uninstalls software A.

  2. Reboots the endpoint.

  3. Checks that software A was uninstalled correctly.

  4. 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.

  5. If software A was uninstalled correctly, copy the following to a temp directory:

    1. Any required installation files for software B.

    2. A script that installs software B.

  6. 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.

  7. Cleans up the temp directory (step 5).

  8. Removes the tag (step 4).