public void StartAIInsightInstaller() { string insightName = ""; bool isInsightInstalled = false;// IM.isInsightInstalled(insightName); IM.RunExe(_InsightInstallerAppTitle, "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:4]", "Click Next to Continue, or Cancel to exit Setup", AutoHelper.ExeAiInstallerPath); var processes = Process.GetProcesses(); foreach (var theProcess in processes) { if (theProcess.MainWindowTitle == _InsightInstallerAppTitle) { if (!isInsightInstalled) { // AI Insight Installation IM.AIInsightWelcome(_InsightInstallerAppTitle, "", "m_btnNext", "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:4]", "Click Next to Continue, or Cancel to exit Setup", theProcess); helper.Sleep(50); IM.AIInsightLocationSelection(_InsightInstallerAppTitle, "", "WindowsForms10.BUTTON.app.0.141b42a_r6_ad1", "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:7]", "Choose Insight Location", "[CLASS:WindowsForms10.EDIT.app.0.141b42a_r6_ad1; INSTANCE:1]", AutoHelper.AiInsightpath); helper.Sleep(50); IM.AISelecInsighttLicense(_InsightInstallerAppTitle, "", "m_btnNext", "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:9]", "Choose license file location", "[CLASS:WindowsForms10.EDIT.app.0.141b42a_r6_ad1; INSTANCE:2]", AutoHelper.LicensePath); helper.Sleep(50); IM.AIInsightSelection(_InsightInstallerAppTitle, "", "m_btnNext", "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:13]", "Infor Risk && Compliance Insights Selection"); helper.Sleep(50); IM.AIInstallationSummary(_InsightInstallerAppTitle, "", "m_btnNext", "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:20]", "Installation Summary"); helper.Sleep(50); IM.AIInsightActivation(_InsightInstallerAppTitle, "", "m_btnNext", "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:24]", "Please wait while Setup installs Insights"); helper.Sleep(50); IM.Winwait(_InsightInstallerAppTitle, "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:21]", "Installing Insights on Infor Risk && Compliance : Done."); IM.AIInsightInstallComplete(_InsightInstallerAppTitle, "", "m_btnNext", "[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:21]", "Installing Insights on Infor Risk && Compliance : Done."); // AI Insight Activation InsightAIActivation(); } } } }
public void RunInsightUninstaller(string AppTitle, string PanelID, string SelectionMessage, string ExePath, string Arguments) { helper.RunExe(AppTitle, PanelID, SelectionMessage, ExePath, Arguments); helper.Sleep(3000); }
public void RunServiceActivationExe(string ServiceActivationAppTitle, string _panelId, string _selectionMessage, string _exepath) { if (File.Exists(_exepath)) { helper.RunExe(ServiceActivationAppTitle, _panelId, _selectionMessage, _exepath, ""); // helper.Wait(ServiceActivationAppTitle, _panelId, _selectionMessage); } helper.Sleep(2000); }
public void Welcome(string InstallerAppTitle, string Text, string _btnNextControl, string _panelId, string _selectionMessage, Process process) { if (process.MainWindowTitle == InstallerAppTitle) { //_btnNextControl = "[CLASS:Button; INSTANCE:1]"; //Text = "&Next >"; helper.ButtonClick(InstallerAppTitle, Text, _panelId, _btnNextControl, _selectionMessage); helper.Sleep(2000); } }