Uninstall event capture?

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Hi, I have a piece of software which I install via the VS.NET 2003 setup
wizard.

What I need to do is when someone unistalls the software from a machine is
remove some data from a database pertaining to the machine the software was
installed on.

Is there an "uninstall event" or something similiar which I can use to
remove this data from the database when the software is unistalled??

Thanks
Mark
 
Add a custom type derived from System.Configuration.Install.Installer to
your project.

Override the Uninstall() method.

I *think* it will be called automatically by the Windows Installer
uninstall process, but you will want to verify. If it is not called
automatically, you may have to add it as a custom action in your setup
project.
 
Thanks Joshua
Joshua Flanagan said:
Add a custom type derived from System.Configuration.Install.Installer to
your project.

Override the Uninstall() method.

I *think* it will be called automatically by the Windows Installer
uninstall process, but you will want to verify. If it is not called
automatically, you may have to add it as a custom action in your setup
project.
 
Back
Top