Driver Installation headaches.

Morning. I actually rebuilt my installer using this latest version of the inf and now the installer just craps out with an error code (that doesn’t get me anywhere). So, between that and the dpinst still telling me it cannot get the services, I’m still at a loss.

Here’s my inf, in its complete form at the moment:

[Version]
Signature = “$Windows NT$”
DriverPackageType = ClassFilter
ClassGuid = {0A796FFA-D294-4833-867A-E0DFD035152E}
Class = “ContentScreener”
Provider = %OSR%
DriverVer = 11/17/2006,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
OsrDmk.DriverFiles = 12 ;%windir%\system32\drivers;
OsrDmk.UserFiles = 10,FltMgr ;%windir%\FltMgr
OsrDs.DriverFiles = 12

;;
;; Source files
;;

[SourceDisksFiles]
OsrDt.sys = 5
OsrDsManager.sys = 5
OsrDmk.sys = 5

[SourceDisksNames]
5 = %Source-Disk-Name%

;;
;; Default install sections
;;

[DefaultInstall]
CopyINF = OsrDmk.UserFiles
CopyFiles = OsrDmk.DriverFiles, OsrDs.DriverFiles, OsrDt.DriverFiles

[DefaultInstall.Services]
AddService = OsrDmk,OsrDmk.Service
AddService = OsrDs,OsrDs.Service
AddService = OsrDt,OsrDt.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = OsrDmk.DriverFiles, OsrDs.DriverFiles, OsrDt.DriverFiles

[DefaultUninstall.Services]
DelService = OsrDmk,0x204
DelService = OsrDs,0x204
DelService = OsrDt,0x204

;
; Services Section
;

[OsrDmk.Service]
DisplayName = “OSR Data Manipulation Kit - core services”
Description = “Osr Dmk - Core”
ServiceBinary = %12%\OsrDmk.sys ;%windir%\system32\drivers\OsrDmk.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDmk.AddRegistry
Dependencies = FltMgr

[OsrDs.Service]
DisplayName = “DSmanager”
Description = “OSR DS SERVICE”
ServiceBinary = %12%\OsrDsManager.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDs.AddRegistry

[OsrDt.Service]
DisplayName = “OSR Data Manipulation Kit - Dt services”
Description = “Osr Dmk - Dt”
ServiceBinary = %12%\OsrDt.sys ;%windir%\system32\drivers\OsrDt.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDt.AddRegistry
Dependencies = FltMgr
;
; Registry Modifications
;

[OsrDmk.AddRegistry]

;
; Common stuff
;

HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry%
HKR,“ThreadPrio”, 0x00010001, %ThreadPrio%
HKR,“RegisterAsFileSystem”, 0x00010001, %RegisterAsFileSystem%
HKR,“PolicyChangeThreads”, 0x00010001, %PolicyChangeThreads%

;
; Minifilter stuff
;

HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%DefaultInstance%
HKR,%RegInstancesSubkeyName%“"%Instance1.Name%,%RegAltitudeValueName%,0x00000000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%”"%Instance1.Name%,%RegFlagsValueName%,0x00010001,%Instance1.Flags%

;
; Specific Core Tuning
;

HKR,“DispatchThreads”, 0x00010001, %DispatchThreads%

[OsrDs.AddRegistry]
;
; Common stuff
;
HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry%
;
; LFS Specific Stuff
;
HKR,“SpaceCleanerThreadPrio”, 0x00010001, %SpaceCleanerThreadPrio%
HKR,“SpaceCleanerThreads”, 0x00010001, %SpaceCleanerThreads%
HKR,“TimeCleanerThreadPrio”, 0x00010001, %TimeCleanerThreadPrio%
HKR,“TimeCleanerThreads”, 0x00010001, %TimeCleanerThreads%
HKR,“FlushThreadPrio”, 0x00010001, %FlushThreadPrio%
HKR,“FlushThreads”, 0x00010001, %FlushThreads%
HKR,“CleanOnClose”, 0x00010001, %CleanOnClose%
HKR,“ReadWriteCheck”, 0x00010001, %ReadWriteCheck%
;;HKR,“CheckpointCheck”, 0x00010001, %CheckPointCheck%
HKR,“CheckpointCheck”, 0x00010001, 0xFFFFFFFF

