Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

[USERNAME] is wrong


2 replies to this topic

kgiloo

kgiloo
  • Full Members
  • 60 posts

Posted 28 February 2007 - 17:43

[IS 12 - BASIC MSI]
I've tested my setup on several xp machine and it MAY happen that the username displayed in the "Customer Information" Dialog is wrong, instead the machine name is displayed.

Is it a bug?
Where does the property [USERNAME] come from? From the registry?

Please help.
Thx

Attached Images

  • dummy_error_username01.JPG


kgiloo

kgiloo
  • Full Members
  • 60 posts

Posted 28 February 2007 - 18:12

The official documentation says:
The USERNAME property is a user performing installation.

http://esupportus.ma...ticleid=Q102792
But it seems that it could come from the registry:
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion

Then it would mean that USERNAME is the 'registered owner'.huh.gif

very weird:
I created a second account 'dummy' on my machine, with admin rights, and my setup displays then the machine name (i.e RegisteredOwner) instead of username.
However when I logon on the same machine, the setup displays the good username.

I'm lost, where is the truth? What is the method used by InstallShield?
blink.gif

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 01 March 2007 - 18:08

How do you launch the install (setup.exe, or double clicking the .msi file, or...)? Does it make a difference whether the user has administrator rights? Which operating system is this (XP, Vista)?
Populating the USERNAME property is integral functionality of Windows Installer (the MSI engine), not something that InstallShield put on top of it.