How to install/uninstall an inf driver?

  • Thread starter Thread starter yxq
  • Start date Start date
Y

yxq

Hello,
I want to install/uninstall a driver(only inf file), this inf file does not
support right-click to install in explorer, it can only be installed from
Control Panel/Add Remove hardware.
Can anyone tell me how to install/uninstall in VB.NET?

Regards
Steven
 
yxq said:
I want to install/uninstall a driver(only inf file), this inf file does not
support right-click to install in explorer, it can only be installed from
Control Panel/Add Remove hardware.
Can anyone tell me how to install/uninstall in VB.NET?

Take a look at the Driver Package Installer:

Driver Package Installer (DPInst)
http://msdn2.microsoft.com/en-us/library/ms790308.aspx

You can configure it to run silently and check the results.

DPInst Command-Line Switches
http://msdn2.microsoft.com/en-us/library/ms790806.aspx

DPInst Return Code
http://msdn2.microsoft.com/en-us/library/ms791066.aspx

Thorsten Doerfler
 
Thank you, but i do not want to use DPInst, only want to use the API
function, can you tell which API use?
 
yxq said:
Thank you, but i do not want to use DPInst

What's wrong with it?
only want to use the API
function, can you tell which API use?

Herfried gave you the entry point in the MSDN for information about
what APIs to use. With one API it's not done. If you don't want to
read the documentation, it would be easier for you, you take a tool
what encapsulates the required functions for you. The simplest API to
use is DriverPackageInstall of the DIFxAPI:

Perform a Default DIFxAPI Installation
http://msdn2.microsoft.com/en-us/library/ms790275.aspx

Thorsten Doerfler
 
Back
Top