[OsrDt.AddRegistry]
;
; Common stuff
;
HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry%

[OsrDmk.DriverFiles]
OsrDmk.sys

[OsrDmk.UserFiles]
Osrdmk.inf

[OsrDs.DriverFiles]
OsrDsManager.sys

[OsrDt.DriverFiles]
OsrDt.sys

;
; String Section
;

[Strings]
OSR = “OSR Open Systems Resources, Inc.”
Source-Disk-Name = “Osr Filter Install Disk”

;
; Common tuning
;

BreakOnEntry = 0

;
; CORE tuning
;
DispatchThreads = 4 ; per volume
ThreadPrio = 7
RegisterAsFileSystem = 1
PolicyChangeThreads = 3 ; per system

;
; DSLFS Tuning
;
FlushThreads = 3 ; per volume
FlushThreadPrio = 8 ; Same as usual prio
CleanOnClose = 1 ; TRUE by default

TimeCleanerThreadPrio = 6 ;
TimeCleanerThreads = 3 ; per volume

SpaceCleanerThreadPrio = 10 ;
SpaceCleanerThreads = 2 ; per volume

ReadWriteCheck = 0 ; FALSE (not for customer deployment)
;;CheckPointCheck = 0xFFFFFFFF

;Instances specific information.

RegInstancesSubkeyName = “Instances”
RegDefaultInstanceValueName = “DefaultInstance”
RegAltitudeValueName = “Altitude”
RegFlagsValueName = “Flags”

DefaultInstance = “OsrDmk Instance”
Instance1.Name = “OsrDmk Instance”
Instance1.Altitude = “10250”
Instance1.Flags = 0x1 ; Suppress automatic atl Disk"

---- Original ----

No, it still won’t install using Dpinst. I’ve tried the following options, but it still won’t install:
dpinst /lm /c /q
dpinst /c /q

obviously leaving out the /lm I get the error “there is no catalogue file” which I expect. With the /lm, I still get the same error: “could not get services associated with driver package” along with the error “Preinstall is not a supported operation for driver type 5” Keep in mind that I added the DriverPackageType. I have no idea if its correct or not. I know our driver is a file system filter driver, but outside of that, I’m not really sure about what the install is really supposed to be, other than the rundll install works properly…

You are using the correct package type and you do not need a copyinf
statement. Unfortunately this has nothing to do with your install failure.

What I usually do in a situation like this is to go back to the simplest inf
that works. In your case that means to take the minifilter sample inf file
and get that to work with one of your drivers. From there add the rest.
Make sure that the inf file and driver files are in the same directory.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 9:03 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

Morning. I actually rebuilt my installer using this latest version of the
inf and now the installer just craps out with an error code (that doesn’t
get me anywhere). So, between that and the dpinst still telling me it
cannot get the services, I’m still at a loss.

Here’s my inf, in its complete form at the moment:

[Version]
Signature = “$Windows NT$”
DriverPackageType = ClassFilter
ClassGuid = {0A796FFA-D294-4833-867A-E0DFD035152E}
Class = “ContentScreener”
Provider = %OSR%
DriverVer = 11/17/2006,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
OsrDmk.DriverFiles = 12 ;%windir%\system32\drivers;
OsrDmk.UserFiles = 10,FltMgr ;%windir%\FltMgr
OsrDs.DriverFiles = 12

;;
;; Source files
;;

[SourceDisksFiles]
OsrDt.sys = 5
OsrDsManager.sys = 5
OsrDmk.sys = 5

[SourceDisksNames]
5 = %Source-Disk-Name%

;;
;; Default install sections
;;

[DefaultInstall]
CopyINF = OsrDmk.UserFiles
CopyFiles = OsrDmk.DriverFiles, OsrDs.DriverFiles, OsrDt.DriverFiles

[DefaultInstall.Services]
AddService = OsrDmk,OsrDmk.Service
AddService = OsrDs,OsrDs.Service
AddService = OsrDt,OsrDt.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = OsrDmk.DriverFiles, OsrDs.DriverFiles, OsrDt.DriverFiles

