• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 888
  • Last Modified:

SetupCopyOemInf on non WHQL USB drivers

Hi,
I have written a simple application that runs to preinstall driver for the Windows XP such that if you plug in the device, the Add New Hardware Window would not appear.

I am able to perform this successfully when my driver has a valid catalog file, which means it is WHQL certifed.

But for non-WHQL certified drivers, I cannot seem to make this work. When I run SetupCopyOemInf, it always returns TRUE, which means the inf was successfully pre-installed. But when I plugged in the device, the Add New Hardware Window still appears.

So my question is, why does SetupCopyOEMInf return true even with drivers having no WHQL certification/ valid catalog file yet when you plug in the device, the Add New Hardware Window still appears?

thanks,
-Fred
/*in this case, result returns 1 (TRUE)*/
/*infPath points to the inf file path*/
/*execPath points to the path of where the inf is contained*/
 
result = SetupCopyOEMInf(
        infPath,
        execPath,
        SPOST_PATH,
        SP_COPY_NOOVERWRITE ,
        destFilename,
        requiredSize,
        &requiredSize,
        NULL
    );

Open in new window

0
adslsw
Asked:
adslsw
  • 2
1 Solution
 
alexcohnCommented:
Did you try to set the Driver Signing policy setting in the Hardware tab of the System Control Panel to Ignore? (If this trick works, you can do this programmatically).
0
 
adslswAuthor Commented:
Hi alexchon, the idea you gave is not working.. I tried it but it doesn't work..
0
 
alexcohnCommented:
To install unsigned USB WiFi adapters, we used a special application that was resident when the HW was actually connected, and this app would find and kill the Add New Hardware Window.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now