Using the env. Variable retrieves it from my local environment at build time... so if someone else runs the install on another machine they see my domain\my user logon :)
Which won't work.... Thanks, Steve -----Original Message----- From: MikeGa [mailto:[email protected]] Sent: September-20-12 11:59 PM To: [email protected] Subject: Re: [WiX-users] variables not working... 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 [email protected] 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wix-users

