Both questions can be answered with EasyHID.

The serial number is entered on one of the setup screens.

And EasyHID will make a "Starting" program for either VB or Delphi.
<br>