Archive: Working out Windows version from Registry?


Working out Windows version from Registry?
Hi, I'm wondering if it is possible to work out which version of windows is installed on a machine.

I am trying to make an installer which works for Windows Mobile and also Windows SmartPhone Edition. But to do this i need to be able to tell which version the connected device has.

The registry seems similar to a desktop PC registry. So if the windows version info is stored on Desktop PC's I would think there is a good chance it is on a PDA aswell.

Thanks


Did you try with the provided method in NSIS documentation?

http://nsis.sourceforge.net/Docs/AppendixC.html#C.5


Yeah I did try that, what I've found in the last couple of hours is that the none of the keys that are found on a desktop pc in the CurrentVersion folder to tell u the operating system actually exist on PDA registry.

So, I've found another key which I'm going to try and use to tell me which version to install.

Located:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\User Agent\Post Platform\

Basically, in this key there is a string which has info about what model device it is.

But usually contains Either "PPC" for pocket PC's or "Smartphone" for Smartphones.

I will try and use these, an if they can't give me a definite answer i will prompt the user to choose.


You could try the GetVersion plug-in from the Wiki but I have not tested it on a PDA.

Stu