Users are prompted for Admin password at time of install - Advanced Installer Community
awing
Posts: 7
Joined: Wed Dec 05, 2012 7:03 pm

Users are prompted for Admin password at time of install

Hello
I have created a very basic install that runs perfectly as long as the user that is running the install is logged in as Administrator.

If I am logged in as a standard user and try to run the installation process, I am prompted to log in as an Administrator to continue. If the application is already installed and I attempt to run the application, I am again prompted to log in as an Administrator to continue.

I have set the Execution level to 'As Invoker - Default'. This is the level 'Recommended for standard user applications.'

What am I missing? I need this application to run when a normal user is logged on

Thank you!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Users are prompted for Admin password at time of install

Hi,

Please keep in mind that this is the normal behavior for a package with "Per-machine only (fails if user is not administrator)" installation type selected. The application can be installed only if the user provides administrator credentials and then any other user can launch it.

If the application prompts for administrator password when a normal user is logged on, it is an option that can be set in the manifest file of your application.

For more information about creating a manifest file you can take a look on the Create and Embed an Application Manifest (UAC) article.

Also you can read more about installation types on the Install Parameters Page article.

Let us know if it helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
awing
Posts: 7
Joined: Wed Dec 05, 2012 7:03 pm

Re: Users are prompted for Admin password at time of install

Thank you for your quick reply.

So, to be sure I understand.

On Windows 7

I understand your comment about this being normal behavior based upon the installation type.

However, if the application is installed successfully by an administrator, will I need to create and embed a manifest to allow it to run while logged in as a standard user?

This application doesn't require admin rights. It does appear in the system try (by the clock). Does that require special privileges?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Users are prompted for Admin password at time of install

I'm not sure if the application requires privileges to appear in system tray. This is not handled by Advanced Installer.

You can probably find it out on Microsoft forums and they will explain if you need to embed a manifest for this.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samman
Posts: 3
Joined: Wed Mar 18, 2015 3:50 am

Re: Users are prompted for Admin password at time of install

I want to have an installation that works similar to ClickOnce in the sense that a standard user does not have install privileges (don't know anyway to describe it except non-admin). When I use Microsofts ClickOnce technology users get the program installed in their local user directories.

The installation is for a trial version of our software which they can unlock later. It is crucial when someone is in the heat of the moment of looking at our website (contemplating to try) that they do not get delayed or "put off" the decision to install because they need to call a tech person or don't even know the administrator password (employees for example).

I don't mind that the application installs for per-user but with Advanced Installer is it possible to not have to "elevate" the privileges to get this installed. I could not find anything except on the internet where you have to start playing around with orca. It didn't even specify if this is what I'm looking for.

Is setting to Invoker and not touching any directory that needs administrator access (ex. ProgramFiles) the only requirement? Or, does the msi installer need to declare to windows somehow that it will not be accessing administrator areas, registries, etc...?

This is so important to our company that we get the installation to work no matter what privileges people have on the computer for sales/trial purposes. I want to know if advanced installer will fit our needs so we can purchase it and need this answer because it is needed in the near future.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Users are prompted for Admin password at time of install

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

Yes, you can achieve what you want using Advanced Installer. In order to do this, you can create a "Simple", "Professional", etc. project, go in the "Install Parameters" page and select the "Per-user only" installation type, then place your files and registry entries in folders that do not require administrator rights (i.e. do not place them in "Program Files" and "HKEY_LOCAL_MACHINE" folders).

Let us know if this helped and do not hesitate to ask us any other question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samman
Posts: 3
Joined: Wed Mar 18, 2015 3:50 am

Re: Users are prompted for Admin password at time of install

Thank you very much for giving me an answer and not have me experiment and figure this out on my own as we are very busy here.

Is there anything that advanced installer (excluding hkeylocalmachine and program files) will put by default that I will need to change that requires administrator privileges?

Will this work for any type of non-admin user (guest, standard user, etc...)?

What folder is typically used or recommended as an alternate to program files?

Does having my setup file called setup.exe (vs another name such as abc.exe) in anyway require administrator privileges despite avoiding administrator access locations and choosing per-user?

We look forward to purchasing this and thank you again for saving us the burden of figuring this out through trial and error.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Users are prompted for Admin password at time of install

Hi,
Is there anything that advanced installer (excluding hkeylocalmachine and program files) will put by default that I will need to change that requires administrator privileges?
No, Advanced Installer does not include anything by default that requires administrator privileges.
Will this work for any type of non-admin user (guest, standard user, etc...)?
Yes, this will work for any user.
What folder is typically used or recommended as an alternate to program files?
The default folder is set to "C:\Users\<username>\AppData\Roaming\Your Company\Your Application" when the "Per-user only" installation type is chosen.
Does having my setup file called setup.exe (vs another name such as abc.exe) in anyway require administrator privileges despite avoiding administrator access locations and choosing per-user?
No, you can choose any name you want for your setup file.
We look forward to purchasing this and thank you again for saving us the burden of figuring this out through trial and error.
My pleasure. Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
samman
Posts: 3
Joined: Wed Mar 18, 2015 3:50 am

Re: Users are prompted for Admin password at time of install

You are remarkable and so well informed. Thank you for being so prompt
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Users are prompted for Admin password at time of install

You're welcome. Glad to help.

Just let us know anytime you have a question.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”