private bool EnsureFramework4(Window mainWindow, Instance instance)
    {
      // verify that .NET framework v4 is used
      if (!instance.IsNetFramework4)
      {
        // suggest to install them
        const string yesEnableSitecoreMvc = "Yes, switch to .NET 4.X";
        const string noCancel = "No, cancel";
        var options2 = new[]
        {
          noCancel, yesEnableSitecoreMvc
        };
        var result2 = WindowHelper.AskForSelection(".NET Framework 4.X is not set", null, 
          "You decided to enable Sitecore MVC, but it requiuires using .NET Framework 4.X in Sitecore instance's application pool for correct work. \n\nWould you like to change .NET Framework version?", 
          options2, mainWindow);

        if (result2 == noCancel)
        {
          return false;
        }

        instance.SetAppPoolMode(true);
      }

      return true;
    }
        private void DoChangeMode(Window mainWindow, Instance instance)
        {
            var title = "Change App Pool Mode";
              var header = title;
              var message = "Change {0} instance's Application Pool mode".FormatWith(instance.Name);
              var options = new[]
              {
            this.GetLabel(instance, 2, false),
            this.GetLabel(instance, 2, true),
            this.GetLabel(instance, 4, false),
            this.GetLabel(instance, 4, true)
              };

              var result = WindowHelper.AskForSelection(title, header, message, options, mainWindow);
              if (result == null)
              {
            return;
              }

              if (result.Contains(LabelCurrent))
              {
            return;
              }

              instance.SetAppPoolMode(result.Contains("4.0"), result.Contains(Label32Bit));
        }