private void SetUninstallMode(InstallerWizard wizard) { DataModel.InstallationConfiguration.Azure.ShouldDelete = true; DataModel.InstallationConfiguration.Azure.ShouldDeleteAppRegistration = true; DataModel.InstallationConfiguration.Azure.Luis.ShouldDelete = true; DataModel.InstallationConfiguration.PowerApps.ShouldDelete = true; wizard.RemovePage(typeof(FeatureSelectionInstallationControl)); wizard.AddPage(typeof(UninstallInstallationControl), UninstallInstallationControl.PageName, UninstallInstallationControl.PageDescription, false, false); wizard.AddPage(typeof(InstallerConfirmActionsInstallationControl), "Confirm Uninstall", "Confirm the removal of resources.", false, true); wizard.AddPage(typeof(UninstallRemoveInstallationControl), UninstallRemoveInstallationControl.PageName, UninstallRemoveInstallationControl.PageDescription, false, true); wizard.AddPage(typeof(InstallerCompleteInstallationControl), InstallerCompleteInstallationControl.PageName, InstallerCompleteInstallationControl.PageDescription, true, false); }
private void BuildUpdateSteps(InstallerWizard wizardContext) { Feature uiComponents = DataModel.InstallationConfiguration.Features[FeatureNames.UIComponents]; if (uiComponents.ShouldInstall) { wizardContext.BuildWizard(uiComponents, DataModel.InstallationConfiguration.Features); } Feature apiComponents = DataModel.InstallationConfiguration.Features[FeatureNames.APIComponents]; if (apiComponents.ShouldInstall) { wizardContext.BuildWizard(apiComponents, DataModel.InstallationConfiguration.Features); } wizardContext.AddPage(typeof(InstallerCompleteInstallationControl), null, null, true, false); }