简体   繁体   English

Inno设置:用rundll32或dpinst安装驱动程序?

[英]Inno setup: install drivers with rundll32 or dpinst?

I am trying to install drivers with Inno setup and it looks like there are (at leas) two way to do this: add DPinst.Exe to the or run rundll against the .inf file. 我正在尝试使用Inno安装程序安装驱动程序,看起来有两种方法可以执行此操作:将DPinst.Exe添加到或运行rundll对.inf文件。

I know there is two different version of DPinst for x86 and x64, are there different version depending on the OS (I need to support XP, Vista and 7) 我知道有两个不同版本的DPinst for x86和x64,是否有不同的版本取决于操作系统(我需要支持XP,Vista和7)

Do I need admin permission for these methods? 我是否需要这些方法的管理员权限?

Which method is recommended? 推荐哪种方法?

You use the same DPInst version for all versions of the operating systems; 对所有版本的操作系统使用相同的DPInst版本; the only distinction is 32-bit vs. 64-bit. 唯一的区别是32位与64位。 The WDK comes with both 32-bit and 64-bit versions. WDK同时具有32位和64位版本。

Personally, here's what I do (on InnoSetup): 就个人而言,这就是我所做的(在InnoSetup上):

[Files]
...
Source: ...\dpinst32.exe; DestDir: {#DpInstPath}; DestName: dpinst.exe; Check: not IsWin64; Flags: ignoreversion
Source: ...\dpinst64.exe; DestDir: {#DpInstPath}; DestName: dpinst.exe; Check: IsWin64; Flags: ignoreversion

Using run32dll setupapi.dll,InstallHinfSection ... is outdated and generally not recommended unless you have some very specific needs. 使用run32dll setupapi.dll,InstallHinfSection ...已经过时,除非您有一些非常具体的需求,否则通常不推荐使用它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM