Ejemplo n.º 1
0
        private void FormLauncher_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!TestDlg32Reg)
            {
                RegRun.UnRegLib("/s " + Application.StartupPath + "/lib/COMDLG32.OCX");
            }
            if (!TestComCTLReg)
            {
                RegRun.UnRegLib("/s " + Application.StartupPath + "/lib/MSCOMCTL.OCX");
            }

            try
            {
                RegUst.UnRegFile(".ust");
                RegUst.UnRegFile(".uar");
            }
            catch (Exception errorMsg)
            {
                MessageBox.Show(errorMsg.Message);
            }
            notifyIcon.ShowBalloonTip(5000, "UTAURtLibHelper - 启动器模式", "UTAU已退出", ToolTipIcon.Info);

            if (Directory.Exists(@".\lib"))
            {
                Directory.Delete(@".\lib");
            }
        }
 private void btnMSCOMCTL_MouseDown(object sender, MouseEventArgs MouseE)
 {
     if (MouseE.Button == MouseButtons.Right || MouseE.Button == MouseButtons.Middle)
     {
         DialogResult Res = MessageBox.Show("是否反注册MSCOMCTL.OCX?", "反注册", MessageBoxButtons.OKCancel);
         if (Res == DialogResult.OK)
         {
             RegRun.UnRegLib(SystemFile + "MSCOMCTL.OCX");
         }
     }
 }
Ejemplo n.º 3
0
 private void btnReg_MouseDown(object sender, MouseEventArgs MouseE)
 {
     if (FileName == null || FileName == "")
     {
         MessageBox.Show("请选择文件", "反注册");
     }
     else
     {
         if (MouseE.Button == MouseButtons.Right || MouseE.Button == MouseButtons.Middle)
         {
             DialogResult Res = MessageBox.Show("是否反注册" + FileName, "反注册", MessageBoxButtons.OKCancel);
             if (Res == DialogResult.OK)
             {
                 RegRun.UnRegLib(SystemFile + FileName);
             }
         }
     }
 }