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.