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

Discussion in 'Windows 64bit' started by Smugsboy, Feb 26, 2006.

  1. Smugsboy

    Smugsboy Guest

    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%\System32\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,
     
    Smugsboy, Feb 26, 2006
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    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%\System32\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,
     
    Tony Sperling, Feb 26, 2006
    #2
    1. Advertising

  3. Smugsboy

    Rick Guest

    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%\System32\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,
    >
     
    Rick, Feb 26, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Juan Jansen\(387010\)

    Re: Help Needed: x64 inf file problem

    Juan Jansen\(387010\), May 10, 2005, in forum: Windows 64bit
    Replies:
    3
    Views:
    987
    Juan Jansen\(387010\)
    May 11, 2005
  2. ANPING LIU
    Replies:
    3
    Views:
    12,816
    Earthlights
    Dec 15, 2010
  3. Jose Medeiros
    Replies:
    1
    Views:
    610
    Darrell Gorter[MSFT]
    Feb 15, 2008
  4. Aruns
    Replies:
    4
    Views:
    785
    Aruns
    Jun 29, 2009
  5. Interceptor
    Replies:
    4
    Views:
    22,644
    AfterBurner
    Feb 8, 2011
Loading...

Share This Page