Announcement

Collapse
No announcement yet.

Looking 4 users name in multi OS's

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Looking 4 users name in multi OS's

    Hello all-
    How can I look for a users name in Windows 95-XP?

    Thanks
    Bruce

  • #2
    Re: Looking 4 users name in multi OS's

    Hi,

    If you want the registered owner use the build in variable %RegOwner%, or try looking in the registry, under: HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Logon User Name

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: Looking 4 users name in multi OS's

      Hello Mark-
      I tried this, it only works for XP. I need all windows OS's

      Comment


      • #4
        Re: Looking 4 users name in multi OS's

        Hi,

        HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\Logon User Name will probably work on any Windows NT, 2000, and XP machine. Have you tried using the %RegOwner% built-in variable? Did that provide you with the functionality that you want?

        What User Name are you looking for in Windows 95?

        You also might try looking under:

        HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\CurrentUser

        That appears to work under Windows 98. You might have to read the User Name from different retgistry keys for different operating systems.

        mark.
        MSI Factory The Next Generation Intelligent Setup Builder

        Comment


        • #5
          Re: Looking 4 users name in multi OS's

          Mark-
          "Have you tried using the %RegOwner% built-in variable?"
          How do I find this built-in variable?

          Comment

          Working...
          X