There's a C++ CA in http://msiext.codeplex.com that implements the standard 
active directory picker.

Example:

<CustomAction Id="DirectoryObjectPicker" BinaryKey="ActiveDirectory" 
DllEntry="DirectoryObjectPicker" Execute="immediate" Return="check" />
<Binary Id="ActiveDirectory" SourceFile="$(var.BinDir)\ActiveDirectory.dll" />

The following code adds a Browse for users button to a Wix UI.

<Control Id="UsernameBrowse" Type="PushButton" X="235" Y="120" Width="75" 
Height="17" Text="&amp;Browse ...">
 <Publish Property="DSOP_SCOPE_TYPES" 
Value="DSOP_SCOPE_TYPE_TARGET_COMPUTER|DSOP_SCOPE_TYPE_ENTERPRISE_DOMAIN" 
Order="1">1</Publish>
 <Publish Property="DSOP_SCOPE_FLAGS" 
Value="DSOP_SCOPE_FLAG_STARTING_SCOPE|DSOP_SCOPE_FLAG_DEFAULT_FILTER_USERS" 
Order="1">1</Publish>
 <Publish Property="DSOP_SCOPE_FILTER_FLAGS" Value="DSOP_FILTER_USERS" 
Order="1">1</Publish>
 <Publish Property="DSOP_DOWNLEVEL_SCOPE_FILTER_FLAGS" 
Value="DSOP_DOWNLEVEL_FILTER_USERS" Order="1">1</Publish>
 <Publish Event="DoAction" Value="DirectoryObjectPicker" Order="2">1</Publish>
 <Publish Property="SERVICE_USERNAME" Value="[DSOP_UPN]" 
Order="3"><![CDATA[DSOP_UPN <> ""]]></Publish>
 <Publish Property="SERVICE_USERNAME" Value="[DSOP_NAME]" 
Order="3"><![CDATA[DSOP_NAME <> "" AND DSOP_UPN = ""]]></Publish>
</Control>

Hope this helps.

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York



-----Original Message-----
From: Matt Johnson [mailto:ma...@timeamerica.com] 
Sent: Monday, April 26, 2010 8:37 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Dialog for user selection?

I'm working on an installer that will need to run under a specific user 
context.  Does anyone know a way (or have a sample) of how to present a 
standard user selection dialog?  I'm hoping to have it use the ones built in to 
Windows, and then return it to me as a property.

Thanks,

- Matt

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to