Reputation: 378
My .NET application requires Windows XP SP3 or above to run. So I would like to check for the OS version before allowing user to install. How can I achieve this in a VS2008 setup project or another way?
Upvotes: 1
Views: 590
Reputation: 21416
This can be done through a custom launch condition:
in its Properties pane set Condition field to:
(VersionNT > "502") OR ((VersionNT = "502") AND (ServicePackLevel = "3"))
set Message field to the error message you want to display when the Windows version is not supported
When launching your package, if the launch condition is not met an error is shown and the installation stops.
You can read more about this here: http://setupanddeployment.com/installation-environment/install-resources-windows-ver/
Upvotes: 2