Re: Uninstall Custom Action not getting called.

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



p.s. Once you mark a file as permanent, it really does mean permanent! It's
intended for files that must remain on the system, not just until you change
Permanent to false in your setup.
--
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: VS2005 Setup Project File with Property Permanent is uninsta
    ... the permanent property set as it was not what I was expecting. ... but then ran your new installer to try and uninstall it? ... Now when I uninstal it leaves the config file behind. ... I understand you've built a setup project which set ...
    (microsoft.public.dotnet.general)
  • Re: removing permanent installed files
    ... Your new setup has nothing to do with the fact that the files were marked ... Permanent means they won't be uninstalled by ... Windows Installer, and that's what the VS docs say too. ... > each time i try to uninstall the application all the permamanet files do ...
    (microsoft.public.dotnet.framework.setup)
  • Re: removing permanent installed files
    ... > permanent in an old setup. ... Permanent means they won't be uninstalled by ... >> each time i try to uninstall the application all the permamanet files do ... but it seems to be written to the registry, ...
    (microsoft.public.dotnet.framework.setup)
  • RE: VS2005 Setup Project File with Property Permanent is uninsta
    ... output and the config file separately, marked the coinfig file as permanent ... Now when I uninstal it leaves the config file behind. ... I understand you've built a setup project which set ... at uninstall time, however, you found the file still got removed, correct? ...
    (microsoft.public.dotnet.general)
  • RE: VS2005 Setup Project File with Property Permanent is uninstalled
    ... at uninstall time, however, you found the file still got removed, correct? ... setup project and set some files ... tried a simple setup (or try mark other files to permanent) to see whether ... In the Setup Project File System designer I ...
    (microsoft.public.dotnet.general)