;
;WeintekHMI.inf - Install the Weintek HMI i series driver 
;Copyright 01/09/2009
;
[Version]
Signature = "$Windows NT$"
;Class = USB
;ClassGUID={36FC9E60-C465-11CF-8056-444553540000}

Class=Sample
ClassGuid={E9F61D47-B83A-4a49-9130-D5DAB37DC474}

Provider = %ProviderName%
DriverVer=12/28/2012,1.0.1
;CatalogFile=weintekCatFile.cat
CatalogFile.ntamd64=weintekCatFile.cat

; ========== Manufacturer/Models sections ===========

[Manufacturer]
%ProviderName% = MyDevice_WinUSB,NTx86,NTamd64,NTia64,NTamd64.6.2

[MyDevice_WinUSB.NTx86]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_2416
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_0515

[MyDevice_WinUSB.NTamd64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_2416
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_0515

[MyDevice_WinUSB.NTamd64.6.2]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_2416
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_0515

[MyDevice_WinUSB.NTia64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_2416
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_1FAF&PID_0515

[ClassInstall32]
AddReg=SampleClass_RegistryAdd

[SampleClass_RegistryAdd]
HKR,,,,%ClassName%
HKR,,Icon,,"-10"


; =================== Installation ===================

[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT

[USB_Install.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall

[WinUSB_ServiceInstall]
DisplayName     = %WinUSB_SvcDesc%
ServiceType     = 1
StartType       = 3
ErrorControl    = 1
ServiceBinary   = %12%\WinUSB.sys

[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install
UmdfServiceOrder=WINUSB

[WinUSB_Install]
KmdfLibraryVersion=1.7

[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{0B509533-05A9-47b5-A6BA-01F900255AC7}"

[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WinUSBCoInstaller.dll","WUDFUpdate_01007.dll","WdfCoInstaller01007.dll,WdfCoInstaller"

[CoInstallers_CopyFiles]
WinUSBCoInstaller.dll
WdfCoInstaller01007.dll
WUDFUpdate_01007.dll

[DestinationDirs]
CoInstallers_CopyFiles=11

; ================= Source Media Section =====================

[SourceDisksNames.x86]
1 = %DISK_NAME%,,,\i386

[SourceDisksNames.amd64]
2 = %DISK_NAME%,,,\amd64

[SourceDisksNames.ia64]
3 = %DISK_NAME%,,,\ia64

[SourceDisksFiles.x86]
WinUSBCoInstaller.dll=1
WdfCoInstaller01007.dll=1
WUDFUpdate_01007.dll=1

[SourceDisksFiles.amd64]
WinUSBCoInstaller.dll=2
WdfCoInstaller01007.dll=2
WUDFUpdate_01007.dll=2

[SourceDisksFiles.ia64]
WinUSBCoInstaller.dll=3
WdfCoInstaller01007.dll=3
WUDFUpdate_01007.dll=3

; Copy Files section
;------------------------------------------------------------------------------
[_CopyFiles_sys]
winusb.sys

;************************************************* *****************************
; Destination Directories
;------------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir = 12 ; %SystemRoot%\system32\drivers
_CopyFiles_sys = 12

; =================== Strings ===================

[Strings]
ProviderName="Weintek Labs., Inc."
USB\MyDevice.DeviceDesc="Weintek HMI"
WinUSB_SvcDesc="Weintek HMI"
DISK_NAME="Weintek Install Disk"
ClassName="Weintek HMI"