Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Conditions to Check When Creating Patches Using Wise Package Studio

Updated: 16 May 2008
WiseUser's picture
0 0 Votes
Login to vote

To Check the Windows OS version on target machine, look for the "VersionNT" MSI property. This property's values, for different OSs, are as follows:

System VersionNT
Windows NT 4.0 (Gold) 400
Windows NT 4.0 + Service Pack 1 400
Windows NT 4.0 + Service Pack 2 400
Windows NT 4.0 + Service Pack 3 400
Windows NT 4.0 + Service Pack 4 400
Windows NT 4.0 + Service Pack 5 400
Windows NT 4.0 + Service Pack 6 400
Windows 2000 500
Windows 2000 + Service Pack 1 500
Windows XP 501
Windows XP + Service Pack 1 501
Windows Server 2003 family 502

To check for the Service pack on Windows O.S., look for the "CSDVersion" value under the following key:
HKLM\Software\Microsoft\Windows NT\CurrentVersion

To check for the Suite of Windows O.S (for ex Terminal Server), look for the "ProductSuite" value under the following key:
HKLM\System\CurrentControlSet\Control\ProductOptions

To check for the Type of Windows O.S (for ex Server/Workstation), look for the "ProductType" value under the following key:
HKLM\System\CurrentControlSet\Control\ProductOptions

To check for the Version of Internet Explorer, look for the "Version" value under the following key:
HKLM\Software\Microsoft\Internet Explorer

Assuming we define:

  • VARCSDVERSION for Windows O.S. service packs
  • VARPRODUCTTYPE for Type of Windows O.S.
  • VARPRODUCTTYPESUITE for Suite of Windows O.S.

We have following conditions for the Operating Systems:

Windows NT 4.0 SP6:
VersionNT="400" AND VARCSDVERSION = "Service Pack 6"

Windows NT 4.0 SP6 Server:
VersionNT="400" AND VARPRODUCTTYPE = "ServerNT" AND
VARCSDVERSION = "Service Pack 6" AND NOT Installed AND NOT PATCH

Windows NT 4.0 SP6 WorkStation:
VersionNT="400" AND VARPRODUCTTYPE = "WinNT" AND
VARCSDVERSION = "Service Pack 6" AND NOT Installed AND NOT PATCH

Windows NT 4.0 SP6 Terminal Server:
VersionNT="400" AND VARPRODUCTTYPESUITE = "Terminal Server" AND
VARCSDVERSION = "Service Pack 6" AND NOT Installed AND NOT PATCH

Windows 2000 SP1
VersionNT="500" AND VARCSDVERSION = "Service Pack 1"

Windows XP SP1
VersionNT="501" AND VARCSDVERSION = "Service Pack 1"

Windows XP Gold
VersionNT="501" AND ServicePackLevel = 0

Windows 2003
VersionNT="502" AND NOT Installed AND NOT PATCH

Note: Conditions MAY NOT evaluate properly if one of the search registry key does not exists (for ex. ProductSuite key might not exist on Windows NT Workstation or server). For this reason, try to make the Property name, which will hold the search result of that key, such that it comes as a last row in AppSearch table (so that it is searched in end). In the examples, above VARCSDVERSION Property is populated first, followed by VARPRODUCTTYPE, followed by VARPRODUCTTYPESUITE.