Tech Support > Microsoft Windows > Drivers > Installing device driver
Installing device driver
Posted by ma on June 22nd, 2005


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


Posted by Don Burn on June 22nd, 2005


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.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply



"ma" <ma@nowhere.com> wrote in message
news:eOaaHwydFHA.2664@TK2MSFTNGP15.phx.gbl...


Posted by Pavel A. on June 22nd, 2005


Also you can try DifX v 2 -
http://www.microsoft.com/whdc/driver...l/DIFxtls.mspx
Sometimes it works well, though your mileage can vary.

--PA

"Arkady Frenkel" wrote:

Posted by Arkady Frenkel on June 22nd, 2005


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

"Don Burn" <burn@stopspam.acm.org> wrote in message
news:kAdue.7032$mD6.2677@fe07.lga...


Posted by Shinogi Syota on June 23rd, 2005


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
===================


"ma" wrote:

Posted by ma on June 23rd, 2005


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


"Shinogi Syota" <ShinogiSyota@discussions.microsoft.com> wrote in message
news:0CB913B9-467F-44CB-B56D-478B8F0AB69F@microsoft.com...


Posted by Ralf Buschmann on June 23rd, 2005


Am 23.06.2005 09:11:03 schrieb Shinogi Syota:

This approach does NOT work for hardware PnP INFs.

--
Ralf.

Posted by Pavel A. on June 23rd, 2005


You may want to visit this webchat with MS driver install team - it is exactly about using DifX with MSI.
http://www.microsoft.com/communities...0628_DN_11.ics

--PA

"Pavel A." <pavel_a@NOwritemeNO.com> wrote in message news:4FDD0CFB-A425-4B28-8302-73147FD03C14@microsoft.com...