473,799 Members | 3,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 16033
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
4260
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 Panel - Odbc data source 32. The pc which working fine with the software function but 3 of the rest not. My pcs running xp and win98 ! Regards. Thanks.
0
1052
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 cannot either run setup to repair the install OR uninstall to re-do
0
399
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: ERROR_FILE_NOT_FOUND returned in CRootComponent::Install; could not find file: E:\WINDOWS\Installer\ad839.msi (My Windows is install on the E drive). Where is this ad839.msi and who created it?
9
6358
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 all my application executables. Now to Uninstall this package I have to make the user go to Add/Remove programs everytime. The users are requesting that if they can have a uninstall option as part of the application menus... How do I provide...
2
6122
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 unable to create system tables as the MySQL 4 directory did not exist. We are now unable to uninstall MySQL 5: # rpm -i
0
1416
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 using setup.py. I think it's great that setup.py tries to obviate the need for "Make" by just doing everything. (In contrast to Perl's MakeMaker). But alas the problems I was running into was setup.py not doing enough (for just Python). Here...
0
1067
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 looks like a good way but has been problematic so far for me. Thanks, -MH
3
1357
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
2706
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
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10247
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.