Hello all-
How can I look for a users name in Windows 95-XP?
Thanks
Bruce
Professional Software Development Tools
Hello all-
How can I look for a users name in Windows 95-XP?
Thanks
Bruce
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
Hello Mark-
I tried this, it only works for XP. I need all windows 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
Mark-
"Have you tried using the %RegOwner% built-in variable?"
How do I find this built-in variable?