We found this to be a completely unreliable mechanism that works sometimes. 

http://msiext.codeplex.com has a CA to get extensive user info that uses Win32 
API.

<CustomAction Id="GetUserInfo" BinaryKey="UserPrivileges" 
DllEntry="GetUserInfo" Execute="immediate" Return="check" />

Here's what it returns:

USER_FQN DNS domain name followed by a backward-slash and the SAM username 
USER_NAME full username, includes the domain for domain users 
USER_DOMAIN qualified domain from LookupAccountName 
USER_SID user SID

-dB.

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



-----Original Message-----
From: Konstantin Vlasenko [mailto:konstantin.vlase...@gmail.com] 
Sent: Thursday, October 22, 2009 12:11 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] [%USERDOMAIN]\[%USERNAME]

Hello,
Have 2 wix project.
Use the same technic to get the environment variables
[%USERDOMAIN]\[%USERNAME].
On the same machine one returns non-empty result (e.g. domen\user). The
second doesn't (returns empty).



-- 
Konstantin Vlasenko
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to