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
- :
- Standard user can install, but not uninstall
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
Aug 07, 2017
12:05 PM
Standard user can install, but not uninstall
I've created a data installer that a regular user can run. I've set the Required Execution Level to "Invoker," and I've refrained from adding any registry keys in HKLM. The uninstall key now goes under HKCU in the registry. While testing, I've found that I can install the product without any trouble, but I cannot uninstall. This is a problem, because I can't uninstall. It requests an admin password. When I enter the admin password, I get an error indicating that no version of the product is installed. "The setup has detected that no version of is installed. The specified command-line operations require that the application be installed to continue. The application will now terminate."
As the regular user, I checked the HKCU area of the registry. The product key is there, under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\.
What is the problem? Why does it think the application is not installed?
Does it have something to do with the fact that I had to enter an admin password? After that, does it look in the Admin's HKCU area of the registry? If that is the case, then I understand why it can't find it, because it isn't there. How can I make this so that regular users can BOTH install and uninstall?
As the regular user, I checked the HKCU area of the registry. The product key is there, under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\.
What is the problem? Why does it think the application is not installed?
Does it have something to do with the fact that I had to enter an admin password? After that, does it look in the Admin's HKCU area of the registry? If that is the case, then I understand why it can't find it, because it isn't there. How can I make this so that regular users can BOTH install and uninstall?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 07, 2017
03:28 PM
The installer version was 1.0.0.0, but changing it to 1.0.0 made no difference. It still requires an admin password, and then fails to uninstall with the error pictured.
The only way to remove it is to delete the files manually, and then while logged in as the regular user that installed it, open regedit and delete the uninstall key under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\.
I could write an installscript function to perform the manual actions, but I'm pretty sure it will still ask me for an admin password. How can I allow non-admins to uninstall?
The only way to remove it is to delete the files manually, and then while logged in as the regular user that installed it, open regedit and delete the uninstall key under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\.
I could write an installscript function to perform the manual actions, but I'm pretty sure it will still ask me for an admin password. How can I allow non-admins to uninstall?