Windows >
Software Development for Windows Client Forums
>
Development with the Windows Sensor and Location Platform
>
Question on deployment
Question on deployment
- 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.infDIFxAPI Sample ProgramINFO: Option "/i"INFO: Input file "C:\SensorsDriver\Test.inf"INFO: Flags 0x0 (0)TEST: installing driver package.LOG Event: 1, ENTER: DriverPackageInstallWLOG 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) contained in 'G:\Windows\System32\DriverStore\FileRepository\Test.inf_x86_neutral_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
- 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
- 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
- Yes, found the sources already in my local WDK copy :)Cool. Many thanks.Regards
neil


