Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Operating System Version Prerequisite

I have an application that requires at least Windows XP SP3. How can I go about checking for it either in the application itself, or in the MSI, and automating the installation?

like image 469
Jeremy Avatar asked Mar 31 '26 23:03

Jeremy


1 Answers

In MSI you author a LaunchCondition using the Operating System Properties

You want to check that VersionNT > 501 or ( VersionNT = 501 and ServicePackLevel > 2 )

(tweak to meet your exact needs )

In Windows Installer XML this looks like:

<Product...>
  <Condition Message="[ProductName] Setup requires Windows XP SP3 or greater to install">VersionNT > 501 or ( VersionNT = 501 and ServicePackLevel > 2 ) or Installed</Condition>
...
</Product>
like image 162
Christopher Painter Avatar answered Apr 02 '26 14:04

Christopher Painter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!