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.
Installing device drivers (*.inf)
Re: Installing device drivers (*.inf)
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.
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.
Re: Installing device drivers (*.inf)
Hi,
There is also a way to install drivers using System\Commands page:
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