Hello,
So, I am stumped by trying to get DPInst to deploy our kmdf driver. I am trying to install our non-PnP, non-power-managed, software only, kernel service using DPInst. We have a simple .inx file that currently only supports amd64. When I load our driver using DevCon, all is well and it works with our user mode application. When I try to load our driver using DPInst, I am getting two critical errors:
“Error: Preinstall is not a supported operation for driver type 1”
“Error: Could not get services associated with driver package.”
I suspect that I have an error in my .inx file. All of the files in the driver package have been properly signed with our Authenticode information. The following lists our files, the contents of our .inx file, and the DPInst log. I would really, really appreciate your comments and suggestions. ![]()
Thank you,
Mike
***********************************************
***********************************************
********* Files in the Driver Package *********
***********************************************
***********************************************
xxxxdriver.cat
xxxxdriver.inf
xxxxdriver.sys
WdfCoInstaller01009.dll
***********************************************
***********************************************
*************** xxxxdriver.inx ****************
***********************************************
***********************************************
[Version]
Signature=“$WINDOWS NT$”
Class=System
ClassGuid={4d36e97d-e325-11ce-bfc1-08002be10318}
Provider=%ABOH%
; You may need to change this version in xxxxdriver.rc.
DriverVersion=03/03/2011,1.0.0.0
DriverPackageType=KernelService
CatalogFile=xxxxdriver.cat
[DestinationDirs]
DefaultDestDir = 12
;*****************************************
; xxxxdriver Device Install Section
;*****************************************
[Manufacturer]
%AbohMfg%=Standard,NT$ARCH$
[Manufacturer]
%AbohMfg%= xxxxdriver_Model,NTamd64
[xxxxdriver_Model.NTamd64]
%xxxxdriverDevice.DeviceDesc%=xxxxdriver_Device, {0A8AXXXX-138C-4ABD-XXXX-9CE52047XXXX}\xxxxdriver
; For Win2K
[Standard]
; DisplayName Section DeviceId
; ----------- ------- --------
%xxxxdriverDevice.DeviceDesc%=xxxxdriver_Device, {0A8AXXXX-138C-4ABD-XXXX-9CE52047XXXX}\xxxxdriver
; For XP and later
[Standard.NT$ARCH$]
%xxxxdriverDevice.DeviceDesc%=xxxxdriver_Device, {0A8AXXXX-138C-4ABD-XXXX-9CE52047XXXX}\xxxxdriver
[xxxxdriver_Device.NT]
CopyFiles=xxxxdriver_Device.NT.Copy
[xxxxdriver_Device.NT.Copy]
xxxxdriver.sys
;-------------- Service installation
[xxxxdriver_Device.NT.Services]
AddService = xxxxdriver, %SPSVCINST_ASSOCSERVICE%, xxxxdriver_Service_Inst
[xxxxdriver_Service_Inst]
DisplayName = %xxxxdriver.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\xxxxdriver.sys
LoadOrderGroup = Extended Base
[SourceDisksNames]
; diskid = description[, [tagfile] [, , subdir]]
[SourceDisksNames]
1 = %DiskId1%,“”
[SourceDisksNames.amd64]
1 = %DiskId1%,“”
[SourceDisksFiles]
[SourceDisksFiles.amd64]
xxxxdriver.cat = 1,
xxxxdriver.inf = 1,
xxxxdriver.sys = 1,
WdfCoInstaller01009.dll = 1,
[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ABOH = “A Bit of Help”
AbohMfg = “A Bit of Help, Inc.”
DiskId1 = “A Bit of Help’s Kernel Services Installation Disk #1”
xxxxdriverDevice.DeviceDesc = “Kernel Services for ABOH”
xxxxdriver.SVCDESC = “A Bit of Help’s kernel services”
DPInst Log***
INFO: Option set: dumping log info to console.
INFO: Current working directory: ‘C:\PROJECTS\xxxx\DEPLOYMENT\DPInst\x64’
INFO: Running on path ‘C:\PROJECTS\xxxx\DEPLOYMENT\Drivers\x64’
INFO: No valid ‘dpinst.xml’ file provided.
INFO: Install option set: Force install if driver is not better.
INFO: Found driver package: ‘C:\PROJECTS\xxxx\DEPLOYMENT\Drivers\x64\xxxxdriver.inf’.
INFO: Preinstalling ‘c:\projects\xxxx\deployment\drivers\x64\xxxxdriver.inf’ .
INFO: ENTER: DriverPackagePreinstallW
ERROR: Preinstall is not a supported operation for driver type 1
INFO: RETURN: DriverPackagePreinstallW (0x1)
INFO: ENTER: DriverPackageGetPathW
INFO: No driver store entry for c:\projects\xxxx\deployment\drivers\x64\xxxxdr
iver.inf found. (Error code 0xE0000302.)
INFO: RETURN: DriverPackageGetPathW (0xE0000302)
INFO: ENTER: DriverPackageInstallW
INFO: xxxxdriver.inf: checking signature with catalog ‘c:\projects\xxxx\deploy
ment\drivers\x64\xxxxdriver.cat’ …
INFO: Driver package ‘xxxxdriver.inf’ is Authenticode signed.
INFO: Copied ‘xxxxdriver.inf’ to driver store…
INFO: Copied ‘xxxxdriver.cat’ to driver store…
INFO: Commiting queue…
INFO: Copied file: ‘c:\projects\xxxx\deployment\drivers\x64\xxxxdriver.sys’ ->
‘C:\Windows\system32\DRVSTORE\xxxxdriver_C80F8143490442D1335A8CC5F97E4CD64BFAA6
51\xxxxdriver.sys’.
ERROR: Could not get services associated with driver package.
ERROR: The driver installation failed. Attempting to undo system changes … (E
rror code 0x643: Fatal error during installation.)
INFO: Driver store reference information does not exist for service ‘’. So, no
undo for this service.
ERROR: Unable to revert to a previous driver store for service ‘’.
ERROR: Will attempt to uninstall the driver.
ERROR: Error unable to open service ‘’ to delete it because of error 0x7B
ERROR: Error occurred while deleting service to uninstall the driver store.
ERROR: Error encountered while uninstalling driver store.
ERROR: Error 0x643 encountered while trying to undo the install of driver store
INFO: Driver Store entry ‘’ removed.
INFO: RETURN: DriverPackageInstallW (0x643)
INFO: Returning with code 0x80010000