How do you dictate the order the drivers are installed when you use firm to inject

JohnF's picture

We have a base image we deploy to our machines. We then use conditions to do a runscript "token replacement of the inf file". This directs the job to inject the drivers for that machine using a model specific syspre.inf
Here is the Runscript:
"
REM token replacement on the inf file
REM the next line, ReplaceTokens, is a reserved keyword, the REM
statement is so DOS will ignore the command

REM ReplaceTokens .\sysprep\d620-sysprep.inf .\temp\%ID%.inf
Firm copy .\temp\%ID%.inf prod:sysprep\sysprep.inf

REM get rid of the old aclient.cfg file
firm delete prod:aclient.cfg

REM Copy DS Agent
Firm copy G:\Library\drivers\aclient.exe prod:drivers
Firm copy G:\Library\drivers\aclient.inp prod:drivers

REM Inject d620 Drivers
firm -recurse copy G:\Library\drivers\d620 prod:\drivers

exitfile.
"
My problem is with our laptops. We use Dell latitudes (various models)
It copies the drivers over ok but some of them do not install. Typically the o2micro, Fingerprint reader and the modem with some of the othe laptops the audio driver does not install either. I am told that the dell system software needs to be installed first and then the chipset drivers in order for the rest of the drivers to install seemlessly.
And now my question:
How can I get the drivers to install ion the correct order usinfg firm injection?