- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: OnBeforeUninstall event not firing in Basic msi project
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
OnBeforeUninstall event not firing in Basic msi project
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi,
I guess you are talking about Service Installer Project for .NET application where System.
If so, may I know how are you calling the event from Basic MSI ? If not wrong Managed Custom Action ?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @sysadmin-blr,
From the issue description i could get that you are adding .Net assembly which is derived from System.Configuration.Install.Installer and setting property to "Yes".
As mentioned here:
Notes to Inheritors
When overriding OnBeforeUninstall(IDictionary) in a derived class, be sure to call the base class's OnBeforeUninstall(IDictionary)method so that registered delegates receive the event.
Is that added in the .Net assembly you had added here?
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @sysadmin-blr,
I have tried the same and it seems to work as expected.
As suggested by @Jenifer did you try calling the base class when overriding the OnBeforeUninstall(IDictionary savedState) function.
protected override void OnBeforeUninstall(IDictionary savedState) { base.OnBeforeUninstall(savedState); // Your code goes here // }
Thanks,