Install and uninstall Windows drivers from INF files on Windows XP 

Got a daily task with the following conditions:
Get a Windows driver (generated with NI VISA driver generator) installed from TestStand and uninstall that after the test sequence had been run.

My first idea was the devcon.exe's install command, but it does not do what I wanted insted of created a new device in the device manager.

But the following trick was did what I needed:
C:\WINDOWS\system32\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultInstall 128 foo.inf

If you want to call it from NI TestStand create a variable and pass it as arguments otherwise it will not work as expected.

Removing the driver can be done with the following command:
C:\WINDOWS\system32\rundll32.exe syssetup,SetupInfObjectInstallAction Target_remove 4 foo.inf
[ hozzászólás ] ( 2 megtekintés ) [ 0 trackbackek ] permalink ( 3.2 / 99 )

<< <Előző | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Következő> >>

 
számláló