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