Add launch conditions

This section demonstrates the process of adding launch conditions to a Setup and Deployment Project for a Windows SideShow gadget, in order to check the operating system and the managed runtime.

Add launch conditions

You must add a launch condition to check whether the target computer is running a version of the Windows operating system that supports Windows SideShow. In addition, you must create a launch condition that checks for an installation of the Windows SideShow Managed Runtime.

Add a launch condition to verify a supported operating system

  1. Select the HelloWorld project in Solution Explorer. On the View menu, point to Editor, and then click Launch Conditions.

  2. In the Launch Conditions Editor, select Launch Conditions.

  3. On the Action menu, click Add Launch Conditions.

  4. Rename the condition VistaRequired.

  5. In the Properties window, select Condition, and then type “VersionNT>=600”. Select Message, and then type, “This software can only be installed on one of the following editions of Windows Vista: Home Premium, Business, Enterprise, or Ultimate.”

Add a launch condition to verify that the Managed Runtime is installed

  1. Select Requirements on Target Machine.

  2. On the Action menu, click Add Windows Installer Launch Condition.

  3. Select Search for Component1.

  4. In the Properties window, select ComponentId, and then type: “{0E9B1871-4727-4616-AFD6-6355FB52FFBF}”. This GUID represents the Windows SideShow Managed Runtime 1.0.

  5. In the Launch Condition Editor, select Condition1.

  6. In the Properties window, select Message, and then type: This setup requires the Windows SideShow Managed API 1.0. Please install the Windows SideShow Managed API and run this setup again. The Windows SideShow Managed API can be obtained from the web. Would you like to do this now?

  7. Select InstallUrl and type “https://go.microsoft.com/fwlink/?LinkId=119589”. This link points to the download page for the Windows SideShow Managed API 1.0.

For more information on launch conditions, see Deployment Conditions.