Windows 10 Software Driver installation issue

  • Thread starter Thread starter Rexlin S
  • Start date Start date
R

Rexlin S

Guest
Below is my inf file,created by the kmdf sample code.
When I install this inf ,

neither the driver is copied to system32\drivers folder
nor the registry entries are created.
Is there any issue in this inf ?
To overcome this , I added the registry entries manually and copied the driver file manually to system32\drivers.
To start the driver, in command prompt I entered the command "net start RexRefDriver".
I am getting the error "service name is invalid".
This is a software only driver.
I am not installing this against any device.
I simple double clicked the inf file to install the driver.
Is there any issue in the inf file?
Is there anything I am missing in the driver installation step?
----------------------------------------------------------------------
;
; RexRefDriver.inf
;

[Version]
Signature="$WINDOWS NT$"
Class=Sample ; TODO: edit Class
ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} ; TODO: edit ClassGuid
Provider=%ManufacturerName%
CatalogFile=RexRefDriver.cat
DriverVer = 02/24/2020,16.55.24.139

[DestinationDirs]
DefaultDestDir = 12
RexRefDriver_Device_CoInstaller_CopyFiles = 11

; ================= Class section =====================

[ClassInstall32]
Addreg=SampleClassReg

[SampleClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,-5

[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles.amd64]
RexRefDriver.sys = 1


;*****************************************
; Install Section
;*****************************************

[Manufacturer]
%ManufacturerName%=Standard,NTamd64

[Standard.NTamd64]
%RexRefDriver.DeviceDesc%=RexRefDriver_Device, Root\RexRefDriver ; TODO: edit hw-id

[RexRefDriver_Device.NT]
CopyFiles=Drivers_Dir

[Drivers_Dir]
RexRefDriver.sys

;-------------- Service installation
[RexRefDriver_Device.NT.Services]
AddService = RexRefDriver,%SPSVCINST_ASSOCSERVICE%, RexRefDriver_Service_Inst

; -------------- RexRefDriver driver install sections
[RexRefDriver_Service_Inst]
DisplayName = %RexRefDriver.SVCDESC%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %12%\RexRefDriver.sys

;
;--- RexRefDriver_Device Coinstaller installation ------
;

[RexRefDriver_Device.NT.CoInstallers]
AddReg=RexRefDriver_Device_CoInstaller_AddReg
CopyFiles=RexRefDriver_Device_CoInstaller_CopyFiles

[RexRefDriver_Device_CoInstaller_AddReg]
;


[RexRefDriver_Device_CoInstaller_CopyFiles]
;


[RexRefDriver_Device.NT.Wdf]
KmdfService = RexRefDriver, RexRefDriver_wdfsect
[RexRefDriver_wdfsect]
KmdfLibraryVersion = 1.15

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
ManufacturerName="Rex"
ClassName="RexRefClass" ;
DiskName = "RexRefDriver Installation Disk"
RexRefDriver.DeviceDesc = "RexRefDriver Device"
RexRefDriver.SVCDESC = "RexRefDriver Service"

Continue reading...
 

Similar threads

Back
Top