Installing device driver

M

ma

Hello,

I have an application that needs to install a device driver in the
target computer among installing other files. I am using InstallShield for
installation and I have InstallShield professional. It seems that there is
no utility in this version of InstallShield for installing device driver. Is
there?



What is the simplest way to install a driver when you have the inf file for
the device?

Is there any tutorial about this?



Any help appreciated.



Best regards
 
D

Don Burn

Look at the DevCon sample in the DDK. In general you need to copy your
files to a directory and use SetupCopyOEMInf to copy the INF file to the
windows directory.
 
A

Arkady Frenkel

And that ( SetupCopyOEMInf and maybe other if you need ) you can call
from InstallShield too , but you need in wrap into function which will sit
in
external dll. IS allow you to call functions from custom dlls
Arkady
 
G

Guest

How about to create an inf file for your device driver and
use a batch containing the command as follow?

rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %inf_filename%

And kick this bat from Install Shield.

--
===================
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi
===================
 
M

ma

Good suggestion but why to write a batch file? why not run rundll32.exe
directly from installshield?
How this instruction is working? what is the parameters and where can I read
more about this?

Best regards
 
R

Ralf Buschmann

Am 23.06.2005 09:11:03 schrieb Shinogi Syota:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %inf_filename%

This approach does NOT work for hardware PnP INFs.
 

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