zbd
17th July 2007 02:42 UTC
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
Red Wine
17th July 2007 05:15 UTC
Did you try with the provided method in NSIS documentation?
http://nsis.sourceforge.net/Docs/AppendixC.html#C.5
zbd
17th July 2007 05:30 UTC
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.
Afrow UK
17th July 2007 12:30 UTC
You could try the GetVersion plug-in from the Wiki but I have not tested it on a PDA.
Stu