Optimized usbjtag.inf for Windows 6.x

Anything related to script should go here.
ricktendo
Posts: 138
Joined: Sat Nov 29, 2014 12:41 pm

Optimized usbjtag.inf for Windows 6.x

Post by ricktendo » Mon Dec 22, 2014 9:50 pm

The following is an optimized INF for use with Windows 6.x (Vista and above.) There is no need for the CoInstallers unless you are working on Windows 2000/XP (even so it may be a good idea to update the older driver from 01007 to 01009 CoInstallers)

Anyway here is the optimized INF (no other files needed)

usbjtag.inf

Code: Select all

[Version]
Signature = "$Windows NT$"
Class = USB
ClassGuid={36fc9e60-c465-11cf-8056-444553540000}
Provider = %ProviderName%
;CatalogFile=MyCatFile.cat

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

[Manufacturer]
%ProviderName% = MyDevice_WinUSB,NTx86.6.0,NTamd64.6.0

[MyDevice_WinUSB.NTx86.6.0]
%USB\MyDevice.DeviceDescNT% =USB_Install, USB\Vid_04B4&Pid_8613
%USB\MyDevice.DeviceDesc% =USB_Install, USB\Vid_0547&Pid_2131

[MyDevice_WinUSB.NTamd64.6.0]
%USB\MyDevice.DeviceDescNT% =USB_Install, USB\Vid_04B4&Pid_8613
%USB\MyDevice.DeviceDesc% =USB_Install, USB\Vid_0547&Pid_2131

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

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

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

[USB_Install.HW]
AddReg=Dev_AddReg

[Dev_AddReg]
HKR,,DeviceInterfaceGUIDs,0x10000,"{b35924d6-3e16-4a9e-9782-5524a4b79bac}"

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

[Strings]
ProviderName="USBJTAG"
USB\MyDevice.DeviceDesc="USBJTAG"
USB\MyDevice.DeviceDescNT="USBJTAGNT"
BTW I have a self signed version of this INF that gets around the problem on Windows 8+ with unsigned drivers, I could provide it and I could also show you how you can make your own (just let me know if anybody is interested)

usbbdm
Posts: 8491
Joined: Mon Jul 18, 2005 9:33 pm

Post by usbbdm » Tue Dec 23, 2014 9:12 am

I have solved sign issue by using CyUSB. This works for Windows 8 and Windows 10. Can you take a look of it? I still like WinUSB better if I am using Windows 7 and under.

ricktendo
Posts: 138
Joined: Sat Nov 29, 2014 12:41 pm

Post by ricktendo » Tue Dec 23, 2014 10:18 pm

WinUSB is already a part of Windows (since Vista) and the only thing these two CoInstallers are used for is to add them to operating systems that dont have WinUSB (like XP, 2000)

WdfCoInstaller01007.dll
WinUSBCoInstaller.dll

Open them up in a resource editor or 7zip and you will see all they are is a way to deliver a hotfix into XP, these are installing WinUSB ported from Vista RTM for XP (does nothing on Vista/7/8*)

01007 = WinUSB from Vista porting to XP
01009 = WinUSB from Windows 7 RTM porting to Vista and XP
01011 = WinUSB from Windows 8.0 RTM porting to 7 and Vista (XP support dropped)

The only reason to keep the CoInstallers is for XP support, and updating them to 01009 best... Other than that all you need is this INF, any of the listed CoInstallers is useless in Windows 7 since the WinUSB version has already been updated to the 8.1 WinUSB via Windows Update

Post Reply