?? driver_installer_template.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 + -