Using the registry or file system. The reason for the limitation is that I am doing this as a conditional MSI statement.
Hurrah!
in the registry key
HKLM \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion
find the key pair:
CurrentVersion = Microsoft Windows NT 5.1.2600 Service Pack 3
You should find enough information to determine the OS service pack (in the worst case, you can always use the build string) in the following registry key:
HKLM\Software\Microsoft\Windows NT\CurrentVersion
MSI, VersionNT ServicePackLevel .
. Windows XP sp3 :
VersionNT=501 And ServicePackLevel>2
WindowsBuild, .
VerifyVersionInfo , Windows , , GetVersionEx (, - , , Vista, Windows 7 ).
"" ( Windows + r /) msinfo32 sysdm.cpl