BCI Nodes - RegEntry
<RegEntry> - In BBj 11.0 and higher, this node performs a registry action on the Windows platform. All created values will be a string type.
Attribute |
Description |
Possible Values |
Default Value |
action |
Specifies the registry action to take. |
KEY_CREATE_KEY, KEY_DELETE_KEY, |
none |
hive |
Specifies the registry hive. |
HKEY_LOCAL_MACHINE, |
none |
parent |
Specifies the parent registry. |
registry key |
none |
name |
Name of the registry entry. |
registry entry name |
none |
value |
Value of the registry entry. |
registry entry value |
none |
mode |
Mode of registry. On Windows 64-bit systems this is used to write to the default (same bit as the JVM), 32-bit, 64-bit or both (mirror) registry. |
default, 32, 64, mirror |
default |
uninstall |
Specifies what action should be taken at uninstall time. |
never, always, full |
always |
Common Attribute |
Description |
Possible Values |
Default Value |
bit |
Specifies the Java bit level for which the BCI node will be active. |
0 = All bit levels In BBj 19.21 and later, the following values may also be used: |
0 = All bit levels |
osbit |
Specifies the OS bit level for which the BCI node will be active. |
0 = All bit levels In BBj 19.21 and later, the following values may also be used: |
0 = All bit levels |
portid |
Specifies the port ID for which the BCI node will be active. Multiple port IDs are comma separated. |
See www.basis.cloud/availability for possible port IDs. |
All port IDs |
<Variable> - In BBj 11.0 and higher, this node creates a variable that can be used instead of string value in the custominstall.xml. The following variables are provided by default:
Variable Name |
Variable Value |
$BASISInstallDir |
BASIS installation directory. |
$BASISInstallDrive |
BASIS installation drive on Windows resolves to the drive letter and colon (i.e. d:). |
$DesktopDir |
Desktop directory on Windows. |
$InstallDir |
Installation directory. |
$InstallDrive |
Installation drive on Windows resolves to the drive letter and colon (i.e. d:). |
$ProgramsDir |
Programs directory on Windows. |
$UserHome |
User's home directory. |
$Version |
BBj version. |
Example
<RegEntry action="KEY_CREATE_KEY" hive="HKEY_LOCAL_MACHINE" parent="SOFTWARE\ODBC\ODBC.INI" name="ODBC Data Sources" mode="mirror" uninstall="never"/>
<RegEntry action="KEY_SET_VALUE" hive="HKEY_LOCAL_MACHINE" parent="SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources" name="BBj Barista" value="BBj ODBC Driver" mode="mirror"/>