HowTo make driver plugins with hex(a) and hex(8) entries?

Created by cyrano

Up to now, Bart's PeBuilder is not able to use hex(a) and hex(8) Registry entries.
This small HowTo should help you to get these entries to work nevertheless.
Step 1: Make a reg file

- export all the registry entries that your driver needs
- combine these reg files into one file (example: "big.reg")

Step 2: Remove all hex(8) and hex(a) entries

Remove all hex(a) and hex(8) registry entries from the reg file generated in Step 1 ("big.reg").
Do this by moving (Ctrl-x) these entries to a new .reg file (example: "small_hex_special.reg").
Don't forget that the first two lines of this new reg file have to be:

Windows Registry Editor Version 5.00


Step 3: Convert the .reg file to an.inf file

Convert the remaining reg file ("big.reg") to an inf file ("big.inf").
For this task, there are several tools available.
For example: paraglider's ConvRegToInf

Step 4: Add the normal registry entries

Copy the lines from the .inf file generated in Step 3 to the .inf file of your plugin.
Example: Copy the content of "big.inf" into "your_plugin.inf".

A tutorial about HowTo write an inf file for your plugin can be found here. author: Wolfgang Brinkmann

Step 5: Add the special registry entries

Rename the .reg file generated in Step 4 to the name of your plugin, with extension "reg".
Example: Rename "small_hex_special.reg" to "your_plugin.reg"

Then add something like the following lines to the .inf file of your plugin ("your_plugin.inf"):

[WinntDirectories]
a="ADD_REG",2

[SourceDisksFiles]
your_plugin.reg=a,,1





That's it...
If you have questions, please ask them at the forum or PM me there !

Have fun :)
cyrano


P.S.
Be careful with Step 5: If you have already a section called [WinntDirectories], then perhaps you have to choose a different letter for your directory then 'a' .
Like:

[WinntDirectories]
a="bla_bla1",2
b="bla_bla2",2
c="ADD_REG",2

[SourceDisksFiles]
your_plugin.reg=c,,1