Install .inf automatically!

R

Roberto Hofer

I have a probably quite noob problem, but how do I force FBA to
install a component automatically. In my case it is the MS sample
Ramdisk driver. I downloaded ramdisk.inf and ramdisk.sys, made a
component through component designer -> import, imported it into the
database and TD.

So here my question: I do not want to go through the Add Hardware
Procedure and install the Ramdisk driver manually (which works now
perfectly, because recompiled with FILE_DEVICE_DISK). In fact there
shouldn´t be a control center at all in the final build. So I have to
find a way to let FBA install this component as if I would go through
the "Add Hardware" procedure.

If anyone (Slobodan!? ;-) has hints how to do so, please inform me
here or directly through mail. It isn´t that urgent, but one thing of
my steadily growing ToDo list.

Thanks in advance!

Hofer
 
S

Slobodan Brcin \(eMVP\)

You have at least two ways that you can do this.

1. Use devcon.exe from DDK and call it at some FBA phase.
2. Create component from offline registry (if you know what this is), or
online registry that contains installed ramdisk driver.
go to HKLM\SYSTEM\ControlSet001
Services,Enum,Control\Class entries and find related values to this driver
and then import them in CD.

3. There might be a way to tell FBA to install certain section from inf
file, but I have never looked into it since for all my cases I must install
drivers before FBA is even started (option 2) or PnP itself will do the job
for all other drivers.

Knowing how ramdisk DDK sample is working you should install it using option
2 since it is elemental driver.


To find more info about all these use:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&group=microsoft.
public.windowsxp.embedded

Regards,
Slobodan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top