本文介绍了在64位系统中,PnPUtil.exe的位置是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I would like to install my USB device driver [.inf file] using PnPUtil.exe utility on both 32bit and 64bit systems for Windows Vista and Windows 7.

我在计算机[Windows 7 32bit]上进行了测试,一切都很好,因为PnpUtil.exe位于: C:\Windows\System32\PnPUtil.exe
但是在64位Windows 7中,该实用程序不在此目录中。

I tested on my machine [Windows 7 32bit] and everything was fine because PnpUtil.exe is located in: C:\Windows\System32\PnPUtil.exe.But in 64bit Windows 7 the utility is not in this directory.

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

When I tried installing driver on different Windows 7 - 64bit machine I could found PnPUtil.exe in this location: C:\WIndows\winsxs\amd64_microsoft-windows-pnputil_31bf3856ad364e35_6.1.7600.16385_none_5958b438d6388d15\pnputil.exe and the test was also fine.

那么我如何在所有平台上准确检测到此目录?
我注意到该路径取决于Windows版本6.1.7600.16385的构建-但是如何检测其余路径?
还是所有64位平台上的路径都相同?那Vista呢?

So how can I exactly detect this directory on all platforms?I noticed the path is dependent on built of Windows version - 6.1.7600.16385 - but how to detect the rest of path?Or is the path always the same on all 64 bit platforms? And what about Vista?

推荐答案

我最近在尝试为,其中包括Arduino驱动程序和某些复制器。

I recently came across this problem while trying to create an installer for ReplicatorG, which includes the Arduino drivers and some drivers specific to the Makerbot Replicator.

似乎没有任何方法可以确定PnPutil的位置,而我不得不获得并使用其可重新分发的DPinst。

It seemed that there isn't any way to determine the location of PnPutil, and I instead had to acquire Microsoft's DIFx and use their redistributable DPinst.

关于DPinst的一些奇怪的事情使它难以使用。首先,如果它位于路径中带有空格的目录树中,则它似乎无法正常运行。谁知道为什么。第二个原因是,由于Arduino驱动程序是未签名的,因此需要在旧版模式下运行,以免弹出警告用户的红色大对话框。要在传统模式下运行它,请使用 / lm 标志,但是该标志必须为小写。同样,不清楚为什么。

There were a couple of strange things about DPinst that made it difficult to use. The first is that it didn't seem to run properly if it was located in a directory tree with spaces in the path. Who knows why. The second was that, because the Arduino drivers are unsigned, it needed to be run in legacy mode to keep from popping up a big, red dialog warning the user. To run it in legacy mode you use the /lm flag, but the flag must be lowercase. Again, it's unclear why.

最后,我将安装程序复制dpinst和每个驱动程序复制到临时目录中的文件夹中,然后运行dpinst。它会弹出一个漂亮的小向导,并告诉用户已安装了哪些驱动程序。

In the end, I had the installer copy dpinst and each of the drivers to a folder in the temporary directory and then run dpinst. It pops up a nice little wizard and tells the user which drivers were installed.

这篇关于在64位系统中,PnPUtil.exe的位置是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 11:19