コード例 #1
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnRemoveNorton_Click_1(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("removenorton", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("removenorton", "true");

                DownloadForm dlForm = new DownloadForm("ftp://ftp.symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe", "Norton Removal Tool");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnPrntScanDoc_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("printscandoc", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("printscandoc", "true");

                DownloadForm dlForm = new DownloadForm("http://ftp.hp.com/pub/softlib/software12/COL50849/mp-135113-1/HPPSdr.exe", "HP Print and Scan Doctor");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);

            }
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnRemoveMcAfee_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("removemcafee", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("removemcafee", "true");

                DownloadForm dlForm = new DownloadForm("http://download.mcafee.com/products/licensed/cust_support_patches/MCPR.exe", "McAfee Removal Tool");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #4
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnOffice2010_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("office2010", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("office2010", "true");

                DownloadForm dlForm = new DownloadForm("http://191.238.32.68/Office_2010_Remove.msi", "Office 2010 Removal Tool");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #5
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnOffice2013_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("office2013", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("office2013", "true");

                DownloadForm dlForm = new DownloadForm("http://go.microsoft.com/?linkid=9815935", "Office 2013 Removal Tool");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #6
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnUvk_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("uvk", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("uvk", "true");

                DownloadForm dlForm = new DownloadForm("http://191.238.32.68/uvkportable.exe", "UVK Portable");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #7
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void Form1_Load(object sender, EventArgs e)
        {
            setupButtonAppearance();

            if (!File.Exists("FixEverything.exe.config"))
            {
                createConfig();
            }
            else
            {
                checkSettings();
            }

            // Check for proxy server
            if (isProxyEnabled())
            {
                DialogResult result = MessageBox.Show("Proxy server is enabled on this computer. Would you like to turn it off?",
                    "Proxy Server Enabled", MessageBoxButtons.YesNo);

                if (result == DialogResult.Yes)
                {
                    Process p = new Process();
                    p.StartInfo.FileName = @"C:\Windows\system32\RunDll32.exe";
                    p.StartInfo.Arguments = @"shell32.dll,Control_RunDLL inetcpl.cpl,Internet,4";
                    p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
                    p.Start();
                    Thread.Sleep(500);
                    SendKeys.SendWait("%L");
                    Thread.Sleep(100);
                    SendKeys.SendWait("%X");
                    Thread.Sleep(100);
                    SendKeys.SendWait("~");
                    Thread.Sleep(100);
                    SendKeys.SendWait("{ESC}");
                }
            }

            // Check for updated version
            WebClient client = new WebClient();
            Stream stream = client.OpenRead("http://callme.cloudapp.net/version.txt");
            StreamReader reader = new StreamReader(stream);
            string version = reader.ReadToEnd();
            int serverVersion = Convert.ToInt16(version);
            if (CURRENT_VERSION < serverVersion)
            {
                try
                {
                    DialogResult result = MessageBox.Show("New version of Fix Everything is available. Download now?", "New version available", MessageBoxButtons.YesNo);
                    if (result == DialogResult.Yes)
                    {
                        DownloadForm dlForm = new DownloadForm("http://callme.cloudapp.net/updater.exe", "update");
                        dlForm.StartPosition = FormStartPosition.CenterParent;
                        dlForm.ShowDialog(this);
                    }
                }
                catch (Win32Exception ex)
                {
                    MessageBox.Show("Error!", "Error checking for updates, check your internet connection", MessageBoxButtons.OK);
                }
            }
        }
コード例 #8
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnIobit_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("iobit", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("iobit", "true");

                DownloadForm dlForm = new DownloadForm("http://callme.cloudapp.net/iobituninstaller338.exe", "IObit Uninstaller");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #9
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnKodak_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("kodak", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("kodak", "true");

                DownloadForm dlForm = new DownloadForm("http://download.kodak.com/digital/software/inkjet/v7_8/Bits/webdownload/aio_install.exe", "Kodak Printer Installer");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #10
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnHitman64_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("hitmanpro64", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("hitmanpro64", "true");

                DownloadForm dlForm = new DownloadForm("http://dl.surfright.nl/HitmanPro_x64.exe", "HitmanPro");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #11
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnHp_Click_1(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("hppiw", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("hppiw", "true");

                DownloadForm dlForm = new DownloadForm("http://ftp.hp.com/pub/softlib/software12/COL50403/mp-122330-1/hppiw.exe", "HP Printer Install Wizard");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #12
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnDvd_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("dvd", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("dvd", "true");

                DownloadForm dlForm = new DownloadForm("http://callme.cloudapp.net/CDDVDWin8.meta.diagcab", "DVD Drive Fix");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #13
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnCcleaner_Click_1(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("ccleaner", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("ccleaner", "true");

                DownloadForm dlForm = new DownloadForm("http://www.piriform.com/ccleaner/download/slim/downloadfile", "CCleaner");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #14
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnAmd_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("amd", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("amd", "true");

                DownloadForm dlForm = new DownloadForm("http://www2.ati.com/drivers/auto/amddriverdownloader.exe", "AMD Compatibility Checker");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #15
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnRemoveTrend_Click_1(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("removetrend", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("removetrend", "true");

                DownloadForm dlForm = new DownloadForm("http://solutionfile.trendmicro.com/solutionfile/Titanium-2014/" +
                    "Ti_70_win_global_en_Uninstall_hfb0001.exe",
                    "Trend Micro Removal Tool");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #16
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnMalwarebytesOld_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("malwarebytes175", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("malwarebytes175", "true");

                DownloadForm dlForm = new DownloadForm("http://callme.cloudapp.net/mbam-setup-1.75.0.1300.exe", "Malwarebytes 1.75");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #17
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnRevo_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("revo", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("revo", "true");

                DownloadForm dlForm = new DownloadForm("http://www.revouninstaller.com/download-professional-version.php", "Revo Uninstaller");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #18
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnMalwarebytes_Click_1(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("malwarebytes20", "false");

            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("malwarebytes20", "true");

                DownloadForm dlForm = new DownloadForm("http://downloads.malwarebytes.org/file/mbam/", "Malwarebytes");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #19
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void button2_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("haspdinst", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("haspdinst", "true");

                DownloadForm dlForm = new DownloadForm("http://callme.cloudapp.net/haspdinst.exe", "Sentinel Driver Removal");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }
コード例 #20
0
ファイル: Form1.cs プロジェクト: stopspazzing/Fix-Everything
        private void btnAdwcleaner_Click(object sender, EventArgs e)
        {
            if (Form.ModifierKeys == Keys.Control)
            {
                ((Button)sender).ForeColor = Color.White;
                AddUpdateAppSettings("adwcleaner", "false");
            }
            else
            {
                ((Button)sender).ForeColor = Color.Green;
                AddUpdateAppSettings("adwcleaner", "true");

                DownloadForm dlForm = new DownloadForm("http://callme.cloudapp.net/adwcleaner_3.306.exe", "AdwCleaner");
                dlForm.StartPosition = FormStartPosition.CenterParent;
                dlForm.ShowDialog(this);
            }
        }