/// <summary> /// Convert a root key into WiX. /// </summary> /// <param name="sr">Reader for the reg file.</param> /// <param name="writer">XmlWriter to write registry information to.</param> /// <param name="root">Root registry key.</param> /// <param name="line">Current line to parse.</param> private void ConvertRoot(StreamReader sr, XmlWriter writer, RegRoot root, string line) { writer.WriteStartElement("Registry"); writer.WriteAttributeString("Root", root.ToString()); writer.WriteAttributeString("Key", line); this.regId++; // increment the registry key counter this.ConvertValues(sr, writer); writer.WriteEndElement(); }
public override string ToString() { return(String.IsNullOrEmpty(Path) ? Id : Root.ToString() + " " + Path); }