Then don't fully automate it - just ask the user what to do. As suggested, it can guide them through removing any old / wrong version and install the correct one BEFORE rebooting...
Then don't fully automate it - just ask the user what to do. As suggested, it can guide them through removing any old / wrong version and install the correct one BEFORE rebooting...