PDA

View Full Version : How to judge the OS is Windows Vista?



RickyXing
07-16-2006, 08:47 PM
How to judge the OS is Windows Vista?

Thanks a lot!

Christopher Painter
07-16-2006, 10:15 PM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/operating_system_property_values.asp

RickyXing
07-17-2006, 02:38 AM
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/operating_system_property_values.asp

Thank you very much.
But I don't what do you mean?
How to use the proerty which you show me in msdn in installshield ?

William-Webb
07-17-2006, 03:58 AM
You will need to search the target system's registry for the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion and check the value to see if it is equal to the M$ Version code (Vista is 600)

Christopher Painter
07-17-2006, 08:28 AM
What project type are you using and what do you want to do with the information? It's just a property ( VersionNT ) so you don't really need to go reading from the registry to get it. WindowsInstaller does this for you for free.

RobertDickau
07-17-2006, 09:10 AM
Right, in MSI it's VersionNT=600, and in InstallScript it should be SYSINFO.nISOSL=ISOSL_WINVISTA; it shouldn't be necessary to read from the registry.

RickyXing
07-18-2006, 12:08 AM
Right, in MSI it's VersionNT=600, and in InstallScript it should be SYSINFO.nISOSL=ISOSL_WINVISTA; it shouldn't be necessary to read from the registry.

It is a good method. Thanks a lot.
And thanks for all the reply.