[Version]
LayoutFile=layout.inf
Signature="$CHICAGO$"
Class=Infrared
Provider=Microsoft

[Manufacturer]
"(Infrared devices)"=Microsoft_IR

[Microsoft_IR]
"Infrared communication device"=Generic_Install, IRDEVICE
"Infrared serial port (COM)"=ComPort_Install,Infrared\COM
"Infrared printing port (LPT)"=LptPort_Install,Infrared\LPT

[ControlFlags]
ExcludeFromSelect=Infrared\COM
ExcludeFromSelect=Infrared\LPT

[Generic_Install]
CopyFiles=Driver_Copy,Ctrl_Panel_Copy,IrXfer_Win,IrXfer_Sys
AddReg=Generic_AddReg,RunKey_AddReg

[Generic_Install.hw]
AddReg = IRDEVICE_AddReg

[Generic_AddReg]
HKLM,System\CurrentControlSet\Services\VxD\Winsock,IrSockets,0,wsirda.vxd
HKLM,Enum\INFRARED\KnownDevices,*PNP0510,0,"*PNP0510"
HKLM,Enum\INFRARED\KnownDevices,*PNP0511,0,"*PNP0511"  
HKLM,Enum\INFRARED\KnownDevices,IRMINI,0,"IRMINI"
HKR,,DevLoader,0,*configmg
HKR,,Enumerator,0,irenum.vxd

[ComPort_Install]
CopyFiles=PortDrv_Copy
AddReg=ComPort_AddReg

[ComPort_AddReg]
HKR,,DevLoader,0,*vcomm
HKR,,Enumerator,0,irenum.vxd
HKR,,PortDriver,0,ircomm.vxd
HKR,,PortSubClass,1,01

[LptPort_Install]
CopyFiles=PortDrv_Copy
AddReg=LptPort_AddReg

[LptPort_AddReg]
HKR,,DevLoader,0,*vcomm
HKR,,Enumerator,0,irenum.vxd
HKR,,PortDriver,0,ircomm.vxd
HKR,,PortSubClass,1,00

[CPL_Install]
CopyFiles=Ctrl_Panel_Copy

[IRDEVICE_AddReg]
HKR,,HardwareID,0,"IRDEVICE"

[Uninstall_Infrared]
DelFiles=Driver_Copy,Ctrl_Panel_Copy,PortDrv_Copy,IrXfer_Win,IrXfer_Sys
AddReg=Uninstall_AddReg
DelReg=Uninstall_DelReg

[Uninstall_AddReg]
HKLM,Software\Microsoft\Windows\CurrentVersion\RunOnce,IR3FinishUninstall,0,"RunDll infrared.dll,Uninstall_CleanNetEntries"

[Uninstall_DelReg]
HKLM,Enum\Root\Infrared
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\"Infrared Communications"
HKLM,System\CurrentControlSet\Services\Class\Infrared\0000
HKLM,System\CurrentControlSet\Services\Class\Infrared\0001
HKLM,System\CurrentControlSet\Services\Class\Infrared\0002
HKLM,System\CurrentControlSet\Services\Class\Infrared\0003
HKLM,System\CurrentControlSet\Services\Class\Infrared\0004
HKLM,System\CurrentControlSet\Services\Class\Infrared\0005
HKLM,System\CurrentControlSet\Services\Class\Infrared\0006
HKLM,System\CurrentControlSet\Services\Class\Infrared\0007
HKLM,System\CurrentControlSet\Services\Class\Infrared\0008
HKLM,System\CurrentControlSet\Services\Class\Infrared\0009
HKLM,System\CurrentControlSet\Services\VxD\Winsock,IrSockets
HKCU,AppEvents\EventLabels\InfraredBeginCommunication
HKCU,AppEvents\EventLabels\InfraredBeginDeviceInRange
HKCU,AppEvents\EventLabels\InfraredEndCommunication
HKCU,AppEvents\EventLabels\InfraredEndDeviceInRange
HKCU,AppEvents\EventLabels\InfraredInterrupted
HKCU,AppEvents\Schemes\Apps\.Default\InfraredBeginCommunication
HKCU,AppEvents\Schemes\Apps\.Default\InfraredBeginDeviceInRange
HKCU,AppEvents\Schemes\Apps\.Default\InfraredEndCommunicaton
HKCU,AppEvents\Schemes\Apps\.Default\InfraredEndDeviceInRange
HKCU,AppEvents\Schemes\Apps\.Default\InfraredInterrupted
; Uninstall IrXfer
HKCR,CLSID\{00435ae0-bffb-11cf-a9d8-00aa00423596}
HKLM,Software\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{00435ae0-bffb-11cf-a9d8-00aa00423596}
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,IrXfer
HKCU,AppEvents\EventLabels\InfraredNewFiles
HKCU,AppEvents\Schemes\Apps\.Default\InfraredNewFiles
HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\IrXfer
HKLM,Software\Microsoft\Windows\CurrentVersion\Run\IrMon

[DestinationDirs]
DefaultDestDir=11
IrXfer_Win=25
IrXfer_Sys=11

[Driver_Copy]
ircomm.vxd,,,32
irenum.vxd,,,32
irlamp.vxd,,,32
wsirda.vxd,,,32
fastir.vxd,,,32
irlapfrm.vxd,,,32
irmini.sys,,,32

[Ctrl_Panel_Copy]
infrared.cpl,,,0
irmon.exe,,,0

[PortDrv_Copy]
ircomm.vxd,,,32

[IrXfer_Win] 
IrXfer.exe,,,32

[IrXfer_Sys]
IrShell.dll,,,32

[RunKey_AddReg]
HKLM,Software\Microsoft\Windows\CurrentVersion\Run,IrMon,,"IrMon.exe"

