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