針對 MSIX Core 的問題進行疑難排解Troubleshooting issues for MSIX Core

本文說明使用 MSIX Core 和疑難排解提示安裝 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