If I uninstall the application via the Control Panel
everything works fine.
If I run msiexec using the syntax above, it leaves files
in the Application Folder. When I try to reinstall I run
into all sorts of problems.
How should msiexec be used to uninstall software correctly?
Thanks!
Ruidong [MS]
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2001 Microsoft Corporation. All rights
reserved.
--------------------
>>Content-Class: urn:content-classes:message
>>From: "Philip Martin" <garg...@nospam.com>
>>Sender: "Philip Martin" <garg...@nospam.com>
>>References: <0ebf01c27f86$17098400$3aef2ecf@TKMSFTNGXA09>
<eoEvlj4fCHA.2284@tkmsftngp11>
>>Subject: Re: msiexec /q /x does not remove all files
>>Date: Tue, 29 Oct 2002 12:31:08 -0800
>>Lines: 30
>>Message-ID: <102001c27f8a$1cc4a920$2ae2...@phx.gbl>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="iso-8859-1"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>>Thread-Index: AcJ/ihzEwnrI51PMQvCSpNDgqCV09A==
>>Newsgroups: microsoft.public.platformsdk.msi
>>Path: cpmsftngxa09
>>Xref: cpmsftngxa09 microsoft.public.platformsdk.msi:9761
>>NNTP-Posting-Host: TKMSFTNGXA14 10.201.226.42
>>X-Tomcat-NG: microsoft.public.platformsdk.msi
Any ideas? I need to be able to run a script to roll back
my application to an older version if needed. I'm doing
this by using msiexec to uninstall the current version and
then install the old version.
"Philip Martin" <garg...@nospam.com> wrote in message
news:102001c27f8a$1cc4a920$2ae2...@phx.gbl...
"Philip Martin" <garg...@nospam.com> wrote in message
news:0ebf01c27f86$17098400$3aef2ecf@TKMSFTNGXA09...
There is also a machine policy for logging (look up machine policies and the Logging option in
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\Installer). If you turn this on (I think it
needs a reboot to take effect) all installs will produce a log, including your Add/Remove programs.
Comparing your msiexec log with the one from ARP might show some clues.
"Philip Martin" <garg...@nospam.com> wrote in message
news:6e7101c28023$0ac57a80$3bef2ecf@TKMSFTNGXA10...
> Here is how I add the Custom Actions.
> 1) In my Installer project I right click on the project
> and select "View Custom Actions".
> 2) Right click on the Install folder and "Add Custom
> Action"
> 3) Select the Application Folder and add one of my dlls
> which has an installer.
>
> I repeat this action for a couple of dlls in the
> Application Folder and then repeat this for the Uninstall
> actions.
>
> Do these "Custom Actions" require the GUI?
> Also, this seems to leave the files when I don't use
> the /q as well.
>
> I've tried running msiexec with /L*v and looked through
> the logfile but I don't see anything that looks like an
> error.
> >.
> >
--
Regards,
Sajan.
PS: Please don't send me emails, use the news room, so that others also will
be benefited.
"Philip Martin" <garg...@nospam.com> wrote in message
news:0ebf01c27f86$17098400$3aef2ecf@TKMSFTNGXA09...
"Phil Wilson" <phil....@unisys.spamcom> wrote in message
news:#jZLlyDgCHA.1848@tkmsftngp10...
"Philip Martin" <garg...@nospam.com> wrote in message news:uvSFPdEhCHA.1368@tkmsftngp09...
The subkeys under this registry key usually represent applications. Each
application typically has an "UninstallString" registry value that defines
what happens when one uninstalls an application via the registry. If MSI
installed the product, then "msiexec /x {productcode}" is usually entered as
the uninstall string.
However, a setup author has the ability to change this value during install,
simply by editing the registry table. Thus, the only way to know for a fact
what happens when one uses add/remove programs to remove a product is to
look in the registry.
Hope this helps!
Curtis Sawin
"Philip Martin" <garg...@nospam.com> wrote in message
news:O7aagvqhCHA.1960@tkmsftngp08...
This is possible because MSI provides a standard method for uninstalling all
MSI-based products (including advertised applications).
-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.as
p
"Curtis Sawin" <curti...@comcast.net> wrote in message
news:#9sQD6rhCHA.1952@tkmsftngp09...