Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Force shutdown/logoff uninstalls the component although exception is raised in the uninstaller

7 views
Skip to first unread message

techb...@gmail.com

unread,
May 3, 2016, 1:15:28 PM5/3/16
to
Hi,

We have components created in .Net and installed in user systems. We were able to create a form and invoke the same in Uninstall method of Installer class to prompt for a password while user tries to uninstall from the control Panel. We added the exe (which has Installer class implemented and custom code written in Uninstall overridden method) as custom action during msi (setup) file creation.

Using this msi file for setup installs the component successfully and when user tries to uninstall from control Panel, system is prompting for password as required and getting uninstalled only if password is correct else it is throwing an exception and uninstall process is not successful.

One issue we face is, when user tries to uninstall and form is displayed, when user tries to shutdown or log off, it automatically closes the form and uninstalls the component even without password is provided. We tried to check if it is force shutdown and raise normal Exception (also tried InstallerException) still program is getting uninstalled.

Please help.

Thanks,
Balaji
0 new messages