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
- :
- Silent Uninstall needs password
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
‎Oct 24, 2011
11:05 AM
Silent Uninstall needs password
I have a Basic MSI project and I want the user to be able to uninstall the application from Add/Remove Programs. I know this method only performs the Execute sequence to silently uninstall the app. My dilemma is, I need to uninstall some database stuff and need the user to enter the password to access it. For security reasons, I can't store this password anywhere. Is there any way for me to gather user input when removing software through ARP?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 24, 2011
11:28 AM
There is no sanctioned way to put up UI during the ARP Uninstall (which runs a silent install). Custom actions can do it, but you run the risk of hanging the uninstall in scenarios where there is not a user around to fill in the UI. Generally the recommendation is to fail if the password is not specified, disable the Remove button, and require a UI-based uninstall -- that is unless the password's property is passed to the uninstall from the command line (something like: msiexec /qn /x {prod-uct-code-here} PASSWORD="ThePass").
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 24, 2011
11:47 AM
It seems I could change the UninstallString registry value to launch a UI-based uninstall. However, I'd also need to change the WindowsInstaller value from it's default value of 1 for this to work. What exactly does the WindowsInstaller value do, aside from always calling the Remove as "msiexec /x{productcodeguid}"? Is it safe to edit the WindowsInstaller registry value?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 25, 2011
10:33 AM
I would not suggest such an approach. Who knows when Windows Installer might "helpfully repair" the value which you propose deleting. Again, the common approach is to specify ARPNOREMOVE which requires the user go through the Change or Modify button instead. A less common approach is to set ARPSYSTEMCOMPONENT and create an entirely separate ARP entry which you control fully.