msiexec返回负数

时间:2018-09-29 21:04:40

标签: powershell wix windows-installer msiexec

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

1 个答案:

答案 0 :(得分:3)

  

“幻数数据库” :我最近在一条推文中发现了magnumdb.comcleared virustotal 30-9-2018)   来自Remko Weijnen "The Magic Number Database" 是   显然由Simon Mourier维护。

     

查找错误代码: 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. Visual Studio(2017) :菜单选项: Tools => Error Lookup 。可以在Visual Studio安装的 errlook.exe 中找到此Visual Studio工具( "Tools" folder )。 NB!本地化消息!(国际化)。

    errlook.exe

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

  3. certutil.exe :尝试通过cmd.exe: certutil.exe /error errorcode 。不知道是否可以在全新安装中使用它,但对于Visual Studio,它应该已经可用。 外观非常好!本地化的邮件

  4. 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


相关问题