Re: Uninstall Custom Action not getting called.



Phil,

Further to my last post, I have now got my setup and deployment project
working again. That still leaves my original problem though. Is it likely to
be one of the msiexec command line parameters that caused your suggestion to
fail?

"TheClothCat" wrote:

Thanks for the reply. Unfortunately your suggestion seems to have had a
distastrous effect. When I ran msiexec as suggested it hung with a DOS window
open called something like MSI40 - I can't remember the number.

Now I cannot install or uninstall my software from within Visual Studio or
outside it, even if I do a full rebuild.

Any suggestions?

"Phil Wilson" wrote:

Your setup&deployment project has a ProductCode property. Try the uninstall
like this:

msiexec /x {the product code guid} /l*vx somefile.log

to produce a log of the uninstall. There will be something about whether
there was an attempt to call it. Note that Win32 exes have dependencies that
you might not have installed, like the C runtime support, so it will try to
call it but fail.
--
Phil Wilson
[Microsoft MVP Windows Installer]

"TheClothCat" <TheClothCat@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:67CF6E1F-A02A-44F7-B7E2-F53D10300C09@xxxxxxxxxxxxxxxx
Hi everyone,

I want to run an exe (Uninst.exe) when my software is uninstalled. I have
added the file to the Application Folder in the File System Editor and
added
it as a Custom Action under the Uninstall phase in the Custom Action
Editor,
but it does not get executed when my software is uninstalled, either from
within Visual Studio on my development PC or on a different PC when
installed
from a CD.

I have put debug code in Uninst.exe so I am sure it is not getting
executed.
It is a very simple console app written in C++ for Win32. I got it to work
once on the different PC but it would not do it again.

Stranger still, I changed the Permanent Property of Uninst.exe to be True
and the installer correctly left it in the app's directory. However, after
I
changed it back to False it still leaves it there!

It is almost as if Setup uses a cache and the cache is not working
properly.
I'm using Visual Studio 2003 with SP1.

I'm baffled. Any ideas would be welcome.

Thank you.




.



Relevant Pages

  • Re: IE wont open HTTP pages but will open HTTPS after PeoplePC uninst
    ... I uninstalled PeoplePC and the toolbar. ... > the installer is giving the error "Setup was unable to download ... Did PeoplePC setup IE to use a proxy? ... > There is one more quirky problem since the uninstall. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: How to find a directory exists or not
    ... You're stretching what can be done with a Visual Studio setup project. ... common files folder, and UserLanguageID will be 1033 or 1041 depending on ... Phil Wilson [MVP Windows Installer] ...
    (microsoft.public.dotnet.framework.setup)
  • Re: Uninstalling Using MSIEXEC.EXE Issue
    ... VS 2008 setups aren't quite like this - which VS version is your setup built ... Why are you manually doing an uninstall? ... UpgradeCode is that you can use the Upgrade table to get older versions ... refer to the process with its Windows Installer terminology as a major ...
    (microsoft.public.vsnet.general)
  • building a service application at the same time as desktop app
    ... I've created a setup project for each one as they're in two solutions. ... (Using win installer that comes with ... Is there any way, using what comes with visual studio, that someone ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: creating a setup to install into GAC, where can I find an example?
    ... do you know if it's possible to make the setup program automatically ... uninstall an older version of the same program when you run a newer .msi? ... I would think it's not a stretch to program the installer (custom ... >> in VS.NET that can install the assembly into the GAC? ...
    (microsoft.public.dotnet.framework)

Loading