Administrator rights - 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!

treadmill
Posts: 7
Joined: Mon Sep 24, 2012 9:41 pm

Administrator rights

I've created an AI installer package, which all works nicely apart from one thing, administrator rights.

The installer will need administrative rights to install the software. However, under the Installer Options, I've selected "Per-user only (with administrator rights required) and checked "Run as administrator".

The problem is that the installer never asks a standard user that attempts to run the installer to confirm an administrator login account to run the installer.

What am I doing wrong?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Administrator rights

Hello,

I have tested this scenario on a Vista x64 machine and everything worked as expected. A standard user will be prompted for administrator password when running the .EXE built installer.

Are you launching the .MSI?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
treadmill
Posts: 7
Joined: Mon Sep 24, 2012 9:41 pm

Re: Administrator rights

The Package Type is as follows:-

Single EXE setup (resources inside) and Archive installation files using LZMA compression.

Is this correct?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Administrator rights

Hello,

Yes it is, not sure why you're getting this behavior though. I initially thought you had the .MSI outside the .EXE and you were launching the .MSI.

Can you replicate this behavior on several machines? If so, can you please send us a sample project file with dummy resources and a test case so we can replicate the behavior? Our e-mail address is support at advancedinstaller dot com.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
treadmill
Posts: 7
Joined: Mon Sep 24, 2012 9:41 pm

Re: Administrator rights

mihai.petcu wrote:Hello,

Yes it is, not sure why you're getting this behavior though. I initially thought you had the .MSI outside the .EXE and you were launching the .MSI.

Can you replicate this behavior on several machines? If so, can you please send us a sample project file with dummy resources and a test case so we can replicate the behavior? Our e-mail address is support at advancedinstaller dot com.

All the best,
Mihai
See attached project file and screenshot. The installer never prompts a standard user for the administrator login credentials.
Attachments
installer-options.PNG
installer-options.PNG (26.69 KiB) Viewed 7537 times
HES Installer WAMP.aip
(811.13 KiB) Downloaded 361 times
failed-admin-request.PNG
failed-admin-request.PNG (79.07 KiB) Viewed 7538 times
treadmill
Posts: 7
Joined: Mon Sep 24, 2012 9:41 pm

Re: Administrator rights

I should also mention that the AI installer button shows a shield on it. I assume that's suppose to request the administrators credentials?
Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

Re: Administrator rights

I assume this could be due to User Account Control Settings

Run GPEDIT.MSC
and make sure, you have the following set:
Attachments
UAC_settings001.png
UAC_settings001.png (38.24 KiB) Viewed 7528 times
treadmill
Posts: 7
Joined: Mon Sep 24, 2012 9:41 pm

Re: Administrator rights

Jimmy wrote:I assume this could be due to User Account Control Settings

Run GPEDIT.MSC
and make sure, you have the following set:
Thank you, I'll give that a go. :) My settings were definitely different. However, I assume these settings are default settings when an OS is installed?
Jimmy
Posts: 36
Joined: Thu Apr 12, 2012 1:13 pm

Re: Administrator rights

treadmill wrote:However, I assume these settings are default settings when an OS is installed?
Not sure, we set this within a GPO in our domain, due to strange behaviour of some software, if UAC is not configured this way...

Hope it helps.
Jimmy

Return to “Common Problems”