What does setupapi.dev.log say about the attempt to copy?
SetupCopyOEMInf fails in few systems having Windows 8.1 and Windows 10
Sr1004
1
Reputation point
I am trying to install custom driver using the code
if(SetupCopyOEMInfW(arg, NULL, SPOST_PATH, 0, file,
ARRAY_SIZE(file), NULL, NULL))
{
}
SetupCopyOEMInfW returns false
where arg is path to the inf file
GetLasterror gives 2147418113 and sometimes 1906440435