added registry write

public static void SetValue (
string keyName,
string valueName,
Object value,
RegistryValueKind valueKind
)

http://msdn.microsoft.com/en-US/library/3dwk5axy(v=vs.80).aspx