Archive: Get OS name


Get OS name
Hi,

I am trying to make an installer and set different environment variables for different OS. Is there any way I can get the OS name?

I found one solution from the Web that is reading the "ProductName"key from "HKLM 'SOFTWARE\Microsoft\Windows\CurrentVersion'"

However, I also found that my Windows XP environment does not have a key "ProductName". It only has a "ProductID" key.

What else can I try?


Use the GetWindowsVersion function (see appendix B of the documentation).


Or this Web Archive function ;)