Trying to deploy a new version of a software via an msi but I have to remove the previous version of the software via a bat file. The previous versions can't be upgraded so have a bat file that will remove all previous versions.
My problem comes with trying to deploy the bat file as an application and selecting a detection method. I tried to xcopy or even create a txt file on the system with the uninstall bat file but it fails. I have seen some people recommend using packages for deploying bat files but I can't set the application dependency on the package. Any advice will be greatly appreciated.