Click here to Skip to main content
14,022,666 members

Hardware & Devices

 
GeneralRe: USB, Embedded System Pin
C-P-User-316-Apr-13 8:06
memberC-P-User-316-Apr-13 8:06 
GeneralRe: USB, Embedded System Pin
Jonathan Davies17-Apr-13 5:20
memberJonathan Davies17-Apr-13 5:20 
GeneralRe: USB, Embedded System Pin
C-P-User-317-Apr-13 5:24
memberC-P-User-317-Apr-13 5:24 
GeneralRe: USB, Embedded System Pin
Jonathan Davies17-Apr-13 6:28
memberJonathan Davies17-Apr-13 6:28 
GeneralRe: USB, Embedded System Pin
C-P-User-317-Apr-13 7:47
memberC-P-User-317-Apr-13 7:47 
GeneralRe: USB, Embedded System Pin
C-P-User-318-Apr-13 5:52
memberC-P-User-318-Apr-13 5:52 
GeneralRe: USB, Embedded System Pin
Jonathan Davies18-Apr-13 6:07
memberJonathan Davies18-Apr-13 6:07 
QuestionTrouble creating .inf file Pin
fglenn18-Mar-13 13:01
memberfglenn18-Mar-13 13:01 
EDIT - Thanks to everyone that replied. Big Grin | :-D I have found a better solution than an INF file.

My company has an existing software-only driver. The 32-bit version is being installed using InstallShield. Unfortunately for me, the company wants to get away from InstallShield as the product in question is going to be part of a customer's own installation. The build system here produces the 64-bit signed driver, and I am tasked with creating a .inf file to install this driver. I've been reading Microsoft documents about .inf files (until my eyes are bleeding) and all of this documentation seems to be centered around the Windows Driver Development Kit. I believe that this kit generates a .inx file which is really the .inf file. However, all I need to do is create a .inf file that will do the job.

When right-clicking on the .inf file and selecting Install, the install process is spectacularly silent about anything that is happening (right or wrong). So it is very difficult to determine what is happening.

Some of my problems include the following:
1. The driver is already signed, so I find it unlikely that I will need a CatalogFile. Will the .inf file work without a defined CatalogFile?
2. It seems that a software-only driver needs to have some dummy device installed, and (from the InstallShield results) I see this dummy device in HKLM\CurrentControlSet\Enum\Root\LEGACY_DRIVER_NAME. This is somehow linked to service entry in HKLM\CurrentControlSet\services\driver_name which points to the actual driver executable in \Windows\System32\drivers. I'm getting lost trying to define this dummy device.
3. I am successful installing the service, and I find it in the registry, but the install process never copies my driver into the drivers directory, so it appears to die before it gets that far.
4. I keep reading about a CoInstaller, but I get the feeling that it is not exactly necessary. Is this correct?

What I need is a clue. I haven't defined the dummy driver entry which is where I need the help. I've also made the assumption that the install directory where the .inf file is executed from is the root of the SourceDisk. Here's what I have in my .inf file so far:

This was edited to include a missing quote.
[Version]
Signature = "$CHICAGO$"
Class = LegacyDriver
ClassGuid = {8ECC055D-047F-11D1-A537-0000F8753ED1}
Privider = %US%
DriverVer = 12/16/2012, 5.1.0.126

[vstor2-mntapi20-sharedCopyFiles]
%DriverExeName%

[SourceDiskNames.amd64]
1 = %DiskDesc%,,,\AMD64

[SourceDiskFiles.amd64]
%DriverExeName% = 1

[DestinationDirs]
DefaultDestDir = 12

[vstor2-mntapi20-sharedInstall.NTamd64]
CopyFiles = vstor2-mntapi20-sharedCopyFiles

[vstor2-mntapi20-shared.NTamd64.Services]
AddService = vstor2-mntapi20-shared,, vstor2-mntapi20-sharedServiceInst

[DefaultInstall.NTamd64]
CopyFiles = vstor2-shared-sharedCopyFiles

[DefaultInstall.NTamd64.Services]
AddService = vstor2-mntapi20-shared,, vstor2-mntapi20-sharedServiceInst

[vstor2-mntapi20-sharedServiceInst]
ServiceType   = 1 ; SERVICE_KERNEL_DRIVER
StartType     = 2 ; SERVICE_AUTO_START
ErrorControl  = 1 ; SERVICE_ERROR_NORMAL
DisplayName   = vstor2-mntapi20-shared
ServiceBinary = %12%\%DriverExeName%

[Strings]
US = "Company Name"
DiskDesc = "Install Directory"
DriverExeName = "vstor2-mntapi20-shared.sys"

Fletcher Glenn


modified 20-Mar-13 13:10pm.

AnswerRe: Trouble creating .inf file Pin
David Knechtges20-Mar-13 5:32
memberDavid Knechtges20-Mar-13 5:32 
GeneralRe: Trouble creating .inf file Pin
fglenn20-Mar-13 7:07
memberfglenn20-Mar-13 7:07 
AnswerRe: Trouble creating .inf file Pin
Erudite_Eric25-Mar-13 4:17
memberErudite_Eric25-Mar-13 4:17 
QuestionUSB to RS-232 converter with 5 Baud Pin
Kiran Satish13-Mar-13 11:52
memberKiran Satish13-Mar-13 11:52 
AnswerRe: USB to RS-232 converter with 5 Baud Pin
Erudite_Eric17-Mar-13 1:21
memberErudite_Eric17-Mar-13 1:21 
AnswerRe: USB to RS-232 converter with 5 Baud Pin
Albert Holguin19-Mar-13 5:28
professionalAlbert Holguin19-Mar-13 5:28 
AnswerRe: USB to RS-232 converter with 5 Baud Pin
Steve4419-Mar-13 22:29
memberSteve4419-Mar-13 22:29 
QuestionMpLab Pin
C-P-User-312-Mar-13 10:25
memberC-P-User-312-Mar-13 10:25 
AnswerRe: MpLab Pin
enhzflep12-Mar-13 10:59
memberenhzflep12-Mar-13 10:59 
GeneralRe: MpLab Pin
C-P-User-312-Mar-13 11:02
memberC-P-User-312-Mar-13 11:02 
AnswerRe: MpLab Pin
glennPattonWork22-Apr-13 22:58
memberglennPattonWork22-Apr-13 22:58 
QuestionWindows Mobile Pin
aymen Tn19-Feb-13 5:01
memberaymen Tn19-Feb-13 5:01 
AnswerRe: Windows Mobile - Cross posted. Pin
Pete O'Hanlon19-Feb-13 6:04
protectorPete O'Hanlon19-Feb-13 6:04 
GeneralRe: Windows Mobile - Cross posted. Pin
aymen Tn19-Feb-13 22:48
memberaymen Tn19-Feb-13 22:48 
QuestionUSB Ports Acting Screwey Pin
Kevin Marois15-Feb-13 7:51
professionalKevin Marois15-Feb-13 7:51 
AnswerRe: USB Ports Acting Screwey Pin
Eddy Vluggen15-Feb-13 10:02
mveEddy Vluggen15-Feb-13 10:02 
AnswerRe: USB Ports Acting Screwey Pin
Albert Holguin4-Mar-13 17:42
professionalAlbert Holguin4-Mar-13 17:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190417.4 | Last Updated 1 Apr 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid