views:

257

answers:

1

Is there a way to programmatically install device driver silently without cat file and without connecting the device on Windows Xp?

I'm using DriverPackageInstall function from Windows Driver Kit. And I can install driver only if device is attached. In other case I get an error: ERROR_NO_SUCH_DEVINST. But that method works fine with Windows Vista.

Another problem is warning dialog that asks user to continue or stop installation because cat file is missing . It shows on both OSes.

Any ideas?

A: 

You're not going to get past the signing prompt, as this is baked pretty far into windows, but there is a tool in the DDK called devinst that works well for device installations.

There's Source Code included with it.

JoelHess