shelmers
Posts: 63
Joined: Thu Sep 03, 2009 9:02 pm
Location: Andover, Massachusetts USA

per user install run by admin

I've failed to find the correct combination of settings to achieve this result: I want a per-user install, but the installer needs to be run by either 1) an end user with admin rights, or 2) an admin on behalf of a standard user.

#1 is easy. For #2, on a system where the standard user name is Scott, after the admin runs the installer, I want the installed files to be in this folder
C:\Users\Scott\AppData\Roaming\MyFolder\
and not in
C:\Users\AdminUser\AppData\Roaming\MyFolder\
I also want registry keys and desktop shortcuts to be created per user and not per machine.

I can make this work if I launch the installer as the standard user and then enter admin credentials when prompted. However, I cannot make it work if an admin user launches the installer with elevated privileges. I've tried "Per-user only (with administrator rights required)" with Execution level set to As Invoker, Highest Available, and Require Administrator but all of those combinations install in the admin user's locations. What am I doing wrong?

BTW, I'm using AI 12.6.1.
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: per user install run by admin

Hello,
For #2, on a system where the standard user name is Scott, after the admin runs the installer, I want the installed files to be in this folder
C:\Users\Scott\AppData\Roaming\MyFolder\
and not in
C:\Users\AdminUser\AppData\Roaming\MyFolder\
I also want registry keys and desktop shortcuts to be created per user and not per machine.
Please note that you cannot install an application on behalf other user, the encountered behaviour is correct.

In order to install for each user you need to implement a self healing mechanism. For details, please take a look on the Delivering a file to AppDataFolder\myfolder forum thread which debates this subject.

If you have any questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”