[DefaultUninstall.Services]
DelService = OsrDmk,0x204
DelService = OsrDs,0x204
DelService = OsrDt,0x204

;
; Services Section
;

[OsrDmk.Service]
DisplayName = “OSR Data Manipulation Kit - core services”
Description = “Osr Dmk - Core”
ServiceBinary = %12%\OsrDmk.sys
;%windir%\system32\drivers\OsrDmk.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDmk.AddRegistry
Dependencies = FltMgr

[OsrDs.Service]
DisplayName = “DSmanager”
Description = “OSR DS SERVICE”
ServiceBinary = %12%\OsrDsManager.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDs.AddRegistry

[OsrDt.Service]
DisplayName = “OSR Data Manipulation Kit - Dt services”
Description = “Osr Dmk - Dt”
ServiceBinary = %12%\OsrDt.sys ;%windir%\system32\drivers\OsrDt.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDt.AddRegistry
Dependencies = FltMgr
;
; Registry Modifications
;

[OsrDmk.AddRegistry]

;
; Common stuff
;

HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry% HKR,“ThreadPrio”,
0x00010001, %ThreadPrio% HKR,“RegisterAsFileSystem”, 0x00010001,
%RegisterAsFileSystem% HKR,“PolicyChangeThreads”, 0x00010001,
%PolicyChangeThreads%

;
; Minifilter stuff
;

HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%Defau
ltInstance%
HKR,%RegInstancesSubkeyName%“"%Instance1.Name%,%RegAltitudeValueName%,0x000
00000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%”"%Instance1.Name%,%RegFlagsValueName%,0x000100
01,%Instance1.Flags%

;
; Specific Core Tuning
;

HKR,“DispatchThreads”, 0x00010001, %DispatchThreads%

[OsrDs.AddRegistry]
;
; Common stuff
;
HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry% ; ; LFS Specific Stuff ;
HKR,“SpaceCleanerThreadPrio”, 0x00010001, %SpaceCleanerThreadPrio%
HKR,“SpaceCleanerThreads”, 0x00010001, %SpaceCleanerThreads%
HKR,“TimeCleanerThreadPrio”, 0x00010001, %TimeCleanerThreadPrio%
HKR,“TimeCleanerThreads”, 0x00010001, %TimeCleanerThreads%
HKR,“FlushThreadPrio”, 0x00010001, %FlushThreadPrio% HKR,“FlushThreads”,
0x00010001, %FlushThreads% HKR,“CleanOnClose”, 0x00010001, %CleanOnClose%
HKR,“ReadWriteCheck”, 0x00010001, %ReadWriteCheck%
;;HKR,“CheckpointCheck”, 0x00010001, %CheckPointCheck%
HKR,“CheckpointCheck”, 0x00010001, 0xFFFFFFFF

[OsrDt.AddRegistry]
;
; Common stuff
;
HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry%

[OsrDmk.DriverFiles]
OsrDmk.sys

[OsrDmk.UserFiles]
Osrdmk.inf

[OsrDs.DriverFiles]
OsrDsManager.sys

[OsrDt.DriverFiles]
OsrDt.sys

;
; String Section
;

[Strings]
OSR = “OSR Open Systems Resources, Inc.”
Source-Disk-Name = “Osr Filter Install Disk”

;
; Common tuning
;

BreakOnEntry = 0

;
; CORE tuning
;
DispatchThreads = 4 ; per volume
ThreadPrio = 7
RegisterAsFileSystem = 1
PolicyChangeThreads = 3 ; per system

;
; DSLFS Tuning
;
FlushThreads = 3 ; per volume
FlushThreadPrio = 8 ; Same as usual prio
CleanOnClose = 1 ; TRUE by default

TimeCleanerThreadPrio = 6 ;
TimeCleanerThreads = 3 ; per volume

SpaceCleanerThreadPrio = 10 ;
SpaceCleanerThreads = 2 ; per volume

ReadWriteCheck = 0 ; FALSE (not for customer deployment)
;;CheckPointCheck = 0xFFFFFFFF

;Instances specific information.

RegInstancesSubkeyName = “Instances”
RegDefaultInstanceValueName = “DefaultInstance”
RegAltitudeValueName = “Altitude”
RegFlagsValueName = “Flags”

