C# Class WixSharp.RegParser

Based on Henryk Filipowicz work http://www.codeproject.com/Articles/125573/Registry-Export-File-reg-Parser Licensed under The Code Project Open License (CPOL)
Show file Open project: Eun/WixSharp Class Usage Examples

Public Properties

Property Type Description
Encoding System.Text.Encoding
Entries Dictionary>

Public Methods

Method Description
Parse ( string content ) : Dictionary>

Parses the reg file for reg keys and reg values

Private Methods

Method Description
GetEncoding ( string content ) : string

Retrieves the encoding of the reg file, checking the word "REGEDIT4"

NormalizeDictionary ( string searchPattern, string content, bool stripeBraces ) : string>.Dictionary

Creates a flat Dictionary using given search pattern

StripeBraces ( string sLine ) : string

Removes the leading and ending parenthesis from the given string

StripeLeadingChars ( string sLine, string leadChar ) : string

Removes the leading and ending characters from the given string

Method Details

Parse() public method

Parses the reg file for reg keys and reg values
public Parse ( string content ) : Dictionary>
content string
return Dictionary>

Property Details

Encoding public property

public Encoding,System.Text Encoding
return System.Text.Encoding

Entries public property

public Dictionary> Entries
return Dictionary>