2

I am creating a Setup project using VS 2010, where I want that setup should run only if it is running on Windows 7 or above operating system.

How can I add a launch condition for this in setup and deployment project?

ajay_whiz
  • 17,573
  • 4
  • 36
  • 44
Vipul
  • 1,563
  • 4
  • 22
  • 46

1 Answers1

2

Using wix you can do this. Please see the example here

Community
  • 1
  • 1
Jits
  • 712
  • 7
  • 11
  • 4
    I want to use Setup project only with VS 2010. But it helps me I have added a new launch condition and assign VersionNT >= 601 value to condition property. – Vipul Jul 07 '11 at 12:37
  • And if you're looking to target other operating systems (not solely Windows 7) you can use the reference table here - http://msdn.microsoft.com/en-us/library/windows/desktop/aa372495(v=vs.85).aspx – Henry C Apr 10 '12 at 02:18