uninstall from command line

Got a problem you cannot solve? Try here.
Post Reply
dec
Posts: 5
Joined: Fri Aug 24, 2012 4:33 pm

uninstall from command line

Post by dec »

My customer is having a lot of difficulty uninstalling one of our programs. We'd like to turn on logging to see what's happening, but we can't get the program to uninstall from the command line. From a command shell, I run:

msiexec /x c:\ProgramData\...\myproduct

Windows eventually pops up a dialog that says, "This action is only valid for products that are currently installed". Using the product GUID rather than the install project name gives the same result.

How can we uninstall the program from the command line?

Thanks!

-Dean
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: uninstall from command line

Post by FrancescoT »

Dear Dean,

if you installed your package from a Compressed EXE build, the simplest way it is to run the installer itself once again from CMD line (...it goes in maintenance mode automatically if the same package is found installed).

To log the process use; <setup.exe> /l=<path to logfile>

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
dec
Posts: 5
Joined: Fri Aug 24, 2012 4:33 pm

Re: uninstall from command line

Post by dec »

Thanks! I get a browse dialog that says locate the original setup sources to continue, but just canceling the dialog seems to complete anyway. Is the dialog something to be concerned about?

-Dean
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: uninstall from command line

Post by FrancescoT »

Dear Dean,

When setup sources are not cached, no disk space is wasted on the target system for a copy of the installation files. However, running setup in maintenance mode (other than uninstalling the application) will require access to original setup sources, as will patching setup.

Please have a look to "Always Cache Setup Sources (enables easy patching)" settings in IA documentation.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply