The name of the value to set. If it is the empty string, sets the default value.
The string value to set.
If true, the value will be stored as an expandable environment string, otherwise as a normal string.
If a value corresponding to the requested name is not found, RegistryException is thrown.
Sets the named value with the given string value.