使用inf文件安装文件系统驱动程序的三种方式
来源:互联网 发布:四个字的网络用语 编辑:程序博客网 时间:2024/05/20 03:45
After you have created an INF file, you can use it to install, upgrade, and uninstall your file system filter driver. You can use the INF file alone or together with a batch file or a user-mode setup application.
Right-Click Install
To execute the DefaultInstall and DefaultInstall.Services sections of your INF file, you should do the following:
In Windows Explorer, right-click the INF file name. A shortcut menu will appear.
Click Install.
Note The shortcut menu appears only if the INF file contains aDefaultInstall section.
Command-Line or Batch File Install
To execute the DefaultInstall and DefaultInstall.Services sections of your INF file on the command line or by using a batch file installation, type the following command at the command prompt, or create and run a batch file that contains this command:
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 path-to-inf\infname.inf
"Rundll32" and "InstallHinfSection" are described in the Tools and Setup and System Administration sections, respectively, of the Microsoft Windows SDK documentation.
Setup Application
InstallHinfSection can also be called from a setup application, as shown in the following code example:
InstallHinfSection(NULL,NULL,TEXT("DefaultInstall 132 path-to-inf\infname.inf"),0);
If you use a setup application to install your driver, observe the following guidelines:
To prepare for eventual uninstall, the setup application should copy the driver INF file to an uninstall directory.
If the setup application installs a user-mode application with the driver, this application should be listed in Add or Remove Programs in Control Panel so that the user can uninstall it if desired. Only one item should be listed, representing both the application and the driver.
For more information about how to list your application in Add or Remove Programs, see "Removing an Application" in the Setup and System Administration section of the Windows SDK documentation.
Setup applications should never copy driver INF files to the Windows INF file directory (%windir%\INF). SetupAPI copies the files there automatically as part of theInstallHinfSection call.
For more information about setup applications, see Writing a Device Installation Application.
原文链接:https://msdn.microsoft.com/windows/hardware/drivers/ifs/using-an-inf-file-to-install-a-file-system-filter-driver
- 使用inf文件安装文件系统驱动程序的三种方式
- 解读Inf文件(驱动程序安装信息文件)
- 通过右键安装inf文件来安装驱动程序这种方式可取吗?
- 用inf文件安装/卸载驱动程序
- 使用INF安装文件
- 设备驱动程序INF文件——INF文件的节
- 设备驱动程序INF文件——INF文件的节
- 设备驱动程序INF文件——INF文件的节
- 设备驱动程序INF文件——INF文件的节
- 设备驱动程序INF文件——INF文件的节
- 设备驱动程序INF文件的处理过程
- 设备驱动程序INF文件的处理过程
- 设备驱动程序INF文件
- 设备驱动程序INF文件
- 设备驱动程序INF文件
- 设备驱动程序INF文件
- 驱动程序INF文件详解
- 驱动程序安装-INF
- JFinal对oracle数据库的操作配置
- 十进制研究
- Weex Android SDK源码分析之Module(animation)
- 线程池的原理及实现&Java四种线程池的使用
- <%@ page language="java" contentType="text/html; charset=utf-8"pageEncoding="utf-8"%>这几个编码分别代表什么意思?
- 使用inf文件安装文件系统驱动程序的三种方式
- HTML <hr> 标签
- 互联网协议入门(二)
- [Sencha ExtJS6 Modern] 改进bug: 当容器(如Container/Panel/List)内容未超出容器高度时, Scroller无法上/下拉(即越界滚动)
- 有关iOS相册的调用
- 并发登录人数控制--Shiro系列(二)
- event.preventDefault方法的使用
- 怎么让html里的js脚本延迟5秒运行?
- 立体类族共有的抽象类