DefaultInstance = “OsrDmk Instance”
Instance1.Name = “OsrDmk Instance”
Instance1.Altitude = “10250”
Instance1.Flags = 0x1 ; Suppress automatic atl Disk"

---- Original ----

No, it still won’t install using Dpinst. I’ve tried the following options,
but it still won’t install:
dpinst /lm /c /q
dpinst /c /q

obviously leaving out the /lm I get the error “there is no catalogue file”
which I expect. With the /lm, I still get the same error: “could not get
services associated with driver package” along with the error “Preinstall is
not a supported operation for driver type 5” Keep in mind that I added the
DriverPackageType. I have no idea if its correct or not. I know our driver
is a file system filter driver, but outside of that, I’m not really sure
about what the install is really supposed to be, other than the rundll
install works properly…


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

I ran your inf with dpinst and got the same error. I then commented out the
second and third driver in the DefaultInstall.Services section and the
install worked. Since I don’t have your drivers I just created text files
and named them the same as your driver names.
You should be able to duplicate what I did and then figure out the rest
yourself.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 9:03 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

Morning. I actually rebuilt my installer using this latest version of the
inf and now the installer just craps out with an error code (that doesn’t
get me anywhere). So, between that and the dpinst still telling me it
cannot get the services, I’m still at a loss.

Here’s my inf, in its complete form at the moment:

[Version]
Signature = “$Windows NT$”
DriverPackageType = ClassFilter
ClassGuid = {0A796FFA-D294-4833-867A-E0DFD035152E}
Class = “ContentScreener”
Provider = %OSR%
DriverVer = 11/17/2006,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
OsrDmk.DriverFiles = 12 ;%windir%\system32\drivers;
OsrDmk.UserFiles = 10,FltMgr ;%windir%\FltMgr
OsrDs.DriverFiles = 12

;;
;; Source files
;;

[SourceDisksFiles]
OsrDt.sys = 5
OsrDsManager.sys = 5
OsrDmk.sys = 5

[SourceDisksNames]
5 = %Source-Disk-Name%

;;
;; Default install sections
;;

[DefaultInstall]
CopyINF = OsrDmk.UserFiles
CopyFiles = OsrDmk.DriverFiles, OsrDs.DriverFiles, OsrDt.DriverFiles

[DefaultInstall.Services]
AddService = OsrDmk,OsrDmk.Service
AddService = OsrDs,OsrDs.Service
AddService = OsrDt,OsrDt.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = OsrDmk.DriverFiles, OsrDs.DriverFiles, OsrDt.DriverFiles

[DefaultUninstall.Services]
DelService = OsrDmk,0x204
DelService = OsrDs,0x204
DelService = OsrDt,0x204

;
; Services Section
;

[OsrDmk.Service]
DisplayName = “OSR Data Manipulation Kit - core services”
Description = “Osr Dmk - Core”
ServiceBinary = %12%\OsrDmk.sys
;%windir%\system32\drivers\OsrDmk.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDmk.AddRegistry
Dependencies = FltMgr

[OsrDs.Service]
DisplayName = “DSmanager”
Description = “OSR DS SERVICE”
ServiceBinary = %12%\OsrDsManager.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDs.AddRegistry

[OsrDt.Service]
DisplayName = “OSR Data Manipulation Kit - Dt services”
Description = “Osr Dmk - Dt”
ServiceBinary = %12%\OsrDt.sys ;%windir%\system32\drivers\OsrDt.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDt.AddRegistry
Dependencies = FltMgr
;
; Registry Modifications
;

[OsrDmk.AddRegistry]

;
; Common stuff
;

HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry% HKR,“ThreadPrio”,
0x00010001, %ThreadPrio% HKR,“RegisterAsFileSystem”, 0x00010001,
%RegisterAsFileSystem% HKR,“PolicyChangeThreads”, 0x00010001,
%PolicyChangeThreads%

;
; Minifilter stuff
;

HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%Defau
ltInstance%
HKR,%RegInstancesSubkeyName%“"%Instance1.Name%,%RegAltitudeValueName%,0x000
00000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%”"%Instance1.Name%,%RegFlagsValueName%,0x000100
01,%Instance1.Flags%

