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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -