Pages: 1
Print
Author Topic: Is there an automated way to uninstall xmetal 4.6 and install xmetal 5.5 Author?  (Read 1041 times)
pszwec
Member

Posts: 19


« on: February 02, 2011, 11:04:04 AM »

Maybe with .msi in a batch file?
Logged
gcrews
Member

Posts: 189


« Reply #1 on: February 02, 2011, 11:34:13 AM »

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:
http://na.justsystems.com/files/install-readme.html
you might want to check the readme files fort older releases to make sure the command is the same:
http://forums.xmetal.com/index.php?topic=108.0

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:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData

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.
« Last Edit: February 02, 2011, 11:37:43 AM by gcrews » Logged
LeeHart
Member

Posts: 40


« Reply #2 on: February 07, 2011, 08:27:18 PM »

You may be able to do something like this:
  WmiC Product Where "Name like '%XMetaL%'" Call Uninstall

I don't have XMetaL 4.6 installed to try.

Lee
Logged
gcrews
Member

Posts: 189


« Reply #3 on: February 07, 2011, 08:40:43 PM »

I tried to use WMI to uninstall any instance but spent about 2 hours futzing with code and got no where. I tried very basic code from msdn examples and the code was failing. I tried  some WMI  repair tool to and that didn't help any either. Figured that was not going to be  by any means reliable to    find any uninstallers.

Tried the command on my system:
ERROR:
Code = 0x80041010
Description = Invalid class
Facility = WMI
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1546



WWW
« Reply #4 on: February 08, 2011, 08:25:07 PM »

Please see the following posting. There is a section there on uninstalling using the InstallShield options to create an uninstall script.
http://forums.xmetal.com/index.php/topic,25.0.html

If you wish to use msiexec.exe to uninstall you will need to obtain the "installer GUID" for the specific version you have installed. Information on figuring that out is located here: http://forums.xmetal.com/index.php/topic,526.msg1919.html#msg1919

The msiexec.exe command line documentation (for XP) is located at the following address. The uninstall command switch is "/x".
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/msiexec.mspx
« Last Edit: February 08, 2011, 08:33:31 PM by Derek Read » Logged
Pages: 1
Print
Jump to: