gpt4 book ai didi

powershell - msiexec返回负数

转载 作者:行者123 更新时间:2023-12-03 00:43:58 27 4
gpt4 key购买 nike

安装MSI时,我从msiexec获取了一个奇怪的返回码。即-2147021886。我想我记得在某个地方读过,这是某种格式或编码问题,但我找不到引用。我还找到了一个谈论PS2.o的Microsoft页面,该页面带有负返回码问题,但这在PS5.0中正在发生。

最佳答案

"The Magic Number Database": I recently discovered magnumdb.com (cleared virustotal 30-9-2018) in a tweet from Remko Weijnen. "The Magic Number Database" is apparently maintained by Simon Mourier.

Looking up your error code: https://www.magnumdb.com/search?q=-2147021886

1 ERROR_SUCCESS_REBOOT_REQUIRED Int32 -2147021886 %ProgramFiles(x86)%\Windows Kits\10\Include\10.0.17134.0\shared\winerror.h(11960,0)



其他方法:针对类似情况还包括其他两个选项。
  • Visual Studio(2017):菜单选项: Tools => Error Lookup 。您可以在Visual Studio安装的 errlook.exe 中找到此Visual Studio工具( "Tools" folder )。 N.B!本地化消息! (国际化)。

    errlook.exe
  • cmd.exe :通过命令行, net command 通常可用于查找错误代码: net helpmsg errorcode 。有关限制,请参见下面的博客链接。
  • certutil.exe :通过cmd.exe尝试: certutil.exe /error errorcode 。不确定是否可以在全新安装中使用它,但对于Visual Studio,它应该已经可用。 看起来很好!本地化消息
  • Err.exe :来自Exchange团队的旧工具。现在日期。请参阅下面的博客链接-在评论中。 Needs download英文消息,非本地化

  • 在C++中, FormatMessage 调用。并且只提到 winerror.h ntstatus.h 文件。 Retrieving the Last-Error Code 。还有一个 Powershell blog

    calc.exe :并且显然在“ 程序员模式”中使用新的 Windows 10 calc.exe 在十六进制/ dec和其他各种任务之间进行转换:

    calc.exe

  • https://blogs.msdn.microsoft.com/oldnewthing/20170919-00/?p=97046
  • 关于powershell - msiexec返回负数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52572537/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com