I'm trying to remember if the initial value of a property is formatted. It may be better to use a standard custom action to assign the value of the property at runtime.
Ex: <CustomAction Id="SetDATABASE_USERNAME" Property=" DATABASE_USERNAME " Value="[%USERDOMAIN]\[%USERNAME]" /> And then in the install UI or install execute sequence, schedule the CA. <Custom Action=" SetDATABASE_USERNAME " After="CostFinalize"/> Note, there is no guarantee that those environment variables will always be there. (Local users will have PC name for the domain.) Jacob -----Original Message----- From: StevenOgilvie [mailto:sogil...@msn.com] Sent: Thursday, September 20, 2012 4:27 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] variables not working... Hi all, I have these two set: <?define LogonUserName = "[%USERNAME]"?> <?define LogonDomainName = "[%USERDOMAIN]"?> Then this property: <Property Id="DATABASE_USERNAME" Secure="yes" Value="$(var.LogonDomainName)\$(var.LogonUserName)" /> but when I use it at runtime I see this: [%USERDOMAIN]\[%USERNAME] thanks, Steve -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users