DISM.exe返回码? [英] DISM.exe Return Codes?

查看:37
本文介绍了DISM.exe返回码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个调用dism.exe程序的程序,它在后台运行一些命令.现在,我仅检查返回码0或其他任何值,以表明进程失败或成功.为了得到准确的返回错误,我可以将其与返回代码进行交叉检查.DISM引用了哪些退货?

I have a program that calls the dism.exe program and it runs a few commands in the background. Right now, I only check for a return code of 0 or anything else in order to show a process failed or succeeded. What could i cross examine the return code with in order to get an accurate return error. Which returns are the DISM referenced to?

推荐答案

注释

The link provided in the comment DISMAPI Error Messages provides a very few error code, but in my experience, these are not the most common error codes returned by DISM.exe.

在我的方案中,我主要使用 dism.exe/Online ... ,这是到目前为止我发现的内容:

In my scenarios, I mostly use dism.exe /Online ... and here's what I found so far:

  • ERROR_SUCCESS_REBOOT_REQUIRED〜3010(0xBC2),当/Add-Package 需要重启时.
  • ERROR_BAD_FORMAT〜11(0xB)当您递给/Add-Package 不适用于该操作系统的软件包(例如,用于x64 Windows的x86软件包)时
  • ERROR_PATH_NOT_FOUND〜3 当您要移交给/PackagePath 的文件不存在
  • 当您不以管理员身份运行时,
  • ERROR_ELEVATION_REQUIRED〜740(0x2E4).
  • ERROR_SUCCESS_REBOOT_REQUIRED ~ 3010 (0xBC2) when /Add-Package requires a reboot.
  • ERROR_BAD_FORMAT ~ 11 (0xB) when you hand /Add-Package a package that is not applicable to this operating system (e.g. an x86 package for a x64 Windows)
  • ERROR_PATH_NOT_FOUND ~ 3 when the file you hand to /PackagePath doesn't exist
  • ERROR_ELEVATION_REQUIRED ~ 740 (0x2E4) when you're not running as admin.

其他链接:

这篇关于DISM.exe返回码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