예제 #1
0
파일: Type.cs 프로젝트: marcellodash/MBuild
    public static void CloneExtension(string from, string to)
    {
        Clone(from, to);

        RegKey tuk = WFX.Ensure(to + "\\UserChoice");
        RegKey fuk = FX.Open(from + "\\UserChoice");

        if (fuk != null)
        {
            string pid = fuk["Progid"];
            if (pid != null)
            {
                tuk["Progid"] = pid;
            }
        }
    }
예제 #2
0
파일: Type.cs 프로젝트: marcellodash/MBuild
    public static void Delete(string type)
    {
        Exception ee = null;

        if (CU.HasKey(type))
        {
            try { WCU.ZapKey(type); } catch (Exception e) { ee = e; }
        }
        if (FX.HasKey(type))
        {
            try { WFX.ZapKey(type); } catch (Exception e) { ee = e; }
        }
        if (LM.HasKey(type))
        {
            try { WLM.ZapKey(type); } catch (Exception e) { ee = e; }
        }

        if (ee != null)
        {
            throw ee;
        }
    }