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
Post a Comment