예제 #1
0
 private static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     if (args.Length > 0)
     {
         if (args[0] == "--tv-uninstall-9")
         {
             TeamViewer.Uninstall(9);
         }
         if (args[0] == "--tv-uninstall-11")
         {
             TeamViewer.Uninstall(11);
         }
         if (args[0] == "--tv-uninstall-12")
         {
             TeamViewer.Uninstall(12);
         }
         if (args[0] == "--ocs-uninstall")
         {
             OCS.Uninstall();
         }
         if (args[0] == "--di-uninstall")
         {
             DesktopInfo.Uninstall();
         }
         return;
     }
     Application.Run(new Form1());
 }
예제 #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (InstalledSoftware.NameContain("OCS Inventory"))
            {
                label1.Text        = "Удаляем OCS Inventory";
                progressBar1.Value = 50;

                OCS.Uninstall();
                progressBar1.Value = 100;

                MessageBox.Show("OCS Inventory удален");
                progressBar1.Value = 0;
                label1.Text        = "Для запуска нажмите \"НАЧАТЬ УСТАНОВКУ\"";
            }
            else
            {
                MessageBox.Show("OCS Inventory не установлен");
            }
        }