Also, please use the KMDF 1.7 coinstaller (wdfcoinstaller01007.dll) and modify the inf to say wdfcoinstaller01007 instead of wdfcoinstaller01005, because the new coinstaller creates more verbose logging information at %windir%\setupact.log. This will make it easier to understand what the exact problem is.
Ilias
From: xxxxx@lists.osr.com [xxxxx@lists.osr.com] On Behalf Of Ilias Tsigkogiannis [xxxxx@microsoft.com]
Sent: Tuesday, February 17, 2009 1:42 AM
To: Windows System Software Devs Interest List
Subject: RE: RE:[ntdev] Winusb stuck at code [10] - device is not able to start
Can you also paste the contents of the file %windir%\setupact.log that correspond to an unsuccesful installation? Also, is the OS a 32-bit or a 64-bit version? Finally, you are using the fre and not chk version of the coinstallers, right?
Ilias
From: xxxxx@lists.osr.com [xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com [xxxxx@gmail.com]
Sent: Monday, February 16, 2009 10:23 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Winusb stuck at code [10] - device is not able to start
Thanks Tim and Illias.
and really sorry for not being patience.
According to your suggestions I created the following inf file and tried to install still I got the same error and also I am pasting the setupapi.log, winusb_update.log with this email:
INF File:
[Version]
Signature = “$Windows NT$”
Class =USB
ClassGuid={36fc9e60-c465-11cf-8056-444553540000}
Provider = %ProviderName%
DriverVer=2/16/2009,1.0.6
;CatalogFile=MyCatFile.cat
; ========== Manufacturer/Models sections ===========
[Manufacturer]
%ProviderName% = MyDevice_WinUSB,NTx86,NTamd64
[MyDevice_WinUSB.NTx86]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_00fd&PID_0001&REV_0106
[MyDevice_WinUSB.NTamd64]
%USB\MyDevice.DeviceDesc% =USB_Install, USB\VID_00fd&PID_0001&REV_0106
; =================== Installation ===================
[ClassInstall32]
AddReg=SampleClass_RegistryAdd
[SampleClass_RegistryAdd]
HKR,%ClassName%
;[1]
[USB_Install]
Include=winusb.inf
Needs=WINUSB.NT
;[2]
[USB_Install.Services]
Include=winusb.inf
AddService=WinUSB,0x00000002,WinUSB_ServiceInstall
;[3]
[WinUSB_ServiceInstall]
DisplayName = %WinUSB_SvcDesc%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WinUSB.sys
;[4]
[USB_Install.Wdf]
KmdfService=WINUSB, WinUsb_Install
[WinUSB_Install]
KmdfLibraryVersion=1.5
;[5]
[USB_Install.HW]
AddReg=Dev_AddReg
[Dev_AddReg]
HKR,DeviceInterfaceGUIDs,0x10000,“{42CA71EC-CE1C-44c2-82DE-87D8D8FF6C6E}”
;[6]
[USB_Install.CoInstallers]
AddReg=CoInstallers_AddReg
CopyFiles=CoInstallers_CopyFiles
[CoInstallers_AddReg]
HKR,CoInstallers32,0x00010000,“WdfCoInstaller01005.dll,WdfCoInstaller”,“WinUSBCoInstaller.dll”
[CoInstallers_CopyFiles]
WinUSBCoInstaller.dll
WdfCoInstaller01005.dll
[DestinationDirs]
CoInstallers_CopyFiles=11
; ================= Source Media Section =====================
;[7]
[SourceDisksNames]
1 = %DISK_NAME%,\i386
2 = %DISK_NAME%,\amd64
[SourceDisksFiles.x86]
WinUSBCoInstaller.dll=1
WdfCoInstaller01005.dll=1
[SourceDisksFiles.NTamd64]
WinUSBCoInstaller.dll=2
WdfCoInstaller01005.dll=2
; =================== Strings ===================
[Strings]
ProviderName=“MyWinusbDevice”
ClassName=“USB”
USB\MyDevice.DeviceDesc=“Mydevice”
WinUSB_SvcDesc=“Mydevice”
DISK_NAME=“My Install Disk”
=============
Winusb_update.log
0.063: 2009/02/16 18:46:51.969 (local)
0.063: e:\3732a63d988e18532fa92073610de50c\update\update.exe (version 6.3.4.0)
0.063: Hotfix started with following command line: /quiet /ER /log:C:\WINDOWS\temp\winusb_update.log
0.063: In Function GetBuildType, line 1170, RegQueryValueEx failed with error 0x2
0.250: In Function TestVolatileFlag, line 12013, RegOpenKeyEx failed with error 0x2
0.250: In Function TestVolatileFlag, line 12045, RegOpenKeyEx failed with error 0x2
0.250: DoInstallation: CleanPFR failed: 0x2
0.266: In Function GetBuildType, line 1170, RegQueryValueEx failed with error 0x2
0.266: SetProductTypes: InfProductBuildType=BuildType.Sel
0.266: SetAltOsLoaderPath: No section uses DirId 65701; done.
0.360: DoInstallation: FetchSourceURL for e:\3732a63d988e18532fa92073610de50c\update\update_XP.inf failed
0.360: CreateUninstall = 0,Directory = C:\WINDOWS$NtUninstallwinusb0100$
0.360: LoadFileQueues: UpdSpGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
0.360: BuildCabinetManifest: update.url absent
0.360: Starting AnalyzeComponents
0.360: AnalyzePhaseZero used 0 ticks
0.360: No c:\windows\INF\updtblk.inf file.
0.360: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
0.360: SetupFindFirstLine in LoadExclusionList Failed with error: 0xe0000102
7.360: SetupOpenInfFile in IsThirdPartyInf Failed with error 0x2
7.375: SetupVerifyInfFile failed with error 0x490 for oem5.inf of device USB\VID_00FD&PID_0001\42CA71ECCE1C44C282DE87D8D8FF6C6E
8.375: OEM file scan used 8015 ticks
8.375: AnalyzePhaseOne: used 8015 ticks
8.375: AnalyzeComponents: Hotpatch analysis disabled; skipping.
8.375: AnalyzeComponents: Hotpatching is disabled.
8.375: AnalyzePhaseTwo used 0 ticks
8.375: AnalyzePhaseThree used 0 ticks
8.375: AnalyzePhaseFive used 0 ticks
8.391: AnalyzePhaseSix used 16 ticks
8.391: AnalyzeComponents used 8031 ticks
8.391: Downloading 0 files
8.391: bPatchMode = FALSE
8.391: Inventory complete: ReturnStatus=0, 8031 ticks
8.391: Num Ticks for invent : 8031
8.391: Allocation size of drive C: is 4096 bytes, free space = 9810112512 bytes
8.391: Drive C: free 9355MB req: 5MB w/uninstall 0MB
8.391: CabinetBuild complete
8.391: Num Ticks for Cabinet build : 0
8.391: DynamicStrings section not defined or empty.
8.422: FileInUse:: Added to Filelist: c:\windows\winusb0100.cat
8.532: FileInUse:: PrintTasksUsingModule: No tasks found using c:\windows\winusb0100.cat
9.547: LoadFileQueues: UpdSpGetSourceFileLocation for halaacpi.dll failed: 0xe0000102
9.594: System Restore Point set.
9.610: Copied file: C:\WINDOWS\system32\spmsg2.dll
9.610: PFE2: Not avoiding Per File Exceptions.
9.657: GetCatVersion: Failed to retrieve version information from C:\WINDOWS\system32\CatRoot{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\winusb0100.cat with error 0x80092004
9.657: GetCatVersion: Failed to retrieve version information from C:\WINDOWS\winusb0100.cat with error 0x80092004
9.844: DoInstallation: Installing assemblies with source root path: e:\3732a63d988e18532fa92073610de50c\
9.844: Num Ticks for Copying files : 1453
9.844: Num Ticks for Reg update and deleting 0 size files : 0
9.844: UpdateSpUpdSvcInf: Source [ProcessesToRunAfterReboot] section is empty; nothing to do.
9.844: RebootNecessary = 0,WizardInput = 1 , DontReboot = 1, ForceRestart = 0
==========
Setupapi.log
[2009/02/16 18:46:59 3168.390 Driver Install]
#-019 Searching for hardware ID(s): usb\vid_00fd&pid_0001&rev_0100,usb\vid_00fd&pid_0001
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#-198 Command line processed: e:\3732a63d988e18532fa92073610de50c\update\update.exe /quiet /ER /log:“C:\WINDOWS\temp\winusb_update.log”
#I063 Selected driver installs from section [USB_Install] in “c:\windows\inf\oem5.inf”.
#I320 Class GUID of device remains: {36FC9E60-C465-11CF-8056-444553540000}.
#I060 Set selected driver.
[2009/02/16 18:46:24 2552.216]
#-198 Command line processed: “C:\WINDOWS\system32\mmc.exe” /s C:\WINDOWS\system32\compmgmt.msc
#I060 Set selected driver.
#-019 Searching for hardware ID(s): usb\vid_00fd&pid_0001&rev_0100,usb\vid_00fd&pid_0001
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#I393 Modified INF cache “C:\WINDOWS\inf\INFCACHE.1”.
#-019 Searching for hardware ID(s): usb\vid_00fd&pid_0001&rev_0100,usb\vid_00fd&pid_0001
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#-019 Searching for hardware ID(s): usb\vid_00fd&pid_0001&rev_0100,usb\vid_00fd&pid_0001
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#-019 Searching for hardware ID(s): usb\vid_00fd&pid_0001&rev_0100,usb\vid_00fd&pid_0001
#-018 Searching for compatible ID(s): usb\class_ff&subclass_00&prot_00,usb\class_ff&subclass_00,usb\class_ff
#-124 Doing copy-only install of “USB\VID_00FD&PID_0001\42CA71ECCE1C44C282DE87D8D8FF6C6E”.
#E360 An unsigned or incorrectly signed file “e:\windowslab_sushant\usb\drivers\mydeviceusb.inf” for driver “Mydevice” will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#W187 Install failed, attempting to restore original files.
#E360 An unsigned or incorrectly signed file “e:\windowslab_sushant\usb\drivers\mydeviceusb.inf” for driver “Mydevice” will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-024 Copying file “e:\windowslab_sushant\usb\drivers\i386\WinUSBCoInstaller.dll” to “C:\WINDOWS\system32\WinUSBCoInstaller.dll”.
#E360 An unsigned or incorrectly signed file “e:\windowslab_sushant\usb\drivers\mydeviceusb.inf” for driver “Mydevice” will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#-336 Copying file “e:\windowslab_sushant\usb\drivers\i386\WinUSBCoInstaller.dll” to “C:\WINDOWS\system32\WinUSBCoInstaller.dll” via temporary file “C:\WINDOWS\system32\SET13.tmp”.
#E249 Failed to apply security to file “C:\WINDOWS\system32\WinUSBCoInstaller.dll”. Error 1307: This security ID may not be assigned as the owner of this object.
#-336 Copying file “e:\windowslab_sushant\usb\drivers\i386\WdfCoInstaller01005.dll” to “C:\WINDOWS\system32\WdfCoInstaller01005.dll” via temporary file “C:\WINDOWS\system32\SET16.tmp”.
#E360 An unsigned or incorrectly signed file “e:\windowslab_sushant\usb\drivers\mydeviceusb.inf” for driver “Mydevice” will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#E249 Failed to apply security to file “C:\WINDOWS\system32\WdfCoInstaller01005.dll”. Error 1307: This security ID may not be assigned as the owner of this object.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [USB_Install.Interfaces] from “e:\windowslab_sushant\usb\drivers\mydeviceusb.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “USB\VID_00FD&PID_0001\42CA71ECCE1C44C282DE87D8D8FF6C6E”.
#E360 An unsigned or incorrectly signed file “e:\windowslab_sushant\usb\drivers\mydeviceusb.inf” for driver “” will be installed (Policy=Ignore). Error 0xe000022f: The third-party INF does not contain digital signature information.
#I163 Device not started: Device has problem: 0x0a: CM_PROB_FAILED_START.
#I121 Device install of “USB\VID_00FD&PID_0001\42CA71ECCE1C44C282DE87D8D8FF6C6E” finished successfully.
[2009/02/16 19:36:02 740.3 Driver Install]
#-019 Searching for hardware ID(s): usb\unknown
#-018 Searching for compatible ID(s): usb\unknown
#-198 Command line processed: C:\WINDOWS\system32\services.exe
#I022 Found “USB\UNKNOWN” in C:\WINDOWS\inf\usb.inf; Device: “Unknown Device”; Driver: “Unknown Device”; Provider: “Microsoft”; Mfg: “(Standard USB Host Controller)”; Section name: “BADDEVICE.Dev”.
#I023 Actual install section: [BADDEVICE.Dev.NT]. Rank: 0x00000000. Effective driver date: 07/01/2001.
#-166 Device install function: DIF_SELECTBESTCOMPATDRV.
#I063 Selected driver installs from section [BADDEVICE.Dev] in “c:\windows\inf\usb.inf”.
#I320 Class GUID of device remains: {36FC9E60-C465-11CF-8056-444553540000}.
#I060 Set selected driver.
#I058 Selected best compatible driver.
#-166 Device install function: DIF_INSTALLDEVICEFILES.
#I124 Doing copy-only install of “USB\VID_0000&PID_0000\5&2D9AE04D&0&2”.
#-166 Device install function: DIF_REGISTER_COINSTALLERS.
#I056 Coinstallers registered.
#-166 Device install function: DIF_INSTALLINTERFACES.
#-011 Installing section [BADDEVICE.Dev.NT.Interfaces] from “c:\windows\inf\usb.inf”.
#I054 Interfaces installed.
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of “USB\VID_0000&PID_0000\5&2D9AE04D&0&2”.
#I121 Device install of “USB\VID_0000&PID_0000\5&2D9AE04D&0&2” finished successfully.
Thanks and Regards,
Sushant
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer