views:

160

answers:

3

How to obtain Vista Edition programmatically, that is Home Basic, Home Premium, Business or Ultimate ?

+5  A: 

MSDN gives extensive answer:

Getting the System Version

aku
+1  A: 

Environment.OSVersion

Ed Guiness
A: 

Brilliant! This is just what I need as well. Thanks aku.

edg: Environment.OSVersion contains a version string but this doesn't generally give enough information to differentiate editions (also applies to XP Home/XP Pro). Also, there's the risk that this string will be localised so matching on it woudn't necessarily work.

Bart Read