;
; Specific Core Tuning
;

HKR,“DispatchThreads”, 0x00010001, %DispatchThreads%

[OsrDs.AddRegistry]
;
; Common stuff
;
HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry% ; ; LFS Specific Stuff ;
HKR,“SpaceCleanerThreadPrio”, 0x00010001, %SpaceCleanerThreadPrio%
HKR,“SpaceCleanerThreads”, 0x00010001, %SpaceCleanerThreads%
HKR,“TimeCleanerThreadPrio”, 0x00010001, %TimeCleanerThreadPrio%
HKR,“TimeCleanerThreads”, 0x00010001, %TimeCleanerThreads%
HKR,“FlushThreadPrio”, 0x00010001, %FlushThreadPrio% HKR,“FlushThreads”,
0x00010001, %FlushThreads% HKR,“CleanOnClose”, 0x00010001, %CleanOnClose%
HKR,“ReadWriteCheck”, 0x00010001, %ReadWriteCheck%
;;HKR,“CheckpointCheck”, 0x00010001, %CheckPointCheck%
HKR,“CheckpointCheck”, 0x00010001, 0xFFFFFFFF

[OsrDt.AddRegistry]
;
; Common stuff
;
HKR,“BreakOnEntry”,0x00010001, %BreakOnEntry%

[OsrDmk.DriverFiles]
OsrDmk.sys

[OsrDmk.UserFiles]
Osrdmk.inf

[OsrDs.DriverFiles]
OsrDsManager.sys

[OsrDt.DriverFiles]
OsrDt.sys

;
; String Section
;

[Strings]
OSR = “OSR Open Systems Resources, Inc.”
Source-Disk-Name = “Osr Filter Install Disk”

;
; Common tuning
;

BreakOnEntry = 0

;
; CORE tuning
;
DispatchThreads = 4 ; per volume
ThreadPrio = 7
RegisterAsFileSystem = 1
PolicyChangeThreads = 3 ; per system

;
; DSLFS Tuning
;
FlushThreads = 3 ; per volume
FlushThreadPrio = 8 ; Same as usual prio
CleanOnClose = 1 ; TRUE by default

TimeCleanerThreadPrio = 6 ;
TimeCleanerThreads = 3 ; per volume

SpaceCleanerThreadPrio = 10 ;
SpaceCleanerThreads = 2 ; per volume

ReadWriteCheck = 0 ; FALSE (not for customer deployment)
;;CheckPointCheck = 0xFFFFFFFF

;Instances specific information.

RegInstancesSubkeyName = “Instances”
RegDefaultInstanceValueName = “DefaultInstance”
RegAltitudeValueName = “Altitude”
RegFlagsValueName = “Flags”

DefaultInstance = “OsrDmk Instance”
Instance1.Name = “OsrDmk Instance”
Instance1.Altitude = “10250”
Instance1.Flags = 0x1 ; Suppress automatic atl Disk"

---- Original ----

No, it still won’t install using Dpinst. I’ve tried the following options,
but it still won’t install:
dpinst /lm /c /q
dpinst /c /q

obviously leaving out the /lm I get the error “there is no catalogue file”
which I expect. With the /lm, I still get the same error: “could not get
services associated with driver package” along with the error “Preinstall is
not a supported operation for driver type 5” Keep in mind that I added the
DriverPackageType. I have no idea if its correct or not. I know our driver
is a file system filter driver, but outside of that, I’m not really sure
about what the install is really supposed to be, other than the rundll
install works properly…


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

Thanks for the help, Bill. I’ll report once I get further. I was in the process of stripping out to a single file and getting them to work one by one.

— original —
I ran your inf with dpinst and got the same error. I then commented out the second and third driver in the DefaultInstall.Services section and the install worked. Since I don’t have your drivers I just created text files and named them the same as your driver names. You should be able to duplicate what I did and then figure out the rest yourself. Bill Wandel

Hrm. I really wish I could find the documentation which explains the sequential ordering of execution the installer goes through when parsing out the inf file.

