That is exactly what I explained. With UAC on, the user token you launch the
MSI with is not a member of Admins (the token you retrieve clicking the
"Continue" button is). To compensate, Windows Installer considers everyone a
member of Administrators (since UAC provides "over-the-shoulder
authorization") so that "legacy" installation packages will still work. A
non-legacy installer that defines the MSIUSEREALADMINDETECTION property will
get different behavior, which you are seeing.

My personal opinion: In your introductory dialog, mention that
administrator's privileges will be required to install this package. Don't
define MSIUSEREALADMINDETECTION. Test for Privileged. Don't test for
AdminUser. If the user proceeds through all of the screens but doesn't know
an administrator's password, they were warned and no harm is otherwise done.

-----Original Message-----
From: Tabmow [mailto:tabmo...@gmail.com] 
Sent: Tuesday, February 16, 2010 6:18 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Admin check in Win 2008?

Hi Blair,  Sascha,
    I tried it again this morning, and if I turn UAC off, I get the
behaviour I want:  a non-admin user gets blocked, and a user that is part of
"Administrators" group runs the MSI just fine.   If i turn UAC on, a
non-admin user gets blocked, but now a user that is part of "Administrators"
group also gets blocked.  The "You are not part of admins.." message from my
MSI just pops up when it's clicked on.   There is no other pop-ups (ie. UAC
or otherwise) that come up.   Any idea why this would be?

Thanks.
-- 
View this message in context:
http://n2.nabble.com/Admin-check-in-Win-2008-tp4557002p4580429.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to