Solved

How to write a program to run .inf file to installer a Filter Driver?

Posted on 2008-06-18
4
556 Views
Last Modified: 2013-12-03
Hi Experts,

I have develop a filter driver call myfilter.sys, now I want to write a program to let user can click on this to installer my filter driver.
As i know we can right click on .inf and chose install to run a .inf file to installer a filter driver. BUT for me, I want to have a program as .exe or .bat file that User just click on this to install.

Can you help me to give some ideas or example about this?

Thank in advance!
0
Comment
Question by:Mobinex
  • 2
4 Comments
 
LVL 7

Expert Comment

by:gnurl
ID: 21819658
Hi,

an *.inf file is a textfile ... if you know the format you can create it youself with a textpad...

Please have a look at

http://msdn.microsoft.com/en-us/library/ms790220.aspx

http://msdn.microsoft.com/en-us/library/aa376858.aspx

Good luck
gnurl
0
 
LVL 1

Author Comment

by:Mobinex
ID: 21819676
oh, I am not mentioned about how to create .inf file.
My question is about how to run .inf file with command line or orther exe program, or winbat file.

I have .inf file already. now I want to let user just click on my program that will auto run .inf file to install the filter webcam.

Please help again?
0
 
LVL 7

Accepted Solution

by:
gnurl earned 500 total points
ID: 21819890
If you want to access the *.inf file from a setup application please have a look at
http://msdn.microsoft.com/en-us/library/ms790206.aspx

But you have to write the program yourself...

Or try
rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 <path_to_file>.inf

discussed here...
http://www.ss64.org/viewtopic.php?id=72

Good luck
gnurl
0
 
LVL 19

Expert Comment

by:alb66
ID: 21821280
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Average count of individuals by year(s) and month(s) selected 4 37
Problem to packaging 1 81
Build VS2015 project in bat command 3 79
String manipulation in Visual Basic 7 57
This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now