Hello.
I am currently trying to create a setup, doing these things:
1. Copy some files
2. Copy a new driver for an USB to IrDA dongle to harddisk
3. Update the driver for the USB to IrDA dongle, using copied driver
from point 2.
4. (?) Kill the standard Windows XP Driver to never see it again and
force Windows to install the driver from point 3 _ALWAYS_.
I have some Problems/Questions with this:
1. No problem here.
Inno Setup 5.0.8 used.
Setup is for Windows XP SP 2 only.
2. I have 2 files: .inf and .sys
Where is the correct location in {win} for driver files?
I am currently copying the driver to the new folder {win}\infrared,
because the files are copied to the correct location, when the driver
is installed.
3./4. Hm.. no realy idea here.
I never needed to install a driver by a software before.
I found nothing in the Inno Setup documentation, so i think i have to
use external programs.
I want to do:
- Tell Windows to remove the current driver from Device
USB\VID_[my VID]&PID_[my PID]* and install my driver instead, ignoring
that the new driver is not signed.
- Tell Windows to use this driver allways, when a device with
USB\VID_[my VID]&PID_[my PID]*
is deteced and never again install the standard windows driver for this
device.
I tested around with the Microsoft tool "devcon.exe" and tried this:
>> devcon.exe remove *USB\VID_[my VID here]&PID_[my PID here]*
>> rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 [my driver filename here].inf
>> devcon.exe rescan
Result: Windows XP seems to re-install the Windows XP standard driver
for the device.
But how can i force Windows XP to intall a different driver for the
device?
How can i force Windows XP to use this new driver always, when a new
device with the same VID&PID is detected?
If the device is deteced, i can do it via Windows:
=> device manager
=> open device, drivers tab
=> update driver
=> select new inf file to install
=> warning for windows logo but working
But how can i do this via software setup?
And how can i force windows to use this driver, when a 2nd device is
detected?
Note:
There will be never any other IrDA device connected, so it should be no
problem to "kill" the windows XP standard driver if required.
Any help is greatly appreciated.
Kind regards,
Daniel