Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    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. #2
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943

    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

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    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

  4. #4
    Join Date
    Jun 2000
    Location
    Indigo Rose Software
    Posts
    1,943

    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

  5. #5
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts