Solved

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

Posted on 2008-06-18
4
554 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

18 Experts available now in Live!

Get 1:1 Help Now