soft Attribute

Applies To: Windows Server 2008

The soft attribute is a Boolean value. If true, a registry value will not overwrite a previously set value; otherwise, registry values will always be saved.

Syntax

soft="<true|false>"

where

true represents only apply the registry value if no current value exists.

false represents always apply the registry value.

Remarks

The soft attribute is an optional attribute, false by default. This attribute can be used in cases where you might use Group Policy to set a user configurable option for an application. Group Policy would then predefine the option if the user had not already configured it.

Examples

This XML fragment specifies a decimal element that will store its value in a REG_DWORD registry value if it doesn't currently exist.

<decimal id="Sample_NumericTextLabel"

valueName="ExampleAppConfig"

soft="true" />

Additional references

decimal Element (elements)

text Element