The difficulty with a registry check is that it can be out of date. It can look 
one way but be in the opposite state because it requires a reboot to set it.  
So if a user resets it the registry entry will say zero but it will still be 
active until a reboot.

It seems to me that if it's the app that doesn't work with UAC enabled then 
it's up to the app to do the check. What will happen if UAC is enabled after 
the install has been done?

Phil Wilson

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christopher 
Painter
Sent: Friday, January 04, 2008 2:53 PM
To: Scott Palmer; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] How to detect if UAC is turned on

I'm sure you about to get jumped for even thinking about it.... :-)    However, 
 UAC/LUA can be manipulated via policy and it gets stored in the registry like:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000002
"ConsentPromptBehaviorUser"=dword:00000001
"EnableInstallerDetection"=dword:00000001
"EnableLUA"=dword:00000001
"EnableSecureUIAPaths"=dword:00000001
"EnableVirtualization"=dword:00000001
"PromptOnSecureDesktop"=dword:00000001
"FilterAdministratorToken"=dword:00000000
"LocalAccountTokenFilterPolicy"=dword:00000001


Scott Palmer <[EMAIL PROTECTED]> wrote:
I want to detect if UAC is turned on in Vista and refuse to install if it is.  
How can I do this?

Scott
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




________________________________
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it 
now.<http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to