cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
karunakar
Level 3

How to get the vista OS using install script?

Hi All

I want to check the machine which operating system is available.
Based on operating system i have to run the script

Regards.
Venu
Labels (1)
0 Kudos
(3) Replies
LanceRas
Level 7

The VersionNT property will get the major.

You'd have to go more in depth if you were searching for Home / Pro / etc editions.

http://msdn.microsoft.com/en-us/library/aa370556(VS.85).aspx
0 Kudos
RobertDickau
Flexera Alumni

For InstallScript, there's also SYSINFO.
0 Kudos
ChandanOmkar
Level 8

There are keywords WINMAJOR and WINMINOR whcih can be used to check the OS major version and minor version repectively.

For Vista,
Major version = 6
Minor version = 0

For Windows 7 ,
Major version = 6
Minor version = 1
0 Kudos