public void OnClick(Window mainWindow, Instance instance)
        {
            if (instance != null)
            {
                if (!MainWindowHelper.IsInstallerReady())
                {
                    WindowHelper.ShowMessage(@"The installer isn't ready - check the Settings window", MessageBoxButton.OK, MessageBoxImage.Exclamation, MessageBoxResult.OK);
                    return;
                }

                string license = ProfileManager.Profile.License;
                Assert.IsNotNull(license, @"The license file isn't set in the Settings window");
                FileSystem.FileSystem.Local.File.AssertExists(license, "The {0} file is missing".FormatWith(license));

                MainWindowHelper.ReinstallInstance(instance, mainWindow, license, ProfileManager.GetConnectionString());
            }
        }