Installation for a non-admin user

Got a problem you cannot solve? Try here.
JohnO
Posts: 127
Joined: Tue Jun 18, 2013 9:52 am

Installation for a non-admin user

Postby JohnO » Tue Mar 11, 2014 8:40 am

Rather belatedly I am trying the installation of our app for a non-admin Windows 7 user, in order to discover any unintended consequences (aka gotchas). The user doing the installation has to be able to install in C:\Program Files - so the installer must be run using an admin id.

I would value any guidance as to where I could improve on this (esp items 5 and 8 ):
1. Log in a the user that will use the application
2. Download setup.exe
3. Run setup.exe as admin user
4. We have created a new dialog, based on the 'destination' dialog, that allows the user to choose when to put their application data. By default, this is in their home directory (C:\Users\<user-name>\rssdata).
5. However, the installer prefills the name of the (run-as) admin user. Is there any way to tell IA that this should be the logged-in user?
6. We have to instruct the person doing the installation to change this to the logged-in user's name.
7. The installation sets an env variable for the logged-in user. However, this is set for the run-as admin user, not the logged-in one.
8. Is there any way to direct IA to set this for the logged-in user?

Is there a way to install using the non-admin id, but somehow enable them to install in Program Files?

Regards, John

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Installation for a non-admin user

Postby FrancescoT » Tue Mar 11, 2014 1:09 pm

Dear John,

when a process is elevated, the process will run under the elevated user context.
Consequently, any function that belongs to the user context, it will work under the elevated context only.

You could try to use the "Get System Setting" command to retrieve the logged User Name and then, to manipulate the target home directory via script.

For what concerns the "Set Env variable", unfortunately there isn't too much to do because it directly depends on the calling process ... and from its point of view, the current user context is the one who launched the package.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 105 guests