none
setupcopyoeminf with sp_copy_nooverwrite doesn't bring error. RRS feed

  • Question

  • Hello, I'm using setupcopyoeminf with sp_copy_nooverwrite flag as CopyStyle but have a little problem. I called this function to make sure that inf file is copied to INF directory(I also checked manually and it was there) Here is the the exact way I call:

      SetupCopyOEMInf(Inf, NULL, SPOST_NONE,
                          SP_COPY_NOOVERWRITE,
                              NULL, 0, NULL, NULL);

    But on second call of SetupCopyOEMInf didn't bring me error code ERROR_FILE_EXISTS as it should have, according to documentation. I have windows 10 build version 1709. I also checked the windows 10 1703 build and had same issue there too. Hope you can help. thanks. 


    • Edited by jajana Friday, November 10, 2017 9:07 AM
    Friday, November 10, 2017 9:05 AM

Answers

  • The new api to do this is DiInstallDriver. You can also use pnputil /add-driver to call this api.

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.


    Friday, November 10, 2017 3:32 PM