Using the Ndi\Compatibility keys described previously, it is possible for an INF to install other devices. These devices may be described in other INFs. To accomplish this, an INF must do the following:
For example, if MYDEVICE in Myndi.inf required OTHERDEVICE in Other.inf, MYNDI should look like the following:
[MYDEVICE.ndi]
AddReg=MYDEVICE.ndi.addreg
CopyFiles=MYDEVICE.ndi.copyfiles,MYDEVICE.inf.copyfiles
[MYDEVICE.ndi.addreg]
HKR,Ndi,DeviceID,,MYDEVICE
HKR,Ndi,InstallInf,,"OTHER.INF"
; ...other registration info...
HKR,Ndi\Install,,,"MYDEVICE.Install"
[MYDEVICE.inf.copyfiles]
MyNDI.INF
OTHER.INF
[MYDEVICE.Install]
AddReg=MYDEVICE.Install.addreg
CopyFiles=MYDEVICE.Install.copyfiles
[MYDEVICE.Install.addreg]
; Registry keys needed to start this component
[MYDEVICE.Install.copyfiles]
[DestinationDirs]
MYDEVICE.inf.copyfiles = 17 ; INF directory