如何安装inf文件(不用右键)VB实现或者CMD都可以

来源:百度知道 编辑:UC知道 时间:2024/06/03 03:38:07

看MSDN的解释吧,

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 on the INF file name. A shortcut menu will appear.
Click Install.
Note The shortcut menu appears only if the INF file contains a DefaultInstall 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 C:\WINDOWS\INF\SHELL.INF

"Rundll32" and "InstallHinfSection" are described in the Tools and Setup and System Administration sections, respectively, of the Platform SDK documentation.

Setup A