Пример #1
0
        private void uninstallerTest_btn_Click(object sender, EventArgs e)
        {
            err_list.Items.Clear();
            messages.Items.Clear();
            load_text.Visible = false;
            Registry_Values_lbl.Text = "";
            string[] reg = { "AdoMadoApiKey", "AdomadoToolbarId", "CurrentUser", "CurrentVersion", "Guid" };
            uninstaller_tests init = new uninstaller_tests();
            installer_tests init1 = new installer_tests(); //same function call as installer just to read the registry
            string p = init.program_files(err_list,messages);
            string r = init1.registry_chk(err_list, reg, Registry_Values_lbl,messages);
            string b = init1.browser_chk(Registry_Values_lbl, messages);
            if ((p == "Success") && (r == "Fail")&& (b=="Fail"))
            {
                list_head_lbl.Visible = false;
                messages.Visible = true;
                message_lbl.Visible = true;
                Reg_lbl.Visible = true;
                messages.Items.Insert(0, "Uninstaller Test SUCCESSFUL!");
                MessageBox.Show("Uninstaller Test SUCCESSFUL!");

            }
            else
            {
                Registry_Values_lbl.Visible = true;
                list_head_lbl.Visible = true;
                message_lbl.Visible = true;
                Reg_lbl.Visible = true;
                MessageBox.Show("Uninstaller Test completed. \n RESULT : Some files/entries still present");
                MessageBox.Show("Check the lists for tracked files/entries");
                err_list.Visible = true;
            }
        }
Пример #2
0
        private void installerTest_btn_Click(object sender, EventArgs e)
        {
            err_list.Items.Clear();
            messages.Items.Clear();
            load_text.Visible = false;
            Registry_Values_lbl.Text = "";
            string[] Prog_files = { "PartnerToolbar.config", "AdomadoBar_1.0.2.dll", "AdoMadoBarUser.config", "app.config", "Interop.SHDocVw.dll", "Microsoft.mshtml.dll", "Newtonsoft.Json.Net20.dll", "RegisterAdoMado.exe", "SpicIE.dll", "UnInstallAdoMado.exe", "UnInstaller.exe", "wait.html", "Chrome\\Adomado.crx", "IE\\config.txt", "Updater\\AdomadoUpdater.exe", "Firefox\\install.rdf" };
            string[] reg = {"AdoMadoApiKey","AdomadoToolbarId","CurrentUser","CurrentVersion","Guid" };
            installer_tests init = new installer_tests();
            string p = init.program_files(err_list,Prog_files,messages);
            string r = init.registry_chk(err_list,reg,Registry_Values_lbl,messages);
            string b = init.browser_chk(Registry_Values_lbl,messages);

            if ((p == "Success")&&(r == "Success")&&(b=="Success"))
            {
                Registry_Values_lbl.Visible = true;
                messages.Visible = true;
                message_lbl.Visible = true;
                Registry_Values_lbl.Visible = true;
                Reg_lbl.Visible = true;
                MessageBox.Show("Installer Test SUCCESSFUL!");
                messages.Items.Insert(0, "Installer Test SUCCESSFUL!");

            }
            else
            {
                Registry_Values_lbl.Visible = true;
                list_head_lbl.Visible = true;
                messages.Visible = true;
                message_lbl.Visible = true;
                Reg_lbl.Visible = true;
                MessageBox.Show("Installer Test complete.\nRESULT : Some files/entries missing");
                MessageBox.Show("Check the list for missing files/entries");
                err_list.Visible = true;
            }
        }