-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
WiX Cookbook
By :
Once we're confident that our application works on a particular version of Windows, we may want to prevent users from installing to other unsupported operating systems. Here, we can use a launch condition. Launch conditions evaluate the state of the user's system and then cancel the installation if our requirements aren't met. By checking the operating system version, we can save the end user from trying to use our software on a system it was never intended for.
Create a new setup project and name it SupportedWindowsInstaller.
Add a launch condition that checks the VersionNT property to see what the computer's version of Windows is:
Add a Condition element inside the Product element. Its Message attribute will explain that the current operating system is not supported, as follows:
<Condition Message="Only Windows 8 and up is supported"> </Condition>
Add a conditional statement inside that element that compares...
Change the font size
Change margin width
Change background colour