techb...@gmail.com
unread,May 3, 2016, 1:15:28 PM5/3/16You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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