Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to uninstall from command line?

299 views
Skip to first unread message

David Pham

unread,
Dec 30, 2002, 6:24:30 PM12/30/02
to
Hi,

I need to uninstall my msi project my commandline (assuming I don't have the
original msi file). Something equivalent with going into Add/Remove
program. What is my command line shoud be?

Thanks for you help,
David


Torgeir Bakken (MVP)

unread,
Dec 30, 2002, 6:46:35 PM12/30/02
to
David Pham wrote:

> I need to uninstall my msi project my commandline (assuming I don't have the
> original msi file). Something equivalent with going into Add/Remove
> program. What is my command line shoud be?

Hi

msiexec /x <The product's 32-bits GUID>


--
torgeir
Microsoft MVP Scripting and WMI
Porsgrunn Norway


David Pham

unread,
Dec 30, 2002, 7:26:51 PM12/30/02
to
I tried msiexec /x <GUID>. The behavior is slightly
different from going through the Add/Remove. With msiexec
I get the following message
"Are you sure you want to uninstall this product?"

But with Add/Remove program, I get
"Are you sure you want to remove <my project name> from
your computer?"

How do I get the message from command line to be the same
as if I were going through Add/Remove?

Thanks,
David

>.
>

Chris Gouge [MSFT]

unread,
Dec 31, 2002, 6:42:56 PM12/31/02
to
"Add/Remove Programs" generates the "Are you sure you want to remove <project>
from your computer?" message before invoking the uninstall operation, it is not
generated by the Windows Installer. To generate a similar message, you will have
to do it manually before invoking MSI as well.

-Chris Gouge
Microsoft Windows Installer Team

This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.asp>
"David Pham" <dkp...@att.net> wrote in message
news:096b01c2b063$508cc990$8af82ecf@TK2MSFTNGXA03...

Bryan

unread,
Jan 6, 2003, 9:01:38 PM1/6/03
to
Is it possible to *silently* uninstall from the command line? Using the /x
option always prompts. Is there another option to eliminate that prompt?


"Chris Gouge [MSFT]" <cgo...@online.microsoft.com> wrote in message
news:#9mQRZSsCHA.2596@TK2MSFTNGP12...

Torgeir Bakken (MVP)

unread,
Jan 7, 2003, 7:04:30 AM1/7/03
to
Bryan wrote:

> Is it possible to *silently* uninstall from the command line? Using the /x
> option always prompts. Is there another option to eliminate that prompt?

Hi

Take a look at the /q switch

Windows Installer Command Line Options
http://msdn.microsoft.com/library/en-us/msi/setup/command_line_options.asp

I usually use to get a progress bar

/qb-


If you have Windows Installer 2.0 installed, you can remove the Cancel button by
adding a !, like this:

/qb-!


A completely silent uninstallation (no UI at all, no progress bar etc.):

/q as well as /qn

0 new messages