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: \return USER_FQN DNS domain name followed by a backward-slash and the SAM username \return USER_NAME full username, includes the domain for domain users \return USER_DOMAIN qualified domain from LookupAccountName \return 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 11:53 PM To: General discussion for Windows Installer XML toolset. Cc: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] How to get USERDOMAIN? It is exactly what I need:) Sent from my iPhone 23.10.2009, в 1:05, Michael Osmond <mosm...@baytech.com.au> написал(а): > The big issue with %USERDOMAIN is that it is the domain of the user > account that is logged on (and running the install). This may not > be the Domain you are after. Example: You are installing software > on a Server in an Active Directory domain. You want the domain name > of AD - but the user account logged on is the local administrator > for the server, in this case the %USERDOMAIN will actually be the > server name, as this is a local account. > > By the way, I have not found an easy way to get the domain in this > case, other than prompt for it. > > Michael > > -----Original Message----- > From: Blair [mailto:os...@live.com] > Sent: Friday, 23 October 2009 6:51 AM > To: 'General discussion for Windows Installer XML toolset.' > Subject: Re: [WiX-users] How to get USERDOMAIN? > > If it exists and you trust it, it can be used in any field that > accepts > environment variables (for example: formatted). It cannot be evaluated > within the context of a deferred custom action, but it can be > evaluated in > the process of writing the deferred script, so it should work in the > CustomAction table even for deferred actions. > > -----Original Message----- > From: Konstantin Vlasenko [mailto:konstantin.vlase...@gmail.com] > Sent: Thursday, October 22, 2009 1:00 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] How to get USERDOMAIN? > > Hello, > I need to put usersomain into configuration file during the > installation. > How can I use %USERDOMAIN environment variable in the setup? > Do we have some restrictions related to how and when we can use this > environment variable? > > > > --- > --- > ---------------------------------------------------------------------- > -- > 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 > > > --- > --- > --- > --------------------------------------------------------------------- > 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 > > --- > --- > --- > --------------------------------------------------------------------- > 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 ------------------------------------------------------------------------------ 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