How to install/uninstall an inf driver?

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
 
T

Thorsten Doerfler

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
 
Y

yxq

Thank you, but i do not want to use DPInst, only want to use the API
function, can you tell which API use?
 
T

Thorsten Doerfler

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top