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; } } }
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; } }