How do I write a batch file to uninstall an application and install a new version of it?
I am using a CAD application which will have monthly updates. For updating, we need to uninstall the current version and install new version which will come with the new patch.
I would take a look at using a proper installer to do the job: you can use something free like NSIS to help you build something to meet your needs. It will take a little up-front work but the results will be far more professional and robust that a batch file.