Kvaser D-PDU Library
Root File

Purpose

D-PDU depends on a root file that contains information of the locations of installed D-PDU libraries. This allows libraries of different vendors and versions to co-exist.

If this file is already present, it will be modified by a helper application named setup_library that adds or removes (on uninstall) information to or from it.

The location of this file depends on whether Windows or Linux is used:

Windows

The location is read from the Windows registry key(s):

HKEY_LOCAL_MACHINE\SOFTWARE\D-PDU API\Root File
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\D-PDU API\Root File

(The second line is for 32 bit applications)

If there is or has been a previous D-PDU installation. This key can already exist and the root file path is known.

If this is the first D-PDU installation, a new root file is created in

C:\ProgramData\D-PDU API\pdu_api_root_x64.xml
C:\ProgramData\D-PDU API\pdu_api_root_x86.xml

(The second line is for 32 bit applications)

Linux

/etc/pdu_api_root.xml

For a first time installation, the file typically looks like this:

<?xml version="1.0" encoding="utf-8"?>
<MVCI_PDU_API_ROOT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" MVCI_PART2_STANDARD_VERSION="2.2.0">
<MVCI_PDU_API>
<SHORT_NAME>Kvaser_DPDU_API_1.0.0</SHORT_NAME>
<DESCRIPTION>D-PDU API implementation for Kvaser Hardware</DESCRIPTION>
<SUPPLIER_NAME>Kvaser AB</SUPPLIER_NAME>
<LIBRARY_FILE URI="file:/C:\Program Files\Kvaser\D-PDU-API-1.0.0\32\kvdpdulib.dll" />
<MODULE_DESCRIPTION_FILE URI="file:/C:\Program Files\Kvaser\D-PDU-API-1.0.0\MDF.xml" />
<CABLE_DESCRIPTION_FILE URI="file:/C:\Program Files\Kvaser\D-PDU-API-1.0.0\CDF.xml" />
</AMVCI_PDU_API>
</MVCI_PDU_API_ROOT>