Forum Discussion

Ley's avatar
Ley
Copper Contributor
May 17, 2022

MSIX packing error on Windows11

An error occurs when using MSIX to package OFFIC 2021

Error code: 0x80131500

 

The LOG  fileinformation is as follows:

 

[5/17/2022 4:33:13 AM] [Debug] Microsoft (R) MakeAppx Tool
[5/17/2022 4:33:13 AM] [Debug] Copyright (C) 2013 Microsoft. All rights reserved.
[5/17/2022 4:33:13 AM] [Debug] Option /v specified, switching to verbose output.
[5/17/2022 4:33:13 AM] [Debug] Option /o specified, existing files will be overwritten.
[5/17/2022 4:33:13 AM] [Debug] Option /nv specified, skipping deployment validation.
[5/17/2022 4:33:13 AM] [Debug] Option /l specified, the existence of resource file variations will not be verified.
[5/17/2022 4:33:13 AM] [Debug] Using default hash method: SHA256.
[5/17/2022 4:33:13 AM] [Debug] Option /nfv specified, skipping file validation.
[5/17/2022 4:33:13 AM] [Debug] The path (/p) parameter is: "\\?\D:\ProPlus2021Retail_1.0.0.0_x64__5sf5w19sb82vp.msix"
[5/17/2022 4:33:13 AM] [Debug] The mapping file (/f) parameter is: "%UserProfile%\AppData\Local\Packages\Microsoft.MSIXPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_3\my5kzwyk.oqp.txt"
[5/17/2022 4:33:13 AM] [Debug] Reading mapping file "%UserProfile%\AppData\Local\Packages\Microsoft.MSIXPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_3\my5kzwyk.oqp.txt"
[5/17/2022 4:33:13 AM] [Debug] [Files] section found on line 1.
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: You can't add both "%UserProfile%\AppData\Local\Packages\Microsoft.MSIXPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_3\iy5ing5x.xx5.Manifest" and "C:\Program Files\Microsoft Office\AppXManifest.xml" to the output file as "AppXManifest.xml".
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: Failure at (list->AddMappedItem(outputPath, inputPath.GetChars())) - 0x800700b7 - ????????????????
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: Failure at FAILED(this->AddMapping(tokens, list)) - 0x3 - ???????????
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: The mapping file can't be parsed. The error occurs at line 240.
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: For file "%UserProfile%\AppData\Local\Packages\Microsoft.MSIXPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_3\my5kzwyk.oqp.txt" - Failure at parser->Parse(&handler) - 0x8007000b - ?????????????
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: Failure at (FileList::CreateFromMappingFile(mappingFile, manifestResourceInfo, fileList, externalPackagesList, fileValidation)) - 0x8007000b - ?????????????
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: Failure at (ProcessOptionsForInputContent(parameters, outputPath, performanceOptions->fileValidation, fileList, manifestResourceInfo, nullptr, inputCgmPath, parametersValid)) - 0x8007000b - ?????????????
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: Package creation failed.
[5/17/2022 4:33:13 AM] [Debug] MakeAppx : error: 0x8007000b - ?????????????
[5/17/2022 4:33:13 AM] [Error] MakeAppx.exe failed, exit code = 1
[5/17/2022 4:33:13 AM] [Error] Error Finalizing Package: Process MakeAppx.exe failed with exit code 1.
[5/17/2022 4:33:13 AM] [Debug] No access token file exists.
[5/17/2022 4:33:13 AM] [Warning] Error Occurred: Microsoft.Msix.Utils.ProcessRunner.ProcessRunnerException: Process MakeAppx.exe failed with exit code 1.

 

I found a sorting problem, but did not find the TypeLib element in C: Program Files\ Microsoft Office \Appxmanifest.xml.

https://techcommunity.microsoft.com/t5/msix/error-creating-an-msix-package/m-p/2885891

 

Any one a idea to fix this?

  • Ley 

     

    This is the relevant line:

     

    MakeAppx : error: You can't add both "%UserProfile%\AppData\Local\Packages\Microsoft.MSIXPackagingTool_8wekyb3d8bbwe\LocalState\DiagOutputDir\Logs_3\iy5ing5x.xx5.Manifest" and "C:\Program Files\Microsoft Office\AppXManifest.xml" to the output file as "AppXManifest.xml"

     

    Looks like you want to include an existing AppXManifest.xml. The MSIX Packaging Tool attempts to generate one automatically from the changes detected during installation. The error comes because the package can only have one manifest file, but there are two (one auto-generated by the tool, and the one under C:\Program Files\Microsoft Office).

     

    If the file "C:\Program Files\Microsoft Office\AppXManifest.xml" something you are creating, you can try not including it and then editing the generated manifest after the fact.

      • %localappdata%\Packages should be part of the file filter list in the Microsoft MSIX Packaging Tool configuration to prevent the capture of inadvertent background MSIX/UWP activity.
  • Ley We also don't currently recommend converting Office. Windows and Office are working hard to enable M365 Apps (e.g. Word, PowerPoint, Excel) to be packaged and delivered in MSIX format with the same full extensibility that customer enjoy in Click-to-Run and MSI; we’ll communicate details and timelines as these become available.