msiexec 返回负数

2024-03-23

安装 MSI 时,我从 msiexec 收到奇怪的返回代码。即,-2147021886。我想我记得在某处读到这是某种格式或编码问题,但我找不到参考。我还发现一个微软页面谈论 PS2.o 存在负返回码问题,但这种情况发生在 PS5.0 中。


《神奇数字数据库》: 最近发现magnumdb.com https://www.magnumdb.com (cleared virustotal 30-9-2018 https://www.virustotal.com/#/url/7749059d592c355b437038aea869b3953777d8c0d201ee17723148a10c511dea/detection)在推文中 从雷姆科·韦恩 https://twitter.com/RemkoWeijnen/status/1042416626929491968. "The Magic Number Database"是 显然由西蒙·莫里尔 https://stackoverflow.com/users/403671/simon-mourier.

查找您的错误代码: https://www.magnumdb.com/search?q=-2147021886 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)


其他方法:包括针对类似情况的其他几个选项。

  1. 视觉工作室 (2017): 菜单选择:Tools => Error Lookup。这个 Visual Studio 工具(errlook.exe)可以在"Tools" folder您的 Visual Studio 安装。注意!本地化消息!(国际化)。

  2. cmd.exe:通过命令行,net command通常可用于查找错误代码:net helpmsg errorcode。请参阅下面的博客链接了解限制。

  3. certutil.exe:通过cmd.exe尝试一下:certutil.exe /error errorcode。不确定这是否在全新安装中可用,但对于 Visual Studio 来说它应该已经可用。看起来非常好!本地化消息.

  4. Err.exe:Exchange 团队的一个旧工具。现在已过时。请参阅下面的博客链接 - 在评论中。需要下载 https://www.microsoft.com/en-us/download/details.aspx?id=985. 英文消息,非本地化.

而在 C++ 中FormatMessage https://learn.microsoft.com/en-us/windows/desktop/api/WinBase/nf-winbase-formatmessage称呼。只是提到winerror.h and ntstatus.h files. Retrieving the Last-Error Code https://learn.microsoft.com/en-us/windows/desktop/debug/retrieving-the-last-error-code. And a Powershell blog https://blogs.technet.microsoft.com/saudm/2015/01/19/enumerating-status-message-strings-in-powershell/.


calc.exe: 显然使用新的Windows 10calc.exe https://www.microsoft.com/en-us/p/windows-calculator/9wzdncrfhvn5 in "程序员模式" 在十六进制/十进制和各种其他任务之间进行转换:


  • https://blogs.msdn.microsoft.com/oldnewthing/20170919-00/?p=97046 https://blogs.msdn.microsoft.com/oldnewthing/20170919-00/?p=97046
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

msiexec 返回负数 的相关文章

随机推荐