⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 driver_installer_template.iss

📁 这是USB驱动程序库
💻 ISS
字号:
; This examples demonstrates how libusb's drivers; can be installed automatically along with your application using an installer.;; Requirements: Inno Setup (http://www.jrsoftware.org/isdl.php);; To use this script, do the following:; - copy libusb's driver (libusb0.sys, libusb0.dll) to this folder; - create an .inf and .cab file using libusb's 'inf-wiward.exe';   and save the generated files in this folder.; - in this script replace <your_inf_file.inf> with the name of your .inf file; - customize other settings (strings); - open this script with Inno Setup; - compile and run[Setup]AppName = TestDriversAppVerName = TestDrivers 0.1.10.2AppPublisher = TestDriversAppPublisherURL = http://test.url.com/AppVersion = 0.1.10.1DefaultDirName = {pf}\TestAppDefaultGroupName = TestDriversCompression = lzmaSolidCompression = yes; Win2000 or higherMinVersion = 5,5PrivilegesRequired = admin[Files]; copy the file to the App folderSource: "*.sys"; DestDir: "{app}\driver"Source: "*.cat"; DestDir: "{app}\driver"Source: "*.dll"; DestDir: "{app}\driver"Source: "*.inf"; DestDir: "{app}\driver"; also copy the DLL to the system folder so that rundll32.exe will find itSource: "*.dll"; DestDir: "{win}\system32"; FLags: replacesameversion restartreplace uninsneveruninstall[Icons]Name: "{group}\Uninstall TestDrivers"; Filename: "{uninstallexe}"[Run]; touch the HID .inf file to break its digital signature; this is only required if the device is a mouse or a keyboard !!;Filename: "rundll32"; Parameters: "libusb0.dll,usb_touch_inf_file_np_rundll {win}\inf\input.inf"; invoke libusb's DLL to install the .inf fileFilename: "rundll32"; Parameters: "libusb0.dll,usb_install_driver_np_rundll {app}\driver\<your_inf_file.inf>"; StatusMsg: "Installing driver (this may take a few seconds) ..."

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -