Re: Uninstall Custom Action not getting called.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



It's not likely, no. People do uninstalls with logging all the time. Your
system might have an issue. Is your Win32 program a console app? If it is,
that's where the command prompt window is coming from. It's showing that
and then your app can't run.
My vote is still dependencies. If you haven't got the c run time available
then your program won't load. Visual Studio 2005 C++ apps require sxs 8.0
CRT or statically linked. That's why setup projects have a prerequisites
option to install the redist.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"TheClothCat" <TheClothCat@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:50DD2F27-B21D-4641-BD15-941D50E22227@xxxxxxxxxxxxxxxx
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: Uninstall Custom Action not getting called.
    ... My Win32 program is a console app which explains the command prompt window. ... This must mean there is something different about the Uninstall phase. ... Definitive Guide to Windows Installer ...
    (microsoft.public.vsnet.setup)
  • Re: Uninstall Custom Action not getting called.
    ... [Microsoft MVP Windows Installer] ... When I run the console app as custom action after the Install or Commit ... This must mean there is something different about the Uninstall phase. ...
    (microsoft.public.vsnet.setup)
  • Re: How to best communicate with Microsoft about the difficulties of uninstalling the 2007 Office sy
    ... the "uninstall" is supposed to be the automated removal tool...which doesn't always work as intended. ... In my past dealings with folks from Microsoft, I think there are a lot of really smart people who have way too many priorities and PR issues to deal with. ... Automation would be great, though it's always dangerous to automate stuff when you don't know the configuration of everyone's particular system, and the risk of toasting something is pretty high. ... it would be great if the Windows Installer Cleanup Utility would be updated to support Office 2007. ...
    (microsoft.public.office.setup)
  • Re: Windows XP upgrade...virus?
    ... If I could just get Norton uninstalled! ... Needed to uninstall Easy CD Creator, ... > uninstall all of Norton first, and all other virus and system-like software. ... >> When I try to install most everything, I get a Windows Installer ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Removingr UNWISE.EXE from my XP Home Edition.
    ... Microsoft CDO for Windows 2000. ... Click "uninstall Ad-Aware" in the Lavasoft folder of your start menu ... Then you'll have to post here and ask, "How do I uninstall Ad-Aware SE ... Inno Setup is a free installer for Windows programs. ...
    (microsoft.public.windowsxp.perform_maintain)