473,387 Members | 2,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to install/uninstall an inf driver?

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
Mar 1 '08 #1
2 16002
yxq schrieb:
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
--
Microsoft MVP Visual Basic

vb-hellfire visual basic faq | vb-hellfire - einfach anders
http://vb-faq.de/ | http://www.vb-hellfire.de/
Mar 1 '08 #2
yxq
Thank you, but i do not want to use DPInst, only want to use the API
function, can you tell which API use?
"Thorsten Doerfler" <t.***************@bdsw.de>
??????:fq**********@news.bdsw.de...
yxq schrieb:
>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
--
Microsoft MVP Visual Basic

vb-hellfire visual basic faq | vb-hellfire - einfach anders
http://vb-faq.de/ | http://www.vb-hellfire.de/

Mar 1 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Leslie Lim | last post by:
I had link my 4 of workstations to server with MySql. 1 pc of my pc can run a software which can update MsSql perfectly but not others(3 failed). I tried to add System Dsn data source for Control...
0
by: Brian Baley | last post by:
Hi, I cannot uninstall Visual Studio .NET ! setup reports that "setup is unable to determine a valid ordering for the installation" This happened after the .NET framework SP2 hung I now...
0
by: CK Wong | last post by:
When I try to repair, change config, install and uninstall an existing VB.NET 2K3, it gave me the following error in the file vserror71.txt: Visual Basic .NET Standard 2003 - English: ...
9
by: VJ | last post by:
I am deploying a Package having applications developed using VB.NET and VS.NET 2003. I am using the Packaging feature provided with the VisualStudio. I can use the package to creates shortcuts for...
2
by: pc | last post by:
hi everyone, we have a server on which someone blew away the MySQL 4 progs directory before installing MySQL 5. When installing MySQL 5 the installation failed with an error stating that it was...
0
by: R. Bernstein | last post by:
In making a release of the recent changes to pdb.py announce here: http://groups.google.com/group/comp.lang.python/browse_thread/thread/b4cb720ed359a733/fbd9f8fef9693e58#fbd9f8fef9693e58 I tried...
0
by: Michael | last post by:
Hi all, Anybody know a good way to install / uninstall devices via C# code? Everything I've ran by so far is in C++ and I'm trying to target C#. Anybody ever try using the DIFx API via C# ? It...
3
by: Agha | last post by:
Hi, Can anyone tell me how can I write a programme to install and uninstall a printer in windows vista, using any programming language. Thanks in advance Agha
3
by: rhepsi | last post by:
hii all, How to deploy vb.net project with install/uninstall in the user's program menu... Can anyone plz help me..... its really very urgent....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.