This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Input dialog using user32.dll
Subscribe
- 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
‎Jul 27, 2010
04:24 PM
Input dialog using user32.dll
I'm doing a Basic MSI project. When the user uninstalls the product, I need to prompt the user for the database password to execute uninstall scripts for the database. But if the product is removed using the Remove button under Add/Remove Programs, it only calls the Execute sequence and not the UI sequence of Windows Installer.
So I was considering having a custom action during the Execute phase that can display a dialog with a single input text field so I can grab the password, in case the UI phase is not called.
Is there an easy way to create a dialog to do this using user32.dll? It seems fairly challenging to do. Or is there an easier alternative to do what I need than calling a DLL to construct dialogs.
So I was considering having a custom action during the Execute phase that can display a dialog with a single input text field so I can grab the password, in case the UI phase is not called.
Is there an easy way to create a dialog to do this using user32.dll? It seems fairly challenging to do. Or is there an easier alternative to do what I need than calling a DLL to construct dialogs.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 28, 2010
11:47 AM
As in [thread=194229]this similar thread[/thread], showing UI elements in the Execute sequence tends to cause problems. Disabling the Remove button (which carries out the uninstallation such that the UI sequence is skipped) isn't an option?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jul 28, 2010
02:47 PM
I have disabled the Repair button, as a solution for now, however, it would be nice to be able to remove the product from Add/Remove Programs. I was trying to gauge the difficulty of using Windows DLLs to construct and display a dialog because during an uninstall the user always needs to be prompted for a database password. There is no need for a silent uninstall.