StevenOgilvie wrote > 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]
Have you tried defining the variables this way: <?define LogonUserName=$(env.USERNAME)?> <?define LogonDomainName=$(env.USERDOMAIN)?> I think you could even combine them and make one variable that you could use: <?define LogonAccount=$(env.USERDOMAIN)\$(env.USERNAME)?> <Property Id="DATABASE_USERNAME" Secure="yes" Value="$(var.LogonAccount)" /> -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/variables-not-working-tp7580709p7580717.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ 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