SCCMalfunction Posted March 11, 2015 Report post Posted March 11, 2015 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. Quote Share this post Link to post Share on other sites More sharing options...
SCCMalfunction Posted March 12, 2015 Report post Posted March 12, 2015 Any advice on what I should put in my bat file to create a txt file on the users system so that I can use that file as a detection of bat file running on the system? Quote Share this post Link to post Share on other sites More sharing options...
Jaybone Posted March 12, 2015 Report post Posted March 12, 2015 ...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'm not following exactly what you mean. Dropping the marker file fails, or your detection logic fails to see the marker file? If it's failing to drop the marker, make sure you're trying to put it somewhere that's actually accessible to the process running the uninstall routine. Quote Share this post Link to post Share on other sites More sharing options...
Garrett804 Posted April 9, 2015 Report post Posted April 9, 2015 Why not just call the uninstall in the bat file and then have the next step be the command for the install. For instance: msiexec /x {product ID} /q msiexec /i Newsoftwareversion.msi /q Quote Share this post Link to post Share on other sites More sharing options...
jtaylor7 Posted April 14, 2015 Report post Posted April 14, 2015 I add a line with a reg add statement in it. This allows me to set the detection method on a registry key that I create. Quote Share this post Link to post Share on other sites More sharing options...