How to install INF-Type Driver Inno
There are many ways to support Automatic Installation of drivers during packaging. This section describes how to use dpinst.exe to install the INF driver.
1. Introduction to driver install frameworksDriver install frameworks (difx) is Microsoft's newest plan for Driver Installation Technology and tool innovation starting from integrating plug-and-play into Windows 95. The goal of the driver install frameworks Program is to provide infrastructure and tools to make installation of devices and drivers easier and smoother. You will find that the driver and device diagnostics are simpler and can uninstall or roll back the driver as necessary. Suppliers can easily create qualified driver packages, integrate value-added software, and use standard Windows mechanisms and tools to improve the installation experience. It is also important to ensure the correctness and security of the driver package. The difx tool is designed to support the new device installation architecture of Microsoft Windows Vista and Microsoft Windows Server 2008, make sure that the driver installation package does not conflict with other device installations, applications, or Windows Components. Make sure that any installed drivers can be completely rolled back or uninstalled in the event of a problem.
Ii. dpinst command line parametersDpinst.exe: Install and uninstall the driver
By default, this tool searches for the current directory and installs all the drivers found
Usage: dpinst.exe [/u INF-file] [/S |/q] [/lm] [/P] [/F] [/SH] [/SA] [/A] [/Path] [/El] [/L languageid] [/C] [/d] [/logtitle title] [/SW] [/? |/H |/help]
/U INF-file: Path to the. inf file
/S |/Q: unmount a Driver (. inf file) in quiet mode. The installation wizard is not displayed to prevent the operating system from popping up any dialog box.
/Lm: select the legacy code mode (for installation) to allow the installation of non-Signed drivers and drivers with incomplete files. These drivers cannot be installed on the latest Windows operating system.
/P: if the driver to be installed is no better than the one already installed, prompt the user
/F: the driver to be installed is not as good as the installed driver, force (execute the current) installation (process)
/SH: scan the hard disk and install the driver only for an existing device. (This option) is only valid for plug-and-play (device) Drivers (programs)
/SA: the currently installed driver is not displayed in the Add/delete programs (list ).
/A: all or none
/Path: Search for the driver in the specified path
/El: supports all languages not explicitly listed in the. xml file.
/L languageid: Use the specified language in all user interfaces (UIS. Useful in localization Testing
/SE: the "End User License Agreement" is not displayed"
/C: output the login information to the console (available only on Windows XP or later Operating Systems)
/D: Delete the binary code of the driver when uninstalling it.
/SW: The Device Installation Wizard is not displayed. The operating system dialog box is displayed.
/? |/H |/help: displays the help (information)
3. Download the 32-bit and 64-bit dpinst versions online: Http://download.csdn.net/detail/shuaihj/5618903
4. The script for installing the INF driver in Inno is:[Run]
; Install the driver
Filename: "{sys} \ dpinst64"; parameters: "/path" "{app} \ drivers \ usbdriver_x64" "/SW/SE"; check: is64bitinstallmode
Filename: "{sys} \ dpinst32"; parameters: "/path" "{app} \ drivers \ usbdriver_x86" "/SW/SE"; check: Not is64bitinstallmode