Should have thought of this the first time.  USERNAME is a built-in property.  
There is even a NOUSERNAME property.  I suggest checking out the MSI 
SDK.<unk<unk-----Original Message-----<unkFrom: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Stuart A. Malone<unkSent: Thursday, 
January 04, 2007 13:57<unkTo: wix-users@lists.sourceforge.net<unkSubject: Re: 
[WiX-users] Localized [USERNAME] string expanded at build time?<unk<unk<unkOn 
Jan 4, 2007, at 3:38 PM, Rob Mensching wrote:<unk<unk> [USERNAME] should 
evaluate to whatever you set that Property to at<unk> runtime or hard coded 
into the Property table.<unk<unkThat's just the problem.  I'm not setting the 
property at runtime,<unkand it isn't in my Property table.<unk<unkHowever, the 
problem isn't in WiX, either.  I used Orca to examine<unkthe MSI file generated 
by WiX, and the radio button still has<unk[USERNAME] there in the string.  So I 
was wrong about WiX expanding<unkt
 he property at build time.  I also checked the Property table to<unkmake sure 
there wasn't any entry for USERNAME.<unk<unkI ran my installer with logging 
turned on, and got this very near the<unkbeginning:<unk<unkMSI (c) (20:08) 
[16:12:23:163]: PROPERTY CHANGE: Adding USERNAME<unkproperty. Its value is 
'Stuart A. Malone'.<unk<unkThe problem is that at the time I was logged in as 
the admin user<unk"Testing".  This was followed a few lines later 
by:<unk<unkMSI (c) (20:08) [16:12:23:173]: Doing action: INSTALL<unkAction 
start 16:12:23: INSTALL.<unkMSI (c) (20:08) [16:12:23:173]: UI Sequence table 
'InstallUISequence'<unkis present and populated.<unkMSI (c) (20:08) 
[16:12:23:173]: Running UISequence<unk<unkSo as far as I can tell, USERNAME is 
being set before my UISequence<unkis being called, which I assume means that 
it's being set incorrectly<unkby MSI itself.<unk<unkI have no idea why MSI 
would be using my name rather than the name of<unkthe current logged-in user.  
Perhaps MS
 I is setting USERNAME to the<unkname registered in the System control panel, 
rather than the name of<unkthe current logged in user.  I'm on XP SP 2, and 
user switching is<unkdisabled.<unk<unkAny thoughts on this problem?  If I can't 
resolve it, I'll probably<unkjust eliminate the [USERNAME] string from the 
localization file, on<unkthe grounds that in code, as often in life, it's 
better to be silent<unkthan be wrong.<unk<unk<unkBest wishes,<unk<unk--Stuart 
A. Malone<unk   Llamagraphics, Inc.<unk   Makers of Life Balance personal 
coaching software<unk   
http://www.llamagraphics.com/<unk<unk<unk<unk-------------------------------------------------------------------------<unkTake
 Surveys. Earn Cash. Influence the Future of IT<unkJoin SourceForge.net's 
Techsay panel and you'll get the chance to share your<unkopinions on IT & 
business topics through brief surveys - and earn 
cash<unkhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV<unk_______________________
 ________________________<unkWiX-users mailing list<[EMAIL 
PROTECTED]<unkhttps://lists.sourceforge.net/lists/listinfo/wix-users<unk

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to