Log in

View Full Version : Driver installation Programically???Is it possible?


Hero
January 17th, 2007, 00:54
Hi all
I have a small hardware interface that supports PnP and a driver for it,ready to use.
But for installing is driver:
first you should insert device into your system.
second after question about driver,you select driver and it will install and be ready to use.
Here is my problem:
Is it possible that you automatically fully install your driver without this sequence?
I mean I write a small program that uses my driver .inf file and preform necessery operation for installing my device and then when I insert my device in system,there will be no need of installing my device?
First I thought that only copying .inf file into \system32\inf and .sys file into \system32\driver will be enough,but it seems that there is another generated necessery file with extension .pnf too.
is it enough to create this?if yes,how I can generate it?

Regards

LLXX
January 17th, 2007, 01:29
USB mass storage device drivers are dynloaded as in your example.

I remember a section in the Windows DDK about this. Go find and read it.

disavowed
January 17th, 2007, 10:46
http://www.google.com/search?num=100&hl=en&lr=&safe=off&q=install+driver+programmatically

231,000 hits (the first two are from microsoft.com and codeguru.com). That should be a good start.

Extremist
January 17th, 2007, 16:39
SCM is your Friend.