Skip to content

Application deployment with Bat file dependency

Featured Replies

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.

  • Author

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?

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

  • 4 weeks later...

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

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.