小编Sla*_*ppy的帖子

64 位系统中 PnPUtil.exe 的位置是什么?

我想在 Windows Vista 和 Windows 7 的 32 位和 64 位系统上使用 PnPUtil.exe 实用程序安装 USB 设备驱动程序 [.inf 文件]。

我在我的机器 [Windows 7 32bit] 上进行了测试,一切正常,因为 PnpUtil.exe 位于:C:\Windows\System32\PnPUtil.exe。但在 64 位 Windows 7 中,该实用程序不在该目录中。

当我尝试在不同的 Windows 7 - 64 位计算机上安装驱动程序时,我可以在以下位置找到 PnPUtil.exe:C:\WIndows\winsxs\amd64_microsoft-windows-pnputil_31bf3856ad364e35_6.1.7600.16385_none_5958b438d6388d15\pnputil.exe ,测试也很好。

那么如何才能在所有平台上准确检测到这个目录呢?我注意到该路径依赖于 Windows 版本的构建 - 6.1.7600.16385 - 但如何检测路径的其余部分?或者所有 64 位平台上的路径始终相同?那么维斯塔呢?

windows-vista 32bit-64bit windows-7

4
推荐指数
1
解决办法
2万
查看次数

Using StringToColor in Inno Setup

I would like to assign some color to label (TNewStaticText - property Color: TColor; read write;) on my form.

I have my color stored as '$RRGGBB' (String) and I would like to convert it to TColor using Delphi function StringToColor() but Inno Setup shows me an error if I use this function in script. How to tell Inno Setup to use this function or how to convert String to TColor in Inno to use it with this property?

delphi inno-setup

0
推荐指数
1
解决办法
2066
查看次数