Page 1 of 1

Detect Windows OS

Posted: Mon Nov 01, 2010 11:56 am
by Waussie
I'm trying to detect the windows OS.
But the function
MessageRequester("OS Version",OSVersionText())
reports my Windows 7 as windows Vista.

Any ideas?
Which registrykey contains the ostype?

Re: Detect Windows OS

Posted: Mon Nov 01, 2010 12:17 pm
by PureLust
Waussie wrote:MessageRequester("OS Version",OSVersionText())
reports my Windows 7 as windows Vista.
Where do you get the Function "OSVersionText()" from?
From Droopy's Lib?
So it's a bug in Droopy's Lib - not in PB.

This native PB-check should work fine on your Machine:

Code: Select all

Select OSVersion()
  Case #PB_OS_Windows_Vista
    MessageRequester("Info", "Windows Vista")

  Case #PB_OS_Windows_7
    MessageRequester("Info", "Windows 7")
    
EndSelect
Greetz, PL.