msiexec 返回负数 [英] msiexec returns negative number
问题描述
我在安装 MSI 时从 msiexec 收到一个奇怪的返回代码.即,-2147021886
.我想我记得在某处读到这是某种格式或编码问题,但我找不到参考.我还发现了一个 Microsoft 页面,该页面讨论了 PS2.o 存在负返回代码问题,但这种情况在 PS5.0 中发生.
魔数数据库":我最近发现了
cmd.exe:通过命令行,可以正常使用
net命令
查找错误代码:net helpmsg errorcode
.有关限制,请参阅下面的博客链接.certutil.exe:通过 cmd.exe 试试:
certutil.exe/error errorcode
.不确定这是否可以在全新安装中使用,但对于 Visual Studio,它应该已经可用.看起来很不错!本地化消息.Err.exe:来自 Exchange 团队的旧工具.现在约会.请参阅下面的博客链接 - 在评论中.
<小时>I am getting an odd return code from msiexec when installing an MSI. Namely,
-2147021886
. I THINK I remember reading somewhere that this is some sort of format or encoding issue, but I can't find the reference. I also found a microsoft page that talks about PS2.o having issues with negative return codes, but this is happening in 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)
Other Approaches: Including a couple of other options for similar situations.
Visual Studio (2017): Menu choice:
Tools => Error Lookup
. This Visual Studio tool (errlook.exe
) can be found in the"Tools" folder
of your Visual Studio installation. N.B! Localized messages! (internationalized).cmd.exe: Via the command line, the
net command
can normally be used to look up error codes:net helpmsg errorcode
. See blog link below for limitations.certutil.exe: Try it via cmd.exe:
certutil.exe /error errorcode
. Not sure if this is available in a clean install, but with Visual Studio it should be already available. Appears very good! Localized messages.Err.exe: An old tool from the Exchange team. Dated now. See blog link below - in the comments. Needs download. English messages, non-localized.
And in C++ the
FormatMessage
call. And just mentioning thewinerror.h
andntstatus.h
files.Retrieving the Last-Error Code
. And aPowershell blog
.
calc.exe: And obviously use the new Windows 10
calc.exe
in "Programmer Mode" to convert between hex / dec and all kinds of other tasks:
这篇关于msiexec 返回负数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!