Beispiel #1
0
        public static void RollbackRegedCOM(string tempDir)
        {
            List <UninstallFileInfo> rollbackList = new List <UninstallFileInfo>();

            try
            {
                ReadRollbackCOM(Path.Combine(tempDir, "backup\\reggedComList.bak"), rollbackList);
            }
            catch
            {
                return;
            }

            // un-reg COM dlls
            foreach (UninstallFileInfo fileinfo in rollbackList)
            {
                try
                {
                    InstallUpdate.RegisterDllServer(fileinfo.Path, true);
                }
                catch { }
            }
        }
Beispiel #2
0
        public static void RollbackRegedCOM(string tempDir)
        {
            List <UninstallFileInfo> list = new List <UninstallFileInfo>();

            try
            {
                ReadRollbackCOM(Path.Combine(tempDir, "backup\\reggedComList.bak"), list);
            }
            catch
            {
                return;
            }
            foreach (UninstallFileInfo item in list)
            {
                try
                {
                    InstallUpdate.RegisterDllServer(item.Path, Uninstall: true);
                }
                catch
                {
                }
            }
        }