Forum Discussion
Ley
May 17, 2022Copper Contributor
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:...
Chacon
Microsoft
May 18, 2022
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.
- LeyMay 19, 2022Copper ContributorThanks, I'll try
- May 25, 2022%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.