Vista/7 UAC compatible, Per User, Non-admin Install - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

CarlM
Posts: 2
Joined: Wed Feb 17, 2010 9:31 pm

Vista/7 UAC compatible, Per User, Non-admin Install

Hello,
I'm currently testing the Advanced Installer and am trying to determine if it can do this:
Under Vista or 7 I am logged in as a non-admin user. My installer installs to the Program Files, so it requires Admin privileges, but I am doing a Per User install. I want a Registry key installed under the HKCU\Software key. If the UAC prompts the user to enter an admin account to elevate the install, that is okay. But, I still want the registry key to be installed as the original user. Is this possible?

Thanks, Carl
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Vista/7 UAC compatible, Per User, Non-admin Install

Hi Carl,

Unfortunately this is not supported by Windows Installer. Per-user registry entries are created for the user account under which the installation runs. When running an install under an Administrator account, per-user registry entries are created for that account.

A solution is to create the registry entries from within your application. Another solution is to create the registry entries in a per-machine location (HKEY_LOCAL_MACHINE) and make your application copy them under HKEY_CURRENT_USER when launched.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”