Sla*_*ppy 4 windows-vista 32bit-64bit windows-7
我想在 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 位平台上的路径始终相同?那么维斯塔呢?
从安装程序应用程序中看到的 PnPUtil.exe 的位置取决于安装程序的位数:
更多信息在这里: http ://www.samlogic.net/articles/sysnative-folder-64-bit-windows.htm