.MSIX 核心问题的疑难解答Troubleshooting issues for MSIX Core

本文介绍了在安装带有 .MSIX 核心和故障排除提示的 .MSIX 包时可能会遇到的错误代码。This article describes error codes you may encounter while installing MSIX packages with MSIX Core and troubleshooting tips.

错误代码Error codes

下面是可能会遇到的常见错误消息。Here are common error messages that you may encounter.

错误代码Error Code 说明Description
0x8BAD00420x8BAD0042 这通常意味着未安装用于对应用进行签名的证书。This typically means that the certificate the app was signed with is not installed. 若要解决此情况,请安装证书,然后重试To solve this install the certificate and retry
0x800700320x80070032 包中包含 .MSIX Core 不支持的注释。The package contains comments that MSIX Core does not support. 例如,不支持包支持框架的某些功能。For example, some functionalities of package support framework is not supported. 这些是包支持框架,可调用在安装结束时运行的脚本,设置为运行的脚本等于 false 或格式不正确的包支持框架。These are package support framework that calls a script that runs at the end of the installation, scripts that are set to run ones equals to false or badly formatted package support frameworks.
0x8BAD00710x8BAD0071 此错误表示您正在尝试安装捆绑包。This error means that you are attempting to install a bundle. .MSIX Core 当前不支持捆绑。MSIX Core currently does not support bundles.

当包格式有问题时,会出现以下错误。The following errors occur when there is an issue with the package format.

错误代码Error Code 说明Description
0x8BAD00310x8BAD0031 MissingAppxSignatureP7XMissingAppxSignatureP7X
0x8BAD00320x8BAD0032 MissingContentTypesXMLMissingContentTypesXML
0x8BAD00330x8BAD0033 MissingAppxBlockMapXMLMissingAppxBlockMapXML
0x8BAD00340x8BAD0034 MissingAppxManifestXMLMissingAppxManifestXML
0x8BAD00350x8BAD0035 DuplicateFootprintFileDuplicateFootprintFile
0x8BAD00360x8BAD0036 UnknownFileNameEncodingUnknownFileNameEncoding
0x8BAD00370x8BAD0037 DuplicateFileDuplicateFile

以下错误与文件问题相关The following errors are related to file issues

错误代码Error Code 说明Description
0x8BAD00010x8BAD0001 FileOpenFileOpen
0x8BAD00020x8BAD0002 FileSeekFileSeek
0x8BAD00030x8BAD0003 FileReadFileRead
0x8BAD00030x8BAD0003 FileWriteFileWrite
0x8BAD00040x8BAD0004 FileCreateDirectoryFileCreateDirectory
0x8BAD00050x8BAD0005 FileSeekOutOfRangeFileSeekOutOfRange

当包签名时使用的证书出现问题时,会出现以下错误。The following errors occur when there is an issue with the certificate the package was signed with.

错误代码Error Code 说明Description
0x8BAD00410x8BAD0041 SignatureInvalidSignatureInvalid
0x8BAD00420x8BAD0042 CertNotTrustedCertNotTrusted
0x8BAD00430x8BAD0043 PublisherMismatchPublisherMismatch

你可能会遇到的其他问题Other issues you may encounter

错误代码Error Code 说明Description
0x8BAD00110x8BAD0011 ZipCentralDirectoryHeaderZipCentralDirectoryHeader
0x8BAD00120x8BAD0012 ZipLocalFileHeaderZipLocalFileHeader
0x8BAD00130x8BAD0013 Zip64EOCDRecordZip64EOCDRecord
0x8BAD00140x8BAD0014 Zip64EOCDLocatorZip64EOCDLocator
0x8BAD00150x8BAD0015 ZipEOCDRecordZipEOCDRecord
0x8BAD00160x8BAD0016 ZipHiddenDataZipHiddenData
0x8BAD00170x8BAD0017 ZipBadExtendedDataZipBadExtendedData
错误代码Error Code 说明Description
0x8BAD00510x8BAD0051 BlockMapSemanticErrorBlockMapSemanticError
0x8BAD00520x8BAD0052 BlockMapInvalidDataBlockMapInvalidData
错误代码Error Code 说明Description
0x8BAD00610x8BAD0061 AppxManifestSemanticErrorAppxManifestSemanticError
0x8BAD00820x8BAD0082 DeflateInitializeDeflateInitialize
0x8BAD00810x8BAD0081 DeflateWriteDeflateWrite
0x8BAD00830x8BAD0083 DeflateReadDeflateRead
错误代码Error Code 说明Description
0x8BAD10010x8BAD1001 XmlWarningXmlWarning
0x8BAD10020x8BAD1002 XmlErrorXmlError
0x8BAD10030x8BAD1003 XmlFatalXmlFatal
0x8BAD10040x8BAD1004 XmlInvalidDataXmlInvalidData

若要 在此处搜索其他错误代码,请参阅。To search for other error codes go here.

有关完整列表,请访问 .Msix Core 错误代码 页。For a full list, visit your MSIX Core Error Code page.

.MSIX 跟踪 PowerShell 脚本MSIX tracing PowerShell script

请参阅我们的 发布页面 并下载 msixtrace.ps1Go to our release page and download msixtrace.ps1. 这是 .MSIX 跟踪 PowerShell 脚本,它将生成日志,以帮助你在 .MSIX 安装过程中遇到问题。This is the MSIX Tracing PowerShell script that will generate logs to help if you are running into an issue with your MSIX installation.

使用以下命令Use the following commands

msixtrace.ps1 -wait

按照提示显示脚本来生成日志。Follow the prompt the script present to generate the logs. 或使用以下命令。Or use the following commands.

msixtrace.ps1 -start

安装 .MSIX 包。Install the MSIX package. 完成后,请完成以下命令。When complete finish with the following command.

msixtrace.ps1 -stop