Could someone please explain to me what the 'variable’s in this section are and where they come from? I cannot find them in the documentation. Is this section equivalent to the DDInstall.Service section, with the DDInstall being the name of the sysfile you are associating with the service information you wish to install?

[OsrDs.Service]
DisplayName = “DSmanager”
Description = “OSR DS SERVICE”
ServiceBinary = %12%\OsrDsManager.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = “FSFilter Compression”
AddReg = OsrDs.AddRegistry

---- Original ----
Hrm. I really wish I could find the documentation which explains the sequential ordering of execution the installer goes through when parsing out the inf file.

I found what I’m looking for.
ms-help://MS.WDK.v10.6001.080806/IFSK_d/hh/IFSK_d/MF_Ch2Install_e8a6d8fa-2e3d-4722-abe0-001eaf3cba72.xml.htm
---- original ----
Could someone please explain to me what the 'variable’s in this section are and where they come from? I cannot find them in the documentation. Is this section equivalent to the DDInstall.Service section, with the DDInstall being the name of the sysfile you are associating with the service information you wish to install? [OsrDs.Service] DisplayName = “DSmanager” Description = “OSR DS SERVICE” ServiceBinary = %12%\OsrDsManager.sys ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER StartType = 3 ;SERVICE_DEMAND_START ErrorControl = 1 ;SERVICE_ERROR_NORMAL LoadOrderGroup = “FSFilter Compression” AddReg = OsrDs.AddRegistry

You DO realize that the ORDER of the sections in the INF file doesn’t matter, right? The whole INF file is read-in, parsed, (translated to internal format) and then processed.

Each AddService directive in your DefaultInstall.Services section points you to the Add Service section by name.

No disrespect intended, but I suggest you take a step back, and spend some quality engineering time reading the docs and figuring out how an INF file is processed. Yes, I understand the docs are not tutorial in any way. But, as REFERENCE documentation, I actually find them pretty good. Not perfect, but pretty good.

To your specific question about the variable names, assuming you’re talking about “SERVICE_DEMAND_START”, etc:

http://msdn.microsoft.com/en-us/library/ms794559.aspx
or
http://msdn.microsoft.com/en-us/library/ms790708.aspx

Or, just type the names shown into google and go from there,

Peter
OSR

I don’t know the answer to this but can dpinst install multiple drivers from
one inf file? I have never tried it and I am beginning to suspect that the
answer is no.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 9:53 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

Thanks for the help, Bill. I’ll report once I get further. I was in the
process of stripping out to a single file and getting them to work one by
one.

— original —
I ran your inf with dpinst and got the same error. I then commented out the
second and third driver in the DefaultInstall.Services section and the
install worked. Since I don’t have your drivers I just created text files
and named them the same as your driver names. You should be able to
duplicate what I did and then figure out the rest yourself. Bill Wandel


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

Peter,

thanks for the advice, it’s always good to go back to basics when you begin getting lost. I also agree the documention is good as a reference, if you know what you are looking for.

Bill, ironically, I ripped out each .sys into its own inf, and the dpinst actually runs through them individually. However, I get the following error:

“The software you are installing for this hardware ContentScreener has not passed Windows Logo testing to verify its compatibility with Windows XP. This hardware will not be installed.”

Of course, dpsint comes back saying the installation was successful. But when I try to load it using the filter manager, I get the error 0x8007013d, Reason 317.

This is using the /lm option on dpinst.

So, it looks like I actually need to go through the and build the cat file and sign the sys files.

Again, thanks everyone.
D
— Original —
I don’t know the answer to this but can dpinst install multiple drivers from one inf file? I have never tried it and I am beginning to suspect that the answer is no. Bill Wandel

You do not need to have a cat file and do not need to sign the driver for
XP. It should install without errors.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 12:33 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

Peter,

thanks for the advice, it’s always good to go back to basics when you begin
getting lost. I also agree the documention is good as a reference, if you
know what you are looking for.

Bill, ironically, I ripped out each .sys into its own inf, and the dpinst
actually runs through them individually. However, I get the following
error:

“The software you are installing for this hardware ContentScreener has not
passed Windows Logo testing to verify its compatibility with Windows XP.
This hardware will not be installed.”

Of course, dpsint comes back saying the installation was successful. But
when I try to load it using the filter manager, I get the error 0x8007013d,
Reason 317.

