The basic ADM language allows the creation of a simple .adm file that either creates a VALUENAME of REG_DWORD type with a value of 1 or removes the value completely. Using the following modifiers can provide additional options.
Displays a line of static (label) text. No associated registry value exists for this part type. The TEXT part type accepts no type-specific data. This is useful for displaying a description.
The only valid keyword for TEXT is END.
Displays an edit field that accepts alphanumeric text. The text is set in the registry with the REG_SZ type. The EDITTEXT part type accepts the following options:
CharToOem <JavaScript:hhobj_1.Click()> function to convert an ASCII string in the edit control to OEM characters. This style is most useful for edit controls that contain file names.
The valid keywords for EDITTEXT are:
Displays a combo box. The COMBOBOX part type accepts the same options as EDITTEXT, as well as the following option:
SUGGESTIONS. Begins a list of suggestions to be placed in the drop-down list. SUGGESTIONS are separated with spaces and must be enclosed by double quotation marks when a value includes spaces. The list ends with END SUGGESTIONS.
For example:
SUGGESTIONS
Alaska Alabama Mississippi "New York"
END SUGGESTIONS
Displays a check box. The value is set in the registry with the REG_DWORD type. The value will be nonzero if the check box is selected by the user and zero if it is cleared. The CHECKBOX part type accepts the following options:
The default behavior of a check box is to write the value 1 to the registry if it is selected and 0 if it is cleared. VALUEON and VALUEOFF are used to override this behavior. For example, the following option writes "Fred" to the registry when the check box is selected.
VALUEON "Fred"
The following option writes the value 12 to the registry when the check box is cleared.
VALUEOFF NUMERIC 12
The valid keywords for CHECKBOX are:
Displays a combo box with a drop-down list style. The user can choose from only one of the entries supplied. The main advantage of a combo box with a drop-down list is that a number of extra registry edits can be specified, based on the user's selection. The DROPDOWNLIST part type accepts the ITEMLIST and REQUIRED options.
Each item in the ITEMLIST option must be specified as follows:
NAME name VALUE value
[ACTIONLIST actionlist]
...
where:
name is the text to be displayed in the drop-down list for this item.
value is the value to be written as the part's value if this item is selected. Values are assumed to be strings unless they are preceded by NUMERIC. The following example shows both string and numeric values.
VALUE "Some value"
VALUE NUMERIC 1
If VALUE is followed by DELETE (for example, VALUE DELETE), the registry value name and value pair will be deleted.
actionlist is the optional action list to be used if this value is selected.
The valid keywords for DROPDOWNLIST are:
Displays a list box with Add and Remove buttons. This is the only part type that can be used to manage multiple values under one key. The VALUENAME option cannot be used with the LISTBOX part type because there is no single value name associated with this type. By default, only one column appears in the list box, and for each entry a value is created whose name and value are the same. For instance, a "Fred" entry in the list box would create a value named fred whose data was "fred".
The LISTBOX part type accepts the following options:
The valid keywords for LISTBOX are: