Ask a questionAsk a question
 

AnswerQuestion on deployment

  • Tuesday, November 03, 2009 6:26 PMneil.young Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, 
    I've no rolled my sensor driver and sucessfully installed it using devcon. I fear, I'm not allowed to distribute devcon to a client machine in order to use it there for installation/deinstallation (?). For this I wanted to use DIFxAPI for installing, but this doesn't work either.

    DIFxCmd.exe /i Test.inf
    DIFxAPI Sample Program
    INFO: Option "/i"
    INFO: Input file "C:\SensorsDriver\Test.inf"
    INFO: Flags 0x0 (0)

    TEST: installing driver package.
    LOG Event: 1, ENTER:  DriverPackageInstallW
    LOG Event: 1, Installing INF file 'C:\SensorsDriver\Test.inf' (Plug and Play).
    LOG Event: 1, Looking for Model Section [NTx86]...
    LOG Event: 1, No matching devices found in INF "G:\Windows\System32\DriverStore\
    FileRepository\Test.inf_x86_neutral_af4d3025189618dc\Test.
    inf" on the Machine.
    LOG Event: 1, No drivers installed. No devices found that match driver(s) contai
    ned in 'G:\Windows\System32\DriverStore\FileRepository\Test.inf_x86_n
    eutral_af4d3025189618dc\Test.inf'.
    LOG Event: 1, RETURN: DriverPackageInstallW  (0xE000020B)
    INFO: There aren't any live devnodes with the DeviceId contained in the INF.


    It all ends up in E00000020B... Is it generally possible to use this API for driver installation?

    Regards




    neil

Answers

  • Thursday, November 05, 2009 11:50 PMPrasanna PadmanabhanMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Neil,

    DIFxAPI will only work if there is a physical device involved.

    Devcon is actually a sample in the WDK which can be downloaded from http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx if you haven't already. The sources for devcon can be found at <WDK-ROOT>\src\setup\devcon. For your purposes, you can recompile devcon, rename it appropriately and you can then distribute it for your deployment.

    Thanks,
    Prasanna
    • Marked As Answer byneil.young Friday, November 06, 2009 6:50 AM
    •  

All Replies

  • Thursday, November 05, 2009 11:50 PMPrasanna PadmanabhanMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Neil,

    DIFxAPI will only work if there is a physical device involved.

    Devcon is actually a sample in the WDK which can be downloaded from http://www.microsoft.com/whdc/DevTools/WDK/WDKpkg.mspx if you haven't already. The sources for devcon can be found at <WDK-ROOT>\src\setup\devcon. For your purposes, you can recompile devcon, rename it appropriately and you can then distribute it for your deployment.

    Thanks,
    Prasanna
    • Marked As Answer byneil.young Friday, November 06, 2009 6:50 AM
    •  
  • Friday, November 06, 2009 6:50 AMneil.young Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yes, found the sources already in my local WDK copy :)

    Cool. Many thanks. 
    Regards

    neil