Force Display UAC - 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!

robbr2084
Posts: 1
Joined: Thu Oct 27, 2011 1:04 am

Force Display UAC

Hello, I'm testing out my new install on Windows 7 machines with a user that lacks administrator privileges.

How do I force the UAC dialog to display right at the very beginning of running setup? I've tried every conceivable combination of settings I can come up with.

At present, even though have the Bootstrapper .exe set to: Excution Level: Require Administrator, the setup chugs along right up until it tries to start copying files. Then it displays an error message regarding the lack of admin rights. Then it fails.

Why doesn't setup display the UAC to request elevated permissions instead of just failing?

Is there no command switch (even for MSIExec) that will FORCE the UAC to elevate privileges right from the start of setup?

thanks for any help!
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Force Display UAC

Hi,

Excution Level: Require Administrator is the option you need, also make sure you launch the setup by running the EXE, not the MSI, in case you have your project set to place the MSI next to the EXE.

If you are launching the EXE and using the above option probably there is something with the machine, I recommend testing on multiple clean test machines, for example virtual machines.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
flahan
Posts: 2
Joined: Tue Nov 08, 2011 4:28 pm

Re: Force Display UAC

I have this same problem on some machines but not others. I have the Execution Level set to Require Administrator, but it seems to ignore this and not throw up the prompt.

Is there a work around?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Force Display UAC

This could happen if the UAC is disabled. You can enable it back as described in the following article:
http://windows.microsoft.com/en-US/wind ... -on-or-off

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
flahan
Posts: 2
Joined: Tue Nov 08, 2011 4:28 pm

Re: Force Display UAC

In my case, I am dealing with a situation where the customer may or may not have it enabled. Is there any setting in the installer to detect this?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Force Display UAC

Yes, you can check for the following registry entry using a search:
http://msdn.microsoft.com/en-us/library ... t.10).aspx

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”