LaunchCondition - Minimum Service Pack per Windows release - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

daleq
Posts: 10
Joined: Tue Jul 21, 2009 5:30 pm

LaunchCondition - Minimum Service Pack per Windows release

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
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: LaunchCondition - Minimum Service Pack per Windows release

Hi Dale,

Thank you for your contribution. I am sure it will be of use to other Advanced Installer users.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”