cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
agyr77
Level 2

Check whethere Vista or not

Hi,

There is scenario below:

OS: Windows Vista Ulimate

1) An Installation was setup - Vista detected perfectly!!!
2) Then this Installation was uninstalled
3) Second attempts of the Installation detected that the OS is XP (Windows version 5.1) not 6.0 as it is expected

The script code that detects what OS is

RegDBSetDefaultRoot( HKEY_LOCAL_MACHINE );
RegDBGetKeyValueEx( "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion","CurrentVersion", nOS, svOS, nvResult);
MessageBox("CurrentVersion is: "+svOS, INFORMATION);

I will much appreciate help to this collision
Thanks
Labels (1)
0 Kudos
(1) Reply
Johannes_John
Level 7

Hello agyr77,

I allways use the properties VersionNT and WindowsBuild.

Have a look at:
http://msdn.microsoft.com/en-us/library/aa370556(VS.85).aspx

Regards!
Johannes
0 Kudos