windows - How can I install a driver using InnoSetup? -


i'd install driver serial port using innosetup. have inf file, , can install driver manually through device manager, i'd able include driver in installer users don't have go through trouble of installing driver themselves.

see installhinfsection on msdn. documentation mentions how invoke installation calling 'rundll32.exe'. you'll end this:

[files] .. source: "driver\my_x86driver.inf"; destdir: {app}\driver; source: "driver\my_x86driver.sys"; destdir: {app}\driver;  [run] .. filename: {sys}\rundll32.exe; parameters: "setupapi,installhinfsection defaultinstall 128 {app}\driver\my_x86driver.inf"; workingdir: {app}\driver; flags: 32bit; 


note might need run setup in 64bit mode in 64bit systems able install driver:

[setup] .. architecturesinstallin64bitmode=x64  

also can put checks run version of .inf file depending on machine architecture (e.g. check: is64bitinstallmode).


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -