I can't help with your tool, but I can tell you there are plenty of tools already available that do the same job, some free, some not. Also, you can't depend on the .inf file to get a complete file list of a particular driver. Most of the time you can, but not always. I'm pretty sure it was Nvidia's GeForce drivers awhile back that I discovered this with. I don't remember specific versions, but it was consistent across several consecutive releases. Think it was in the late 170.xx series. There was a single file not listed in the .inf that would get installed and without it, there would be errors. Don't remember the name of the file though, as it's been a long time since I've bothered working with drivers in that manner. I think my Realtek lan driver had the same issue as well.