Be carefull using USERDOMAIN, it is the domain of the account that is logged 
in, which is not necessarily that of the domain the machine is in - for 
instance if you are logged in as a local account on the machine USERDOMAIN will 
be the computer name.   I have not found an environment variable that gives you 
this.  


Michael

________________________________________
From: Andy Clugston [clug...@gmail.com]
Sent: Tuesday, 21 June 2011 8:52 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Computer Domain and Property(s) Listing

I believe USERDOMAIN will work. Still having issues getting the conditional
logic to work for me, I'll keep trying.

Thanks.

On Fri, Jun 17, 2011 at 4:36 AM, Peter Shirtcliffe <pshirtcli...@sdl.com>wrote:

> Computer name includes only the NETBIOS name, not the domain. LogonUser
> doesn't contain the user's domain either.
> You could try getting what you want from environment variables.
>
> http://blogs.msdn.com/b/windows_installer_team/archive/2005/09/16/461742.aspx
> Just make sure the variable you check is available on all the OSes you
> support.
>
> -----Original Message-----
> From: Andy Clugston [mailto:clug...@gmail.com]
> Sent: 16 June 2011 18:49
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Computer Domain and Property(s) Listing
>
> Hi All,
>
> I am looking for a quick way to determine if a system is on a specific
> domain when running an install. Can the LogonUser or Computer name property
> be used to derive this information? Is there another property that might
> help? I'm trying to avoid a custom action, but I'm not sure I can.
>
> Also, the latest version of Windows installer does not appear to log the
> property(s) listing as it did in Windows XP. Is there a way to enable this?
> FWIW, I enabled verbose loggin, and this information is still missing.
>
> Thanks!
>
> -----------------------------------------------------------------------------
> -
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> SDL PLC confidential, all rights reserved.
> If you are not the intended recipient of this mail SDL requests and
> requires that you delete it without acting upon or copying any of its
> contents, and we further request that you advise us.
> SDL PLC is a public limited company registered in England and Wales.
>  Registered number: 02675207.
> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
> 7DY, UK.
>
>
>
> ------------------------------------------------------------------------------
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to