Home › Forums › General XMetaL Discussion › Is there an automated way to uninstall xmetal 4.6 and install xmetal 5.5 Author? › Reply To: Is there an automated way to uninstall xmetal 4.6 and install xmetal 5.5 Author?
Reply to: Is there an automated way to uninstall xmetal 4.6 and install xmetal 5.5 Author?February 2, 2011 at 5:34 pm
I ran into this same issue but I wanted to unistall any installations, 5.0, 5.1. 5.5 and 6. It’s pretty hard doing it with a batch script unless you have every setup for every possible copy available to the batch script. I wasn’t kind to this idea because we have two remote people, I didn’t want a script potentially having to fetch an entire installer just to uninstall the product. Is the data1.cab required with the uninstall command (setup.exe /s /x /v”qn”)?
pszwec : look in the readme under Silent installer for info on the setup.exe command:
you might want to check the readme files fort older releases to make sure the command is the same:
I ultimately ended up making a little helper tool for handling installation and updates for writers. In the helper tool to uninstall Xmetal I ended up enumerating though the registry keys in:
I match any items that have Xmetal in the DisplayName and then prompt the user to verify to uninstall and then I use the LocalPackage data to call the local msi file to uninstall Xmetal. After the uninstall I then force delete any remaining folders such as the writing tools and stuff.