the installer I am creating should run on a per user basis. So no admin privileges should be required and the program should always be installed for the current user.
Therefor I use the MultiUser.nsh with the following settings:
!define MULTIUSER_EXECUTIONLEVEL Standard ;# other options would be: Admin, Power, Highest
!define MULTIUSER_MUI
!define MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER And insert the macro in the .onInit function:!insertmacro MULTIUSER_INIT But it doesn't seem to work as expected. I am running Windows 7 Ultimate 32Bit.Here is the list of problems, things I do not (fully) understand:
- When I execute the installer file it always prompts for running with admin privileges!?
- For showing an installed program in the Windows programs list (for modify/repair/uninstall) it is AFAIK necessary that there is a RegKey in 'Software\Microsoft\Windows\CurrentVersion\Uninstall\'. But this RegKey doesn't exist? (at least it is not shown) in HKCU for a standard user!? And as my installer prompts for admin privileges, the current user is set from the standard user (who started the installer) to the user from whom you granted the admin privileges. As a logical result my RegKeys are written to 'HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\' of the user with the admin privileges (and not as intended to the one of the standard user).
In the end I cannot install the program for standard user at all, because all CURRENT USER settings are done for the user with the admin privileges.
It is a bit hard to describe for me, but I hope you'll get the point?
Did anybody encounter same problems?
Or what do I have to do to run the installer without the need of admin privileges?
Help is very much appreciated!
Thanks,
Gunther