<key>

The <key> element specifies a registry key to be modified or created. Nested registry keys require nested <key> elements within the test script. If a specified key does not exist will be created. The reset attribute allows for the specified key to be deleted and recreated. If the <key> element contains a <value> element, the contents of the <value> will specify the value to which the named key should be set.

Structure

Contains:
  • <key>
  • <value>
Contained By:
  • <registry>
  • <key>
Attributes
Name Description Data Type Default Value Required
name This attribute specifies the name of the registry key to be affected by the <key> element. May also contain one of:
  • HKLM - HKEY_LOCAL_MACHINE
  • HKCU - HKEY_CURRENT_USER
string none Yes
reset This attributes specifies whether the named key should be reset. The value t is treated as true and will result in the key being deleted and recreated. The value f is false. string f No