I have a driver inf and catalog that was generated with Libusbdotnet for my USB device. 

Everything works well, except the whole driver installation that is really cumbersome. Because my driver is not digitally signed and it's not in WHQL ... it takes alot of user interaction to install the driver for my device. 

So I'm looking to do this automatically still without signing and WHQL if possible. So I did a little researched and found SetupCopyOEMInf function. 

I have an application written in c# and .net and also have a MSI package. 

Basically I would like to be able to use SetupCopyOEMInf during the installation so it can copy the drivers so that windows can detect automatically the driver when the user first plugs the device in. 

But I can't find any exemple showing how to use SetupCopyOEMInf. 

Any help is appreciated. 

Thank you,