Hi,
I needed to check for a minimum service pack for the various versions of Windows. It was a pain to do this, so I thought I would share my results.
If anyone has additions/fixes or a better way to do this, feel free to reply.
LaunchConditions
(VersionNT = 501 AND ServicePackLevel >= 3) OR (NOT (VersionNT = 501))
Description="Windows XP requires SP3 or higher for installation."
(VersionNT64 = 502 AND MsiNTProductType = 1 AND ServicePackLevel >= 2) OR (NOT (VersionNT64 = 502 AND MsiNTProductType = 1))
Description="Windows XP x64 requires SP2 or higher for installation."
(VersionNT = 502 AND MsiNTProductType > 1 AND ServicePackLevel >= 2) OR (NOT (VersionNT = 502 AND MsiNTProductType > 1))
Description="Windows 2003 Server requires SP2 or higher for installation."
(VersionNT = 600 AND MsiNTProductType = 1 AND ServicePackLevel >= 1) OR (NOT (VersionNT = 600 AND MsiNTProductType=1))
Description="Windows Vista requires SP1 or higher for installation."
(VersionNT = 600 AND MsiNTProductType > 1 AND ServicePackLevel >= 1) OR (NOT (VersionNT = 600 AND MsiNTProductType > 1))
Description="Windows 2008 Server requires SP1 or higher for installation."
My experience is that VersionNT gets set on an x64 OS (e.g. Vista x64) so duplicate checks are not required for all windows releases.
Also this Microsoft page
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
is incomplete (does not specify x64 releases). Does anyone know of a more complete listing?
Hope this helps.
Dale
FOLLOW US
Get the latest news in Application Packaging