Archive: How to disable RemoveButton for non-Admin users


How to disable RemoveButton for non-Admin users
Hi,

I have a nicely working NSIS installer for a network driver, running on all platforms W2K and above.
The described problem occurs only on non-Vista platforms, since Vista has a smarter handling of Install/Uninstall.

It has registry entries under
HKLM\Software\Microsoft\Windows\Uninstall\<My Product>
:
:
NoRepair = 1
NoModify = 1
:
:

It just shows the Remove button.
Now testing department found out that when opening Control Panel|Add/remove Programs as NON-admin user the "Remove" button is visible (and trying to start the uninstall as non-Admin directly leads to a proprammed message saying that you need to have admin prvileges for this) BUT with an Installshield based installation the Remove button for non-Admin users is disabled/hidden.

Since the uninstaller is NOT running when you open Add/Remove Programs this seems to be some setting in the registry....

I've compared the registry entries of the InstallShield App and tried to copy some entries, switching back and forth from non-Admin to Admin, but didn't find it.

OK. Setting NoRemove to 1 removes the Remove Button, but also for the Admin....

Does anyone know how to do this? Or shed a light on how it is done.


This may depend on where you put the Uninstall registry information, i.e. under current user (HKCU) or all users (HKLM). There may be more to it than that but that would be my initial guess.

Stu


Originally posted by Afrow UK
This may depend on where you put the Uninstall registry information, i.e. under current user (HKCU) or all users (HKLM).
OK, I need to be more precise: The compared InstallShield installer has it's Uninstall information in the same reg-tree
HKLM.... except for using a GUID instead of a Name (Company_Product).