Dont Install if User Account Control Enabled - 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!

lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Dont Install if User Account Control Enabled

Hi,
Is there a way that installation will not start if UAC (User Account Control) is enabled?
How can I perform that?
Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dont Install if User Account Control Enabled

Hi,

You can try using a search to determine if the UAC is disabled or not. For example, you can check this registry value:

Code: Select all

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA 
If this value is set to 0 then the UAC is disabled and if it's set to 1 the UAC is enabled. The property of the search can be used a custom launch condition to stop the install if the UAC is enabled.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Dont Install if User Account Control Enabled

Thanks!
1. I want to check if the value is set to 1 and not only if it exists. Do I have to add an expression? where and how...
2. How can I customize the message that will be displayed to the user?

Lekfir
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dont Install if User Account Control Enabled

Hi Lekfir,
I want to check if the value is set to 1 and not only if it exists. Do I have to add an expression? where and how...
You can configure the search to retrieve the raw value of the registry entry. In this case, the property of the search should be set to whatever is set in the registry entry. This property can be used in the "Custom Launch Conditions" tab of the "Prerequisites" page. For example, if the search is named UAC_POLICY you can use this launch condition:

Code: Select all

UAC_POLICY = "0"
How can I customize the message that will be displayed to the user?
If the custom launch condition is not met, its description will be shown to the user. Therefore you can modify the description of the launch condition.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”