Is the Privileged property even defined for non-privileged installers?  
Generally, you're testing for set if the user is privileged and cleared when 
the user is not.  So, maybe you're looking for NOT Privileged.
--
John Merryweather Cooper
Build & Install Engineer - ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com 




-----Original Message-----
From: Boyd Ludlow [mailto:boyd.lud...@gmail.com] 
Sent: Thursday, January 26, 2012 10:19 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Struggling to get bal:Condition to work (wix burn)

I know that a bug currently exists when using burn that it errors rather than 
asking for elevated rights. I thought that then I could add a condition to 
prevent setup running is the user is not an admin or if they have not selected 
"Run as admin". My attempt follows but I never seem to be able to get this to 
evaluate to true regardless of the users rights. Can anyone tell we what I'm 
doing wrong with my condition test?

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";
   xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";
   xmlns:bal='http://schemas.microsoft.com/wix/BalExtension'>
  <Bundle Name="My Install" Version="1.0.1.0">
    <bal:Condition Message="You must be an administrator to install this 
application">
      NOT (Privileged = 0)
    </bal:Condition>
    <BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense" />
    <WixVariable Id="WixStdbaLicenseRtf" Value="resources\license.rtf" /> ...
etc.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to