Using UploadPrinterDriverPackage for driver upload results in error 0x80070490.
UploadPrinterDriverPackageA(NULL,infPath.c_str(),"Windows x64",UPDP_UPLOAD_ALWAYS,GetDesktopWindow(),targetPath,&length);
However, if i run pnputil to install the same it works fine.Also, after using pnputil twice, if I remove the package and use the API, it succeeds every time afterwards.
What difference does pnputil make? What does the error code mean?
Any help is appreciated much.
User contributions licensed under CC BY-SA 3.0