public void StartAdapterUninstaller()
        {
            UM.RunAdapterExe(Uninstallertitle, "[CLASS:Static; INSTANCE:10]", "Modify, repair, or remove the program.", AutoHelper.AdapterInstallerExe);//[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:4]
            var isAdapterInstalled = AutoHelper.IsAdapterInstalled();
            var processes          = Process.GetProcesses();

            foreach (var theProcess in processes)
            {
                if (theProcess.MainWindowTitle == Uninstallertitle)
                {
                    if (isAdapterInstalled)
                    {
                        UM.AUWelcome(Uninstallertitle, "", "[CLASS:Button; INSTANCE:5]", "[CLASS:Static; INSTANCE:10]",
                                     "Modify, repair, or remove the program.", "[CLASS:Button; INSTANCE:3]");

                        UM.AUWarning1("Infor Risk & Compliance Adapter", "", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:2]",
                                      "Wizard will start un-installation of Infor Risk & Compliance Adapter.");


                        UM.AUWarning2("Infor Risk & Compliance Adapter", "&Yes", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:2]",
                                      @"Uninstalling Infor Risk & Compliance Adapter will lead to loss of rules and violations/exceptions for all activated Insights.");

                        UM.AUWait(Uninstallertitle, "[CLASS:Static; INSTANCE:4]", "Maintenance Complete");

                        UM.AUCompleteuninstallation(Uninstallertitle, "&Finish", "[CLASS:Button; INSTANCE:4]",
                                                    "[CLASS: Static; INSTANCE: 4]", "Maintenance Complete");
                    }
                }
            }
        }
Esempio n. 2
0
        public void StartAdapterExe()
        {
            _im.RunExe(AdapterInstallerAppTitle, "[CLASS:Static; INSTANCE:3]", "Welcome to the InstallShield Wizard for Infor Risk & Compliance Adapter", AutoHelper.AdapterInstallerExe);
            var isAdapterInstalled = AutoHelper.IsAdapterInstalled();
            var processes          = Process.GetProcesses();

            foreach (var theProcess in processes)
            {
                if (theProcess.MainWindowTitle == AdapterInstallerAppTitle)
                {
                    if (!isAdapterInstalled)
                    {
                        _im.Welcome(AdapterInstallerAppTitle, "", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:3]", "Welcome to the InstallShield Wizard for Infor Risk & Compliance Adapter", theProcess);
                        _im.SelectLicense(AdapterInstallerAppTitle, "&Next >", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:1]", "Choose license file location", "[CLASS:Button; INSTANCE:6]");
                        _im.CustomInfirmation(AdapterInstallerAppTitle, "", "[CLASS:Button; INSTANCE:2]", "[CLASS:Static; INSTANCE:5]", "Customer Information", "[CLASS:Edit; INSTANCE:1]", AutoHelper.IrcOwnerName, "[CLASS:Edit; INSTANCE:2]", AutoHelper.IrcCompanyName);
                        _im.SelectFeatures(AdapterInstallerAppTitle, "", "[CLASS:Button; INSTANCE:5]", "[CLASS:Static; INSTANCE:2]", "Select Features", "[CLASS:ISAVIEWCMPTCLASS; INSTANCE:1]", false);
                        _im.WebSiteSelection(AdapterInstallerAppTitle, "", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:3]", "Web Site Selection");
                        _im.StartCopyingFile(AdapterInstallerAppTitle, "", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:5]", "Start Copying Files");
                        _im.VirtualFoldersRemovalPopup("Question", "", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:2]", @"Setup has detected existing Virtual folder(s) with name");
                        _im.Winwait(AdapterInstallerAppTitle, "[CLASS:Static; INSTANCE:4]", "InstallShield Wizard Complete");
                        _im.InstallComplete(AdapterInstallerAppTitle, "", "[CLASS:Button; INSTANCE:4]", "[CLASS:Static; INSTANCE:4]", "InstallShield Wizard Complete");
                    }
                    else
                    {
                    }
                }
            }
        }
        public void StartServicesUninstaller()
        {
            //UM.isServiceInstallation = true;

            UM.RunServiceExe(Uninstallertitle, "[CLASS:Static; INSTANCE:10]", "Modify, repair, or remove the program.", AutoHelper.ServicesInstallerExe);//[CLASS:WindowsForms10.STATIC.app.0.141b42a_r6_ad1; INSTANCE:4]
            var processes = Process.GetProcesses();

            foreach (var theProcess in processes)
            {
                if (theProcess.MainWindowTitle == Uninstallertitle)
                {
                    if (AutoHelper.IsServicesInstalled() && !AutoHelper.IsAdapterInstalled())
                    {
                        UM.SUWelcome(Uninstallertitle, "", "[CLASS:Button; INSTANCE:5]", "[CLASS:Static; INSTANCE:10]",
                                     "Modify, repair, or remove the program.", "[CLASS:Button; INSTANCE:3]");

                        UM.SUWarning1("Infor Risk & Compliance Services", "", "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:2]",
                                      "Wizard will start un-installation of Infor Risk & Compliance Services. Do you want to continue?");

                        UM.SUWaitPopup(Uninstallertitle, "[CLASS:Static; INSTANCE:2]",
                                       "Uninstall will remove Infor Risk & Compliance Core database.", "Infor Risk & Compliance Services");

                        UM.SUWarningDBBackup("Infor Risk & Compliance Services", "", "[CLASS:Button; INSTANCE:1]",
                                             "[CLASS:Static; INSTANCE:2]",
                                             @"Uninstall will remove Infor Risk & Compliance Core database.");

                        UM.SUWaitPopup(Uninstallertitle, "[CLASS:Static; INSTANCE:2]",
                                       "Database is backed up with name", "Infor Risk & Compliance Services - InstallShield Wizard");

                        UM.SUWarningDBdeleted("Infor Risk & Compliance Services", "",
                                              "[CLASS:Button; INSTANCE:1]", "[CLASS:Static; INSTANCE:2]",
                                              "Database is backed up with name");

                        UM.SUWait(Uninstallertitle, "[CLASS:Static; INSTANCE:4]", "Maintenance Complete");

                        UM.SUCompleteuninstallation(Uninstallertitle, "", "[CLASS:Button; INSTANCE:4]",
                                                    "[CLASS:Static; INSTANCE:4]", "Maintenance Complete", "[CLASS:Button; INSTANCE:2]");
                    }
                }
            }
        }