创新设置:使用rundll32或dpinst安装驱动程序? [英] Inno setup: install drivers with rundll32 or dpinst?

查看:338
本文介绍了创新设置:使用rundll32或dpinst安装驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Inno安装程序安装驱动程序,并且看起来(至少)有两种方法可以执行此操作:将DPinst.Exe添加到或针对.inf文件运行rundll。

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.

我知道x86和x64的DPinst有两种不同的版本,取决于操作系统(我需要支持XP,Vista和7)有不同的版本

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)

这些方法是否需要管理员权限?

Do I need admin permission for these methods?

推荐使用哪种方法?

推荐答案

对于所有版本的操作系统,请使用相同的DPInst版本。唯一的区别是32位与64位。 WDK带有32位和64位版本。

You use the same DPInst version for all versions of the operating systems; the only distinction is 32-bit vs. 64-bit. The WDK comes with both 32-bit and 64-bit versions.

个人而言,这是我做的(在InnoSetup上):

Personally, here's what I do (on 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

使用 run32dll setupapi.dll,InstallHinfSection ... 已过时,通常不建议使用,除非您有一些非常具体的需求。

Using run32dll setupapi.dll,InstallHinfSection ... is outdated and generally not recommended unless you have some very specific needs.

这篇关于创新设置:使用rundll32或dpinst安装驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