1
;--------------------------------------------------------------------------
2
; Copyright 2010 Graeme W. Gill.
4
; Permission is hereby granted, free of charge, to any person obtaining a copy
5
; of this file, to deal
6
; in this file without restriction, including without limitation the rights
7
; to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
; copies of this file, and to permit persons to whom this file is
9
; furnished to do so, subject to the following conditions:
11
; The above copyright notice and this permission notice shall be included in
12
; all copies or substantial portions of this file.
14
; THIS FILE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
; IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
; FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
; AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
; LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
; OUT OF OR IN CONNECTION WITH THIS FILE OR THE USE OR OTHER DEALINGS IN
21
;--------------------------------------------------------------------------
27
Provider = "ArgyllCMS"
28
DeviceName = "ColorHug (Argyll)"
29
Manufacturer = "Hughski Ltd"
31
ProductID = "PID_F8DA"
32
DeviceGUID = {247e32a0-32f9-11df-aacc-0002a5d5c51b}
33
CatalogFile = "ColorHug.cat"
34
CatalogFile_NTAMD64 = "ColorHug_x64.cat"
36
Date = "03/18/2010" ; MM/DD/YYYY
37
libusb0ver = "1.0.0.1"
39
Libusb_ClassName = "Argyll LibUSB-1.0A devices"
40
Libusb_DiskName = "LibUSB-1.0A Device Install Disk"
42
libusb0_SvcDesc = "LibUSB-1.0A libusb0 - Kernel Driver 2010/3/18, 1.0.0.1"
43
ptlibusb0_SvcDesc = "LibUSB-1.0A libusb0 - PT Kernel Driver 2010/3/18, 1.12.0.1"
44
WinUSB_SvcDesc = "LibUSB-1.0A WinUSB Driver Service"
46
; These 8 determine which type of driver is installed & used for each platform:
47
; LIBUSB0_DEV libusb0.sys kernel driver (Win2K to Win7, signing needed on 64 bit)
48
; PTLIBUSB0_DEV ptlibusb0.sys kernel driver (Win2K to Win7, signed by PRUFTECHNIK)
49
; WINUSBCO_DEV Install & use latest WinUSB kernel driver (WinXP to Win7)
50
; WINUSB_DEV Use installed WinUSB kernel driver (Vista to Win7)
52
Default_Device = "LIBUSB0_DEV" ; Default
53
NTx86.5.0_Device = "LIBUSB0_DEV" ; 32 bit Win2K
54
NTx86.5.1_Device = "WINUSBCO_DEV" ; 32 bit WinXP
55
NTamd64.5.1_Device = "WINUSBCO_DEV" ; 64 bit WinXP
56
NTx86.6_Device = "WINUSBCO_DEV" ; 32 bit Vista
57
NTamd64.6_Device = "WINUSBCO_DEV" ; 64 bit Vista
58
NTx86.6.1_Device = "WINUSBCO_DEV" ; 32 bit Win7
59
NTamd64.6.1_Device = "WINUSBCO_DEV" ; 64 bit Win7
64
Signature = "$Windows NT$"
65
DriverVer = %Date%,%libusb0ver%
68
; (Note the ClassGuid must not be quoted or a string substitution to work on Win2K)
69
Class = %Libusb_ClassName%
70
ClassGuid = {817cffe0-328b-11df-9b9f-0002a5d5c51b} ; Libusb V1.0A ClassGUID
71
CatalogFile = %CatalogFile%
72
CatalogFile.NTAMD64 = %CatalogFile_NTAMD64%
75
AddReg=class_install_add_reg
77
[class_install_add_reg]
78
HKR,,,,%Libusb_ClassName%
79
HKR,,Icon,,"-20" ; -20 is for the USB icon
81
; ==== Manufacturer and Models ====
84
%Manufacturer%=Devices,NTx86.5.0,NTx86.5.1,NTx86.5,NTamd64.5.1,NTamd64.5, \
85
NTx86.6,NTamd64.6,NTx86.6.1,NTamd64.6.1
90
%DeviceName% = %Default_Device%, USB\%VendorID%&%ProductID%
92
[Devices.NTx86.5.0] ; 32 bit Win2K
93
%DeviceName% = %NTx86.5.0_Device%, USB\%VendorID%&%ProductID%
95
[Devices.NTx86.5.1] ; 32 bit WinXP
96
%DeviceName% = %NTx86.5.1_Device%, USB\%VendorID%&%ProductID%
98
[Devices.NTx86.5] ; 32 bit Windows Server 2003 etc.
99
%DeviceName% = %NTx86.5.1_Device%, USB\%VendorID%&%ProductID%
101
[Devices.NTamd64.5.1] ; 64 bit WinXP
102
%DeviceName% = %NTamd64.5.1_Device%, USB\%VendorID%&%ProductID%
104
[Devices.NTamd64.5] ; 64 bit Windows Server 2003 etc.
105
%DeviceName% = %NTamd64.5.1_Device%, USB\%VendorID%&%ProductID%
107
[Devices.NTx86.6] ; 32 bit Vista
108
%DeviceName% = %NTx86.6_Device%, USB\%VendorID%&%ProductID%
110
[Devices.NTamd64.6] ; 64 bit Vista
111
%DeviceName% = %NTamd64.6_Device%, USB\%VendorID%&%ProductID%
113
[Devices.NTx86.6.1] ; 32 bit Win7
114
%DeviceName% = %NTx86.6.1_Device%, USB\%VendorID%&%ProductID%
116
[Devices.NTamd64.6.1] ; 64 bit Win7
117
%DeviceName% = %NTamd64.6.1_Device%, USB\%VendorID%&%ProductID%
120
; ==== Files Sources and Destinations ====
123
1 = %Libusb_DiskName%
124
2 = %Libusb_DiskName%,,,WinCoInstallers\x86
125
3 = %Libusb_DiskName%,,,WinCoInstallers\amd64
129
libusb0_x64.sys = 1,,
131
ptlibusb0_x64.sys = 1,,
132
libusb-1.0A.dll = 1,,
133
libusb-1.0A_x64.dll = 1,,
134
WinUSBCoInstaller2.dll=2
135
WdfCoInstaller01009.dll=2
137
[SourceDisksFiles.amd64]
138
WinUSBCoInstaller2.dll=3
139
WdfCoInstaller01009.dll=3
142
libusb0_files_sys = 10,system32\drivers
143
libusb0_files_sys_x64 = 10,system32\drivers
144
ptlibusb0_files_sys = 10,system32\drivers
145
ptlibusb0_files_sys_x64 = 10,system32\drivers
146
Libusb_files_dll = 10,system32
147
Libusb_files_dll_wow64 = 10,syswow64
148
Libusb_files_dll_x64 = 10,system32
149
CoInstallers_CopyFiles = 11
154
[Libusb_files_dll_wow64]
157
[Libusb_files_dll_x64]
158
libusb-1.0A.dll,libusb-1.0A_x64.dll
160
; ==== libusb0 Device driver ====
165
[libusb0_files_sys_x64]
166
libusb0.sys,libusb0_x64.sys
168
; For each one of these, there must be one for Services !!!
170
CopyFiles = Libusb0_files_sys, Libusb_files_dll
172
[LIBUSB0_DEV.NTAMD64]
173
CopyFiles = libusb0_files_sys_x64, Libusb_files_dll_wow64, Libusb_files_dll_x64
177
AddReg = libusb0_add_reg_hw
181
HKR,,DevLoader,,*ntkern
182
HKR,,NTMPDriver,,libusb0.sys
185
HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
186
HKR,,SurpriseRemovalOK,0x00010001,1 ; Device properties
188
[LIBUSB0_DEV.Services]
189
AddService = libusb0, 0x00000002, libusb0_add_service
191
[LIBUSB0_DEV.NTAMD64.Services]
192
AddService = libusb0, 0x00000002, libusb0_add_service
194
[libusb0_add_service]
195
DisplayName = %libusb0_SvcDesc%
199
ServiceBinary = %12%\libusb0.sys
201
; ==== ptlibusb0 Device driver ====
203
[ptlibusb0_files_sys]
204
libusb0.sys,ptlibusb0.sys
206
[ptlibusb0_files_sys_x64]
207
libusb0.sys,ptlibusb0_x64.sys
209
; For each one of these, there must be one for Services !!!
211
CopyFiles = ptlibusb0_files_sys, Libusb_files_dll
213
[PTLIBUSB0_DEV.NTAMD64]
214
CopyFiles = ptlibusb0_files_sys_x64, Libusb_files_dll_wow64, Libusb_files_dll_x64
218
AddReg = ptlibusb0_add_reg_hw
222
HKR,,DevLoader,,*ntkern
223
HKR,,NTMPDriver,,libusb0.sys
225
[ptlibusb0_add_reg_hw]
226
HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
227
HKR,,SurpriseRemovalOK,0x00010001,1 ; Device properties
229
[PTLIBUSB0_DEV.Services]
230
AddService = libusb0, 0x00000002, ptlibusb0_add_service
232
[PTLIBUSB0_DEV.NTAMD64.Services]
233
AddService = libusb0, 0x00000002, ptlibusb0_add_service
235
[ptlibusb0_add_service]
236
DisplayName = %ptlibusb0_SvcDesc%
240
ServiceBinary = %12%\libusb0.sys
243
; ==== WinUSB Device driver with Coinstallers ====
245
; For each one of these, there must be one for Services !!!
247
CopyFiles = Libusb_files_dll
251
[WINUSBCO_DEV.NTAMD64]
252
CopyFiles = Libusb_files_dll_wow64, Libusb_files_dll_x64
258
AddReg = WinUSB_add_reg_hw
260
[WINUSBCO_DEV.Services]
262
AddService=WinUSB,0x00000002,WinUSB_add_service
264
[WINUSBCO_DEV.NTAMD64.Services]
266
AddService=WinUSB,0x00000002,WinUSB_add_service
269
KmdfService=WINUSB, WinUSB_Install
271
[WINUSBCO_DEV.CoInstallers]
272
AddReg=CoInstallers_AddReg
273
CopyFiles=CoInstallers_CopyFiles
275
[CoInstallers_AddReg]
276
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"
278
[CoInstallers_CopyFiles]
279
WinUSBCoInstaller2.dll
280
WdfCoInstaller01009.dll
282
; ==== WinUSB Device driver (No Coinstallers) ====
284
; For each one of these, there must be one for Services !!!
286
CopyFiles = Libusb_files_dll
289
CopyFiles = Libusb_files_dll_wow64, Libusb_files_dll_x64
293
AddReg = WinUSB_add_reg_hw
295
[WINUSB_DEV.Services]
297
AddService=WinUSB,0x00000002,WinUSB_add_service
299
[WINUSB_DEV.NTAMD64.Services]
301
AddService=WinUSB,0x00000002,WinUSB_add_service
304
KmdfService=WINUSB, WinUSB_Install
307
KmdfLibraryVersion=1.9
310
HKR,,DeviceInterfaceGUIDs,0x10000,%DeviceGUID%
311
HKR,,SurpriseRemovalOK,0x00010001,1 ; Device properties
314
DisplayName = %WinUSB_SvcDesc%
318
ServiceBinary = %12%\WinUSB.sys