PDA

View Full Version : Installing hardware using INF files



NewsArchive
07-06-2005, 01:25 AM
I need to install some hardware drivers. With the Windows Explorer I
can do this by doing a right-click on the corresponding .INF file, and
then select Install from the popup menu.

I tried to automate this in Setupbuilder 5 by running the .INF file
with the ShellExecute option.

What happens during installation is that NotePad is started with the
contents of the .INF file.

How can I run/install the the .INF files in Setupbuilder 5 (build 1180)
so the hardware drivers are installed?

Enquiring minds...

--
Arie Rens (RADventure B.V.)
Maarssen, the Netherlands
http://www.radventure.nl
SoftVelocity Distributor for the Benelux

NewsArchive
07-06-2005, 01:25 AM
Arie,

Yes, by default Windows automatically opens .INF file in NotePad if you use
ShellExecute(Ex).

The problem is that you have to use 'install' as the ShellExecute(Ex)
operation verb, not 'open'. SetupBuilder 5 supports 'open' only. I'll
check if we can add an 'install' option to SB5.

Perhaps ShellExecute with RunDll32.exe can help you here. Something like:

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 YourInfFileName

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5