Installing device drivers (*.inf)

Common questions about using Actual Installer.
Post Reply
jwendell
Posts: 4
Joined: Wed Dec 22, 2010 1:04 am

Installing device drivers (*.inf)

Post by jwendell »

I would like to install a set of device drivers, supplied as inf files, during program installation. Do you have a recommended technique? I need this to work for both Win7 and XP. I'm currently looking at using DPinst.exe from Microsoft.

Thanks.
jwendell
Posts: 4
Joined: Wed Dec 22, 2010 1:04 am

Re: Installing device drivers (*.inf)

Post by jwendell »

OK, here's what I ended up with...

Dialogs->Finish->Custom Action
Name = Install USB modem device drivers
Checked by default = yes
command = <SystemDir>\cmd.exe /c start "driver install" /min <SystemDir>\cmd.exe /c "echo Installing USB modem device drivers, please wait ... & ("<InstallDir>\drivers\dpinst_x86.exe" /SW /A /PATH "<InstallDir>\drivers" && "<InstallDir>\drivers\dpinst_x64.exe" /SW /A /PATH "<InstallDir>\drivers")"

PS. The ampersand character "&" looks funky in this font.
Leo
Site Admin
Posts: 458
Joined: Fri Jan 22, 2010 12:40 pm

Re: Installing device drivers (*.inf)

Post by Leo »

Hi,

There is also a way to install drivers using System\Commands page:

Code: Select all

Command: <SystemDir>\rundll32.exe
Parameters: setupapi,InstallHinfSection DefaultInstall 132 "<InstallDir>\driver.inf"
Timing: After Installation
Wait: Yes
Leo,
Actual Installer Team
https://www.actualinstaller.com
Post Reply