What's in the registry at HKCU\Software\Microsoft\MS Setup(Acme)\User
Info? 

Phil Wilson 


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stuart A.
Malone
Sent: Thursday, January 04, 2007 1:57 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Localized [USERNAME] string expanded at build
time?


On Jan 4, 2007, at 3:38 PM, Rob Mensching wrote:

> [USERNAME] should evaluate to whatever you set that Property to at 
> runtime or hard coded into the Property table.

That's just the problem.  I'm not setting the property at runtime, and
it isn't in my Property table.

However, the problem isn't in WiX, either.  I used Orca to examine the
MSI file generated by WiX, and the radio button still has [USERNAME]
there in the string.  So I was wrong about WiX expanding the property at
build time.  I also checked the Property table to make sure there wasn't
any entry for USERNAME.

I ran my installer with logging turned on, and got this very near the
beginning:

MSI (c) (20:08) [16:12:23:163]: PROPERTY CHANGE: Adding USERNAME
property. Its value is 'Stuart A. Malone'.

The problem is that at the time I was logged in as the admin user
"Testing".  This was followed a few lines later by:

MSI (c) (20:08) [16:12:23:173]: Doing action: INSTALL Action start
16:12:23: INSTALL.
MSI (c) (20:08) [16:12:23:173]: UI Sequence table 'InstallUISequence'  
is present and populated.
MSI (c) (20:08) [16:12:23:173]: Running UISequence

So as far as I can tell, USERNAME is being set before my UISequence is
being called, which I assume means that it's being set incorrectly by
MSI itself.

I have no idea why MSI would be using my name rather than the name of
the current logged-in user.  Perhaps MSI is setting USERNAME to the name
registered in the System control panel, rather than the name of the
current logged in user.  I'm on XP SP 2, and user switching is disabled.

Any thoughts on this problem?  If I can't resolve it, I'll probably just
eliminate the [USERNAME] string from the localization file, on the
grounds that in code, as often in life, it's better to be silent than be
wrong.


Best wishes,

--Stuart A. Malone
   Llamagraphics, Inc.
   Makers of Life Balance personal coaching software
   http://www.llamagraphics.com/



------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
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