This is using the /lm option on dpinst.

So, it looks like I actually need to go through the and build the cat file
and sign the sys files.

Again, thanks everyone.
D
— Original —
I don’t know the answer to this but can dpinst install multiple drivers from
one inf file? I have never tried it and I am beginning to suspect that the
answer is no. Bill Wandel


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

Bill Wandel wrote:

I don’t know the answer to this but can dpinst install multiple drivers from
one inf file? I have never tried it and I am beginning to suspect that the
answer is no.

For PnP drivers, this certainly works. In that case, dpinst doesn’t
really do very much: it scans the INF file to figure out which files
might possibly be needed by this INF, then it copies all of those files
into the Driver Store, and creates an uninstall record. That’s about it.

For a class filter, dpinst does more than that. It actually processes
the DefaultInstall and DefaultInstall.Services section to perform the
installation. In that case, I don’t know whether it will handle
multiple services. The documentation is ambiguous:

For class filter drivers, DPInst processes the INF *DefaultInstall*
section http: and
the INF DefaultInstall.Services section
http: in the
driver’s INF file to install the driver and the service.

Notice that it says “THE driver and THE service”. Am I reading too much
into the doc?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.</http:></http:>

I did get that error but ignored it since dpinst was happy. Sorry about
that.
I stripped most everything out of your inf file including the second and
third driver and all the addreg sections. The resulting inf file did install
correctly. No errors and the driver section in the registry was set up
correctly. This is your starting point.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 12:33 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

Peter,

thanks for the advice, it’s always good to go back to basics when you begin
getting lost. I also agree the documention is good as a reference, if you
know what you are looking for.

Bill, ironically, I ripped out each .sys into its own inf, and the dpinst
actually runs through them individually. However, I get the following
error:

“The software you are installing for this hardware ContentScreener has not
passed Windows Logo testing to verify its compatibility with Windows XP.
This hardware will not be installed.”

Of course, dpsint comes back saying the installation was successful. But
when I try to load it using the filter manager, I get the error 0x8007013d,
Reason 317.

This is using the /lm option on dpinst.

So, it looks like I actually need to go through the and build the cat file
and sign the sys files.

Again, thanks everyone.
D
— Original —
I don’t know the answer to this but can dpinst install multiple drivers from
one inf file? I have never tried it and I am beginning to suspect that the
answer is no. Bill Wandel


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

All I really need to do is try it by building a simple inf file that works
and then adding a second section. That is usually the way the get the real
answer.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of Tim Roberts
Sent: Thursday, October 30, 2008 12:54 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] Driver Installation headaches.

Bill Wandel wrote:

I don’t know the answer to this but can dpinst install multiple
drivers from one inf file? I have never tried it and I am beginning to
suspect that the answer is no.

For PnP drivers, this certainly works. In that case, dpinst doesn’t really
do very much: it scans the INF file to figure out which files might possibly
be needed by this INF, then it copies all of those files into the Driver
Store, and creates an uninstall record. That’s about it.

For a class filter, dpinst does more than that. It actually processes the
DefaultInstall and DefaultInstall.Services section to perform the
installation. In that case, I don’t know whether it will handle multiple
services. The documentation is ambiguous:

For class filter drivers, DPInst processes the INF *DefaultInstall*
section http: and
the INF DefaultInstall.Services section
http: in the
driver?s INF file to install the driver and the service.

Notice that it says “THE driver and THE service”. Am I reading too much
into the doc?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.


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</http:></http:>

Bill,

Here’s the information pertaining to Difx and its installation of Class filter Drivers. All of our hunches were correct, difx (dpinst.exe) specifies that a driver package can only support one service. My Driver package was trying to install 3 services, which dpinst doesn’t like.

I have seperated the three files into their own infs and I am now working to figure out what the logo testing verification failure is caused by.

---- Original Message —
All I really need to do is try it by building a simple inf file that works and then adding a second section. That is usually the way the get the real answer. Bill Wandel

You did see my message about getting a stripped down version of your inf to
work, didn’t you?

Bill

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 2:10 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

Bill,

