Archive: Getting Registered Company Name from Windows


Getting Registered Company Name from Windows
I need a way to get the registered company name from windows. I see that you can use name form UserInfo::GetName, but I do not see that UserInfo will get the company name. I guess I could get it from windows registry under HKLM\....\WindowsNT\CurrentVersion, but I am not very familiar with windows and I do not know if this path changes from machine to machine.
How do you get Windows registered company name with NSIS?

Thanks


there are 2 options:
* reading it from the registry.
* retreaving it by a winapi call, if there exists one.


Read RegisteredOrganization and RegisteredOwner from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion.