Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > PROBLEM: .inf file not installing on Windows XP 64bit

Reply
Thread Tools

PROBLEM: .inf file not installing on Windows XP 64bit

 
 
Smugsboy
Guest
Posts: n/a
 
      02-26-2006
Hi,
I need some help in resolving problems I have with porting my
device driver's .inf file to Windows XP 64 bit.
I had a .inf for WinXP 32bit, I added NTamd64 as the DDK indicated but
still I get the following error when installing the driver:
"A service installation section in this INF is invalid.".

When I manually copy the .sys file into System32\Drivers folder the
installation succeeds and I'm able to use the driver.

ChkInf does not alert on anything (aside from the Unknown class which
is not important).


Below is my .inf file:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~


[Version]
Signature="$Windows NT$"
Provider=%MyCompany%


; ClassGUID indicates GUID_DEVCLASS_UNKNOWN device class
ClassGUID={4D36E97E-E325-11CE-BFC1-08002BE10318}
Class=Unknown


CatalogFile=MyDrv.cat
DriverVer=01/01/2006,4.0.0.0


[DestinationDirs]
DefaultDestDir = 12


;
; Driver information
;


[ControlFlags]
ExcludeFromSelect = PCI\VEN_1111&DEV_6290
ExcludeFromSelect = PCI\VEN_1111&DEV_6292
ExcludeFromSelect = PCI\VEN_1111&DEV_6293
ExcludeFromSelect = PCI\VEN_1111&DEV_6299


[Manufacturer]
%MyCompany% = MyCompanyToolsDevices,NTamd64


[MyCompanyToolsDevices.NTamd64]
%MyCompany.DeviceDescA% = MyDrv, PCI\VEN_1111&DEV_6290
%MyCompany.DeviceDescB% = MyDrv, PCI\VEN_1111&DEV_6292
%MyCompany.DeviceDescC% = MyDrv, PCI\VEN_1111&DEV_6293
%MyCompany.DeviceDescD% = MyDrv, PCI\VEN_1111&DEV_6299


;
; General installation section
;


[MyDrv.NTamd64]
CopyFiles=DriverCopyFiles


;
; File sections
;


[DriverCopyFiles]
MyDrv.sys,,,2


;
; Service Installation
;


[MyDrv.NTamd64.Services]
AddService = MyDrv, 0x00000002 , MyDrv_Service_Inst,
MyDrv_EventLog_Inst


[MyDrv_Service_Inst]
DisplayName = %MyDrv.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary = %12%\MyDrv.sys


[MyDrv_EventLog_Inst]
AddReg = MyDrv_EventLog_AddReg


[MyDrv_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\Sys tem32\IoLogMsg.dll;%Syste*mRoot%\System32\drivers\ MyDrv.sys"

HKR,,TypesSupported,0x00010001,7


;
; AddInterface Section
;
[MyDrv.NTamd64.Interfaces]
AddInterface={245112ED-4961-4822-B1A8-EE7BCD8F5726},GUID reference
string,Interface_GUID reference string0


; AddInterface for interfaces
[Interface_GUID reference string0]
AddReg=Interface_GUID reference string0.AddReg


; Registry for interfaces
[Interface_GUID reference string0.AddReg]


;
; Source file information
;


[SourceDisksNames.x86]
1 = %DiskId1%,,,""


[SourceDisksFiles]
; Files for disk MyCompany corporation Installation Disk #1 (Net)
MyDrv.sys = 1,,


[Strings]


;
; Non-Localizable Strings
;


REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
SERVICEROOT = "System\CurrentControlSet\Services"


;
; Localizable Strings
;


MyCompany.DeviceDescA = "MyDrv A"
MyCompany.DeviceDescB = "MyDrv B"
MyCompany.DeviceDescC = "MyDrv C"
MyCompany.DeviceDescD = "MyDrv D"
DiskId1 = "My Installation Disk"
MyCompany = "MyCompany corporation"
MyDrv.SvcDesc="My Device Driver"


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~


Thanks,
I'll appreciate any help,

 
Reply With Quote
 
 
 
 
Tony Sperling
Guest
Posts: n/a
 
      02-26-2006
Sorry, this group is targeted at more general issues - although visited by
all kinds of people, you may find yourself waiting for an answer. Try:

microsoft.public.development.device.drivers

they might do a much better job of it - (perhaps).


Tony. . .


"Smugsboy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
Hi,
I need some help in resolving problems I have with porting my
device driver's .inf file to Windows XP 64 bit.
I had a .inf for WinXP 32bit, I added NTamd64 as the DDK indicated but
still I get the following error when installing the driver:
"A service installation section in this INF is invalid.".

When I manually copy the .sys file into System32\Drivers folder the
installation succeeds and I'm able to use the driver.

ChkInf does not alert on anything (aside from the Unknown class which
is not important).


Below is my .inf file:


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~


[Version]
Signature="$Windows NT$"
Provider=%MyCompany%


; ClassGUID indicates GUID_DEVCLASS_UNKNOWN device class
ClassGUID={4D36E97E-E325-11CE-BFC1-08002BE10318}
Class=Unknown


CatalogFile=MyDrv.cat
DriverVer=01/01/2006,4.0.0.0


[DestinationDirs]
DefaultDestDir = 12


;
; Driver information
;


[ControlFlags]
ExcludeFromSelect = PCI\VEN_1111&DEV_6290
ExcludeFromSelect = PCI\VEN_1111&DEV_6292
ExcludeFromSelect = PCI\VEN_1111&DEV_6293
ExcludeFromSelect = PCI\VEN_1111&DEV_6299


[Manufacturer]
%MyCompany% = MyCompanyToolsDevices,NTamd64


[MyCompanyToolsDevices.NTamd64]
%MyCompany.DeviceDescA% = MyDrv, PCI\VEN_1111&DEV_6290
%MyCompany.DeviceDescB% = MyDrv, PCI\VEN_1111&DEV_6292
%MyCompany.DeviceDescC% = MyDrv, PCI\VEN_1111&DEV_6293
%MyCompany.DeviceDescD% = MyDrv, PCI\VEN_1111&DEV_6299


;
; General installation section
;


[MyDrv.NTamd64]
CopyFiles=DriverCopyFiles


;
; File sections
;


[DriverCopyFiles]
MyDrv.sys,,,2


;
; Service Installation
;


[MyDrv.NTamd64.Services]
AddService = MyDrv, 0x00000002 , MyDrv_Service_Inst,
MyDrv_EventLog_Inst


[MyDrv_Service_Inst]
DisplayName = %MyDrv.SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
LoadOrderGroup = Pointer Port
ServiceBinary = %12%\MyDrv.sys


[MyDrv_EventLog_Inst]
AddReg = MyDrv_EventLog_AddReg


[MyDrv_EventLog_AddReg]
HKR,,EventMessageFile,0x00020000,"%SystemRoot%\Sys tem32\IoLogMsg.dll;%Syste*mRoot%\System32\drivers\ MyDrv.sys"

HKR,,TypesSupported,0x00010001,7


;
; AddInterface Section
;
[MyDrv.NTamd64.Interfaces]
AddInterface={245112ED-4961-4822-B1A8-EE7BCD8F5726},GUID reference
string,Interface_GUID reference string0


; AddInterface for interfaces
[Interface_GUID reference string0]
AddReg=Interface_GUID reference string0.AddReg


; Registry for interfaces
[Interface_GUID reference string0.AddReg]


;
; Source file information
;


[SourceDisksNames.x86]
1 = %DiskId1%,,,""


[SourceDisksFiles]
; Files for disk MyCompany corporation Installation Disk #1 (Net)
MyDrv.sys = 1,,


[Strings]


;
; Non-Localizable Strings
;


REG_SZ = 0x00000000
REG_MULTI_SZ = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_BINARY = 0x00000001
REG_DWORD = 0x00010001
SERVICEROOT = "System\CurrentControlSet\Services"


;
; Localizable Strings
;


MyCompany.DeviceDescA = "MyDrv A"
MyCompany.DeviceDescB = "MyDrv B"
MyCompany.DeviceDescC = "MyDrv C"
MyCompany.DeviceDescD = "MyDrv D"
DiskId1 = "My Installation Disk"
MyCompany = "MyCompany corporation"
MyDrv.SvcDesc="My Device Driver"


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~


Thanks,
I'll appreciate any help,


 
Reply With Quote
 
 
 
 
Rick
Guest
Posts: n/a
 
      02-26-2006
You cannot load ANY 32-bit drivers. Decorating a 32-bit .INF will not
make it work on Win x64. You have to have 64-bit drivers written for x64.

Smugsboy wrote:
> Hi,
> I need some help in resolving problems I have with porting my
> device driver's .inf file to Windows XP 64 bit.
> I had a .inf for WinXP 32bit, I added NTamd64 as the DDK indicated but
> still I get the following error when installing the driver:
> "A service installation section in this INF is invalid.".
>
> When I manually copy the .sys file into System32\Drivers folder the
> installation succeeds and I'm able to use the driver.
>
> ChkInf does not alert on anything (aside from the Unknown class which
> is not important).
>
>
> Below is my .inf file:
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
>
>
> [Version]
> Signature="$Windows NT$"
> Provider=%MyCompany%
>
>
> ; ClassGUID indicates GUID_DEVCLASS_UNKNOWN device class
> ClassGUID={4D36E97E-E325-11CE-BFC1-08002BE10318}
> Class=Unknown
>
>
> CatalogFile=MyDrv.cat
> DriverVer=01/01/2006,4.0.0.0
>
>
> [DestinationDirs]
> DefaultDestDir = 12
>
>
> ;
> ; Driver information
> ;
>
>
> [ControlFlags]
> ExcludeFromSelect = PCI\VEN_1111&DEV_6290
> ExcludeFromSelect = PCI\VEN_1111&DEV_6292
> ExcludeFromSelect = PCI\VEN_1111&DEV_6293
> ExcludeFromSelect = PCI\VEN_1111&DEV_6299
>
>
> [Manufacturer]
> %MyCompany% = MyCompanyToolsDevices,NTamd64
>
>
> [MyCompanyToolsDevices.NTamd64]
> %MyCompany.DeviceDescA% = MyDrv, PCI\VEN_1111&DEV_6290
> %MyCompany.DeviceDescB% = MyDrv, PCI\VEN_1111&DEV_6292
> %MyCompany.DeviceDescC% = MyDrv, PCI\VEN_1111&DEV_6293
> %MyCompany.DeviceDescD% = MyDrv, PCI\VEN_1111&DEV_6299
>
>
> ;
> ; General installation section
> ;
>
>
> [MyDrv.NTamd64]
> CopyFiles=DriverCopyFiles
>
>
> ;
> ; File sections
> ;
>
>
> [DriverCopyFiles]
> MyDrv.sys,,,2
>
>
> ;
> ; Service Installation
> ;
>
>
> [MyDrv.NTamd64.Services]
> AddService = MyDrv, 0x00000002 , MyDrv_Service_Inst,
> MyDrv_EventLog_Inst
>
>
> [MyDrv_Service_Inst]
> DisplayName = %MyDrv.SvcDesc%
> ServiceType = 1 ; SERVICE_KERNEL_DRIVER
> StartType = 3 ; SERVICE_DEMAND_START
> ErrorControl = 0 ; SERVICE_ERROR_IGNORE
> LoadOrderGroup = Pointer Port
> ServiceBinary = %12%\MyDrv.sys
>
>
> [MyDrv_EventLog_Inst]
> AddReg = MyDrv_EventLog_AddReg
>
>
> [MyDrv_EventLog_AddReg]
> HKR,,EventMessageFile,0x00020000,"%SystemRoot%\Sys tem32\IoLogMsg.dll;%Syste*mRoot%\System32\drivers\ MyDrv.sys"
>
> HKR,,TypesSupported,0x00010001,7
>
>
> ;
> ; AddInterface Section
> ;
> [MyDrv.NTamd64.Interfaces]
> AddInterface={245112ED-4961-4822-B1A8-EE7BCD8F5726},GUID reference
> string,Interface_GUID reference string0
>
>
> ; AddInterface for interfaces
> [Interface_GUID reference string0]
> AddReg=Interface_GUID reference string0.AddReg
>
>
> ; Registry for interfaces
> [Interface_GUID reference string0.AddReg]
>
>
> ;
> ; Source file information
> ;
>
>
> [SourceDisksNames.x86]
> 1 = %DiskId1%,,,""
>
>
> [SourceDisksFiles]
> ; Files for disk MyCompany corporation Installation Disk #1 (Net)
> MyDrv.sys = 1,,
>
>
> [Strings]
>
>
> ;
> ; Non-Localizable Strings
> ;
>
>
> REG_SZ = 0x00000000
> REG_MULTI_SZ = 0x00010000
> REG_EXPAND_SZ = 0x00020000
> REG_BINARY = 0x00000001
> REG_DWORD = 0x00010001
> SERVICEROOT = "System\CurrentControlSet\Services"
>
>
> ;
> ; Localizable Strings
> ;
>
>
> MyCompany.DeviceDescA = "MyDrv A"
> MyCompany.DeviceDescB = "MyDrv B"
> MyCompany.DeviceDescC = "MyDrv C"
> MyCompany.DeviceDescD = "MyDrv D"
> DiskId1 = "My Installation Disk"
> MyCompany = "MyCompany corporation"
> MyDrv.SvcDesc="My Device Driver"
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
>
>
> Thanks,
> I'll appreciate any help,
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WIN 7 64Bit with HP CP2025dn LaserJet With Windows 7 64bit offline issue Anthony Lisanti Windows 64bit 6 04-01-2010 01:32 PM
64bit print server - no 64bit drivers =?Utf-8?B?ZWRoZWFk?= Windows 64bit 1 03-30-2007 09:10 PM
XP 64bit and Vista 64bit questions Charles Chambers Windows 64bit 2 02-20-2007 01:12 AM
Dual boot with Server 2003 64bit and XP 64bit =?Utf-8?B?emltbWVybWE=?= Windows 64bit 8 10-11-2006 03:56 PM
Problems installing Windows 64bit trial version on a Windows 98se =?Utf-8?B?TG9vc2V5d29u?= Windows 64bit 7 11-28-2005 04:40 PM



Advertisments