Here’s the information pertaining to Difx and its installation of Class
filter Drivers. All of our hunches were correct, difx (dpinst.exe)
specifies that a driver package can only support one service. My Driver
package was trying to install 3 services, which dpinst doesn’t like.

I have seperated the three files into their own infs and I am now working to
figure out what the logo testing verification failure is caused by.

---- Original Message —
All I really need to do is try it by building a simple inf file that works
and then adding a second section. That is usually the way the get the real
answer. Bill Wandel


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

No,

I must have missed it. I see it now. Did you run it through dpinst? If so, you should have gotten that windows logo error, but dpinst would return successful. So although it supposedly installed, when I attempt to load it via the filter manager, I get the error:

“Load failed with error: 0x8007013d
Error could not be translated Code: 0x8007013d, Reason: 317”

— original —
You did see my message about getting a stripped down version of your inf to work, didn’t you? Bill

I was just looking at the install. The driver installed without messages or
errors. Running the driver is a separate issue especially since my driver
image was just a test file. Also since the driver is a minifilter and I din
not add the instance data to the registry the driver would not have worked
anyway.
By the way, you can use net start to start the driver.

Bill

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 2:29 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

No,

I must have missed it. I see it now. Did you run it through dpinst? If
so, you should have gotten that windows logo error, but dpinst would return
successful. So although it supposedly installed, when I attempt to load it
via the filter manager, I get the error:

“Load failed with error: 0x8007013d
Error could not be translated Code: 0x8007013d, Reason: 317”

— original —
You did see my message about getting a stripped down version of your inf to
work, didn’t you? Bill


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

Well, they seem to be interrelated because if I right click->install all of the individual infs, I’m able to load the driver. But when I use dpinst, I still get the windows logo error, which is telling me the driver isn’t signed.

so I grabbed the clasfilt example from the DDK, and ran it as is, without any changes other than adding the FilterClass Content Screener Guid, and It wouldn’t run because I had to add the other components to the Version section. But once I did that I still get the sign error…

What OS/service pack are you testing this on? I’m running these tests on Windows XP win32, Version 5.1 (Build 2600: SP 3). Maybe there is something in the configuration of the OS. Regardless, the fact that it seems to not let me install an unsigned driver has me totally stumped, and I’m not having much luck in locating anything in the documentation or even through some google searching…

Here is my stripped down inf to be sure it’s the same thing you are running:

— original ----
I was just looking at the install. The driver installed without messages or errors. Running the driver is a separate issue especially since my driver image was just a test file. Also since the driver is a minifilter and I din not add the instance data to the registry the driver would not have worked anyway. By the way, you can use net start to start the driver. Bill

Did you strip everything out of your inf file except the basic install of
the first driver?

This has nothing to do with driver signing or logo testing. I have installed
drivers on all versions of XP.

If you don’t want to do what I suggested then take scanner.inf from the
samples, delete the catalog statement, and add the drivertype statement and
install it with dpinst. Make sure you have scanner.sys in the install
directory.

Bill Wandel

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]
On Behalf Of xxxxx@rationalretention.com
Sent: Thursday, October 30, 2008 3:32 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] Driver Installation headaches.

Well, they seem to be interrelated because if I right click->install all of
the individual infs, I’m able to load the driver. But when I use dpinst, I
still get the windows logo error, which is telling me the driver isn’t
signed.

so I grabbed the clasfilt example from the DDK, and ran it as is, without
any changes other than adding the FilterClass Content Screener Guid, and It
wouldn’t run because I had to add the other components to the Version
section. But once I did that I still get the sign error…

What OS/service pack are you testing this on? I’m running these tests on
Windows XP win32, Version 5.1 (Build 2600: SP 3). Maybe there is something
in the configuration of the OS. Regardless, the fact that it seems to not
let me install an unsigned driver has me totally stumped, and I’m not having
much luck in locating anything in the documentation or even through some
google searching…

Here is my stripped down inf to be sure it’s the same thing you are running:

— original ----
I was just looking at the install. The driver installed without messages or
errors. Running the driver is a separate issue especially since my driver
image was just a test file. Also since the driver is a minifilter and I din
not add the instance data to the registry the driver would not have worked
anyway. By the way, you can use net start to start the driver. Bill


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