The drivers are generated from a piece of code that I have taken from AVStream Hardware Sample (Virtual camera loopback).
https://github.com/Microsoft/Windows-driver-samples/tree/master/avstream/avssamp
I am now trying to install it programmatically using devcon or pnputil but not able to find any batch command or programmatic way to install it. This seem to be a legacy driver. It only works via hdwwiz.exe legacy hardware wizard. My driver is signed properly so no issue there.
The method that works:
- C:\WINDOWS\System32\InfDefaultInstall.exe PATH-TO-INF -> I get a pop up after this saying operation successful, but is not listed under Cameras in device manager.
- Open Device Manager -> Add legacy hardware -> Next -> Install the hardware that I manually select from a list (Advanced) -> Cameras -> Next -> Select required camera -> Next
- Once the above two steps are done, the device is listed under Cameras in device manager, and also I am able to view the same under the list of cameras in applications like Zoom
C:\WINDOWS\System32\InfDefaultInstall.exe PATH-TO-INF -> this is equivalent to Step 1.
But step 2 is what I want to achieve using commands / programmatically.
The following are methods that I have tried:
- pnputil /add-driver <PATH-TO-INF> /install -> this adds the INF as oem*.inf but still not listed under cameras, still unusable
- devcon.exe install <PATH-TO-INF> ROOT\CAMERA\
- devcon.exe install PATH-TO-INF ROOT\CAMERA\0001
- devcon.exe /add-driver PATH-TO-INF
- devcon.exe install vibe.inf {CLASS-ID}\NameOfDriver
None of the above are helping me to the get result I want.
The drivers are generated from a piece of code that I have taken from AVStream Hardware Sample.
Is there a command in CMD that would help me get the result I want?
Thanks in advance,
Aswin