Still having problem populating Registry using .inf file ... help

Hello,

I am using AddReg to populate my Registry which
should be a trival task … sigh … Below you will
find my .inf file. Is there an ordering that I must
observe?

Regards, Vasili


;/*++
;
;
;
;Module Name:
;
; XXXX.INF
;
;Abstract:
;
; INF file for installing the XXXX WDM driver.
;
;

;
;–*/
[Version]
Signature=“$WINDOWS NT$”
Class=System
ClassGUID={4d36e97d-e325-11ce-bfc1-08002be10318}
CatalogFile=xxxx.cat
Provider=%MFT%
DriverVer=04/10/2003,1.0.5

[DestinationDirs]
DefaultDestDir = 12

;*****************************************
; XXXX Device Install Section
;*****************************************

[Manufacturer]
%StdMfg%=Standard

[Standard]
; DisplayName Section DeviceId
; ----------- ------- --------
%XXXXDevice.DeviceDesc%=XXXX_Device, *xxxx

[XXXX_Device.NT]
CopyFiles=XXX_Device.NT.Copy
AddReg=XXXX_Device.NT.AddReg

[XXXX_Device.NT.Copy]
XXXX.SYS

[XXXX_Device.NT.AddReg]
HKLM,SYSTEM\CurrentControlSet\Services\ipmi\Parameters,SIBaseAddress,0x10001,0xca8
HKLM,SYSTEM\CurrentControlSet\Services\ipmi\Parameters,RegisterSpacing,0x10001,32

;-------------- Service installation

[XXXX_Device.NT.Services]
AddService = ipmi, %SPSVCINST_ASSOCSERVICE%,
XXXX_Service_Inst

; -------------- XXXX Driver install sections
[XXXX_Service_Inst]
DisplayName = %XXXX.SVCDESC%
ServiceType = 1 ;
SERVICE_KERNEL_DRIVER
StartType = 3 ;
SERVICE_DEMAND_START
ErrorControl = 1 ;
SERVICE_ERROR_NORMAL
ServiceBinary = %12%\XXXX.SYS

[SourceDisksNames]
1 = %DiskId1%,“”

[SourceDisksFiles]
XXXX.SYS = 1,

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
MFT = “MS”
StdMfg = “(Standard system devices)”
ClassName = “XXXX”
XXXXDevice.DeviceDesc = “XXXX Device”
XXXX.SVCDESC = “Acme Technologies XXXX Device Driver”
DiskId1 = “XXXX Device Installation Disk #1


Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

Galchin Vasili wrote:

I am using AddReg to populate my Registry which
should be a trival task … sigh … Below you will
find my .inf file. Is there an ordering that I must
observe?

First of all, if you want to add entries to your service key, put the
AddReg verb in the Services section of the INF file. The DDK explains
what HKR means in various circumstances, as does ch. 15 of my WDM book.

Second, instead of trying to assign I/O resources that you discover by
reading the registry, it would be easier to put a LogConfig section into
the INF file and make your driver look like a regular PnP-style driver.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Now teaming with John Hyde for USB Device Engineering Seminars
Check out our schedule at http://www.oneysoft.com