Example #1
0
    static public void ManagedUIAproach()
    {
        ManagedProject project = CreateProject();

        // Note the `ScheduleDowngradeUICheck` method parameters in the code below are for demo purpose only.
        // They can be completely omitted as in this sample they are identical to their default values.

        project.ManagedUI = ManagedUI.Default;
        project.ScheduleDowngradeUICheck(
            "Later version of the product is already installed : ${installedVersion}",
            (thisVersion, installedVersion) => thisVersion <= installedVersion);

        Compiler.BuildMsi(project, "setup.msi");
    }