if not exist "%X_WIN%\Inf\ks.inf" (
    pushd "..\03-Audio"
    call main.bat
    popd
)

rem ks.inf,kscaptur.inf,ksfilter.inf was added by 03-Audio\main.bat

call AddDrivers "c_camera.inf,c_image.inf,usbvideo.inf"

call AddFiles %0 :end_files
goto :end_files

@\Windows\System32\

;Universal Serial Bus Camera Driver
drivers\USBCAMD2.sys

;Windows Driver Model (WDM) driver
drivers\WdmCompanionFilter.sys

CameraCaptureUI.dll
CameraSettingsUIHost.exe
;cdd.dll
devenum.dll
fundisc.dll
ksproxy.ax
kstvtune.ax
Kswdmcap.ax
ksxbar.ax
WebcamUi.dll

;Xeoma

;add for boot.wim
d3d9.dll

opengl32.dll
glu32.dll
dsound.dll
pdh.dll

+ver > 19000
RESAMPLEDMO.DLL
+ver*

;ECap, webcam 7
@\Windows\SysWOW64\
ksproxy.ax,ksuser.dll

@\Windows\%System32OrSysWOW64%\
qcap.dll,qedit.dll,qedwipes.dll

:end_files

call RegCopyEx Services "WdmCompanionFilter"
call RegCopy HKLM\SYSTEM\ControlSet001\Control\Class\{ca3e7ab9-b4c3-4ae6-8251-579ef933890f}
