Beispiel #1
0
        public override void Uninstall(IDictionary savedState)
        {
            string   oldDirectory = Directory.GetCurrentDirectory();
            FileInfo fi           = new FileInfo(Assembly.GetExecutingAssembly().Location);

            Directory.SetCurrentDirectory(fi.Directory.FullName);

            try
            {
                UnregisterCxpRtpFilters();
            }
            catch (DllNotFoundException)
            {
                MessageBox.Show("Unable to find CxpRtpFilters.ax in the local directory.", "File not found");
            }

            try
            {
                UnregisterScreenScraperFilter();
            }
            catch (DllNotFoundException)
            {
                MessageBox.Show("Unable to find ScreenScraperFilter.ax in the local directory.", "File not found");
            }

            Directory.SetCurrentDirectory(oldDirectory);

            MDShowEventLog.Uninstall();

            if (savedState.Count != 0)
            {
                base.Uninstall(savedState);
            }
        }
Beispiel #2
0
        public override void Uninstall(IDictionary savedState)
        {
            string   oldDirectory = Directory.GetCurrentDirectory();
            FileInfo fi           = new FileInfo(Assembly.GetExecutingAssembly().Location);

            Directory.SetCurrentDirectory(fi.Directory.FullName);

            try
            {
                UnregisterCxpRtpFilters();
            }
            catch (DllNotFoundException)
            {
                RtlAwareMessageBox.Show(null, Strings.MissingCxpRtpFiltersError, Strings.FileNotFound,
                                        MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0);
            }

            try
            {
                UnregisterScreenScraperFilter();
            }
            catch (DllNotFoundException)
            {
                RtlAwareMessageBox.Show(null, Strings.MissingScreenScraperFilterError, Strings.FileNotFound,
                                        MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1, (MessageBoxOptions)0);
            }

            Directory.SetCurrentDirectory(oldDirectory);

            MDShowEventLog.Uninstall();

            if (savedState.Count != 0)
            {
                base.Uninstall(savedState);
            }
        }