MS is working on this in MSI 3.0 and you can see this at:
I read some of it and to use it you need to have signed drivers (.CAT files). They do explain how to sign the files but for me it should be a hell-of-alot easier to do. Hence, be warned that this is still in beta. MSI as it stands today does not handle drivers.
You can still do it if you have access to INF files for the drivers.
(Taken from Wise newsgroups)
From: <John_McFadyen_370091>
Subject: Re: AutoInstallation of drivers
Date: April 20, 2004 6:31 PM
INF Files can be used to install and remove applications, general files, etc. To script an INF file to install or remove, you call the RunDLL32 application from a script using the following syntax:
Windows 9x
Installation:
rundll.exe setupx.dll,InstallHinfSection DefaultInstall 132 %1
Where %1 is the path and file name of the INF file to install
Uninstall:
RunDll setupx.dll,InstallHinfSection DefaultUninstall 4 %1
Where %1 is the path and file name of the INF file to uninstall
Windows NT/2000/XP
Installation:
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 %1
Where %1 is the path and file name of the INF file to install
Uninstall:
rundll32.exe setupapi,InstallHinfSection DefaultUninstall 132 %1
Where %1 is the path and file name of the INF file to uninstall