|
|
根据你的代码描述和你说排查方法,你不去验证。反而去怀疑运行环境的问题。反而将问题又丢了回来.gif)
旧版汉化能执行,可能是配置环境和官方的不一样,可能是bug。
运行下边代码可以验证:
If @AutoItX64 Then
If FileExists(@SystemDir & "\pnputil.exe") Then
Run(@SystemDir & '\pnputil.exe /add-driver D:\PPMDRV-1.0.00000.47\ipfppm_sw.inf')
MsgBox(0, "64位执行环境", "执行文件:" & @SystemDir & "\pnputil.exe")
Else
MsgBox(0, "64位执行环境,", "未找到:" & @SystemDir & "\pnputil.exe")
EndIf
Else
If FileExists(@SystemDir & "\pnputil.exe") Then
Run(@SystemDir & '\pnputil.exe /add-driver D:\PPMDRV-1.0.00000.47\ipfppm_sw.inf')
MsgBox(0, "32位执行环境", "执行文件:" & @SystemDir & "\pnputil.exe")
Else
DllCall('kernel32.dll', 'boolean', 'Wow64EnableWow64FsRedirection', 'boolean', False) ;禁用 WOW64 系统文件夹重定向
If FileExists(@WindowsDir & "\System32\pnputil.exe") Then
Run(@WindowsDir & '\System32\pnputil.exe /add-driver D:\PPMDRV-1.0.00000.47\ipfppm_sw.inf')
MsgBox(0, "32位执行环境", "执行文件是64位程序:" & @WindowsDir & "\System32\pnputil.exe")
Else
MsgBox(0, "32位执行环境,", "32位和64位都未找到:" & @WindowsDir & "\System32\pnputil.exe")
EndIf
EndIf
EndIf |
评分
-
查看全部评分
|