[Files]

//----DLL
//+++++++
SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%

If,%Arch%,=,x86,Then
	If,ExistFile,%Install_sys%\audiodev.dll,Then,ReqFile,audiodev.dll,1
	ReqFile,mfc40u.dll,1
	ReqFile,mmsystem.dll
	ReqFile,msacm.dll,1
Else
	SetReqFile,%Install_wow%,%Distlang%,%FallBack%,%target_wow%
	If,ExistFile,%Install_wow%\audiodev.dll,Then,ReqFile,audiodev.dll,1
	ReqFile,mfc40u.dll,1
End

SetReqFile,%Install_sys%,%Distlang%,%FallBack%,%target_sys%
ReqFile,audioendpointbuilder.dll,1
ReqFile,audioeng.dll
ReqFile,audiokse.dll
ReqFile,audioses.dll,1
ReqFile,audiosrv.dll,1
ReqFile,avrt.dll
ReqFile,CompPkgSup.dll
ReqFile,dciman32.dll
ReqFile,ddrawex.dll
ReqFile,deviceaccess.dll,1
ReqFile,dmdlgs.dll
ReqFile,dmdskmgr.dll
ReqFile,dmdskres.dll,2
ReqFile,dmdskres2.dll,1
ReqFile,dsound.dll,1
ReqFile,dwrite.dll,1
ReqFile,dxtrans.dll
ReqFile,iyuv_32.dll,1
ReqFile,ksuser.dll
If,ExistFile,%Install_sys%\mfplat.dll,Then,ReqFile,mfplat.dll,1
ReqFile,midimap.dll,1
ReqFile,mmcndmgr.dll,1
ReqFile,mmcshext.dll,1
ReqFile,mmres.dll,2
ReqFile,msrle32.dll,1
ReqFile,msvfw32.dll,1
ReqFile,msvidc32.dll,1
ReqFile,msyuv.dll
ReqFile,PlayToDevice.dll,1
ReqFile,sndvolsso.dll,2
ReqFile,tsbyuv.dll
ReqFile,wavemsp.dll,1
ReqFile,wdmaud.drv,1
ReqFile,xinput9_1_0.dll,1
// Windows 10 - thru 19H1			(= Version 1903, Build 18362)
// ----------------------
If,%WIM_BUILD%,<,18362,Then
	ReqFile,mmci.dll,1
	ReqFile,mmcico.dll
End

//----SONSTIGE DATEIEN | OTHER FILES
//++++++++++++++++++++++++++++++++++
If,%Arch%,=,x86,Then
	ReqFile,mmtask.tsk
	ReqFile,sound.drv
	ReqFile,timer.drv
End
ReqFile,imaadp32.acm,1
If,ExistFile,%Install_sys%\l3codeca.acm,Then,ReqFile,l3codeca.acm,1
If,ExistFile,%Install_sys%\l3codecp.acm,Then,ReqFile,l3codecp.acm
ReqFile,msadp32.acm,1
ReqFile,msg711.acm,1
ReqFile,msgsm32.acm,1

ReqFile,audiodg.exe,1
If,ExistFile,%Install_sys%\query.exe,Then,ReqFile,query.exe,1
ReqFile,sndvol.exe,1

// Broadcast Driver Architecture (BDA)
ReqFile,bdaplgin.ax
ReqFile,MSDvbNP.ax
ReqFile,psisrndr.ax
ReqFile,psisdecd.dll

// ksfilter.inf
FileCopy,%Install_sys%\drivers\mskssrv.sys,%target_sys%\drivers
FileCopy,%Install_sys%\drivers\mspclock.sys,%target_sys%\drivers
FileCopy,%Install_sys%\drivers\mspqm.sys,%target_sys%\drivers
FileCopy,%Install_sys%\drivers\mstee.sys,%target_sys%\drivers

// Microsoft WDM Image Capture (kscapture.inf)
ReqFile,kstvtune.ax,1
ReqFile,ksxbar.ax,1

// Roland SoundCanvas Sound (gm.dls)
FileCopy,%Install_sys%\drivers\gm.dls,%target_sys%\drivers

// Windows Media Audio (WMA)
If,ExistFile,%Install_sys%\WMADMOD.DLL,Then,ReqFile,WMADMOD.DLL
If,ExistFile,%Install_sys%\WMADMOE.DLL,Then,ReqFile,WMADMOE.DLL
If,ExistFile,%Install_sys%\WMASF.DLL,Then,ReqFile,WMASF.DLL

//  ex Windows 10 Insider Preview Build 11082 (nicht in allen Quellen enthalten ! / not included in all sources !)
If,ExistFile,%Install_sys%\AudioSrvPolicyManager.dll,Then,ReqFile,AudioSrvPolicyManager.dll
If,ExistFile,%Install_sys%\coreaudiopolicymanagerext.dll,Then,ReqFile,coreaudiopolicymanagerext.dll
If,ExistFile,%Install_sys%\Windows.Media.Devices.dll,Then,ReqFile,Windows.Media.Devices.dll

// Treiber-Dateien | Driver files
FileCopy,%Install_win%\inf\gameport.inf,%target_win%\inf
FileCopy,%Install_win%\inf\modemcsa.inf,%target_win%\inf

SetReqFile,%Install_sys%\drivers,%Distlang%,%FallBack%,%target_sys%\drivers
ReqFile,beep.sys
ReqFile,ks.sys,1
DirCopy,%Install_Sys%\DriverStore\FileRepository\gameport.inf_*,%Target_Sys%\DriverStore\FileRepository
