MSIX Packaging Tool failure due to protocol handler

MVP

I filed a feedback hub issue on the failure attaching both the manifest file and log from the attempt. This post provides additional information that might be helpful to the team.

 

I have now verified that I correctly surmised the issue by manipulating the manifest in the sequence editor prior to saving the package.  These results show that there are two issues:

  1. The packaging tool incorrectly believes that a protocol handler with a uri name of only two characters requires the UAP10 prefix rather than UAP3.  This means that if the package was generated it would not work on Operating Systems prior to 2004 unnecessarily.
  2. MakeAppx rejects the UAP10 syntax generated by the tool.  My review of the generated manifest suggests that the syntax is correct according to the schemas (but perhaps I missed something). 

Specifically, I found that I could edit the manifest inside the packaging tool, prior to saving the package, and the package saves successfully. The changes made were simply to change the uap10 prefix to uap3 on the elements for that protocol handler.

2 Replies

@TIMOTHY MANGAN 

 

I believe this is related to what was described in WinSCP fails both manually and automated on W10 20H2 with latest tool build - Microsoft Tech Communi...

 

As you said the tool used the uap10 prefix instead of uap3 unnecesarily. Then, it created an <uap10:Protocol> element that contained a <uap:DisplayName> instead of <uap10:DisplayName> causing MakeAppx to reject it.

 

Both issues should be fixed in the latest Insider build of the tool (1.2020.1219.0). I.e., it should use uap3:Protocol in this case and uap10 only when actually needed (e.g. length >= 40), and when it does, the element has the appropriate children.

@Chacon Ha! I forgot that I'd already figured that out.

 

Glad to hear the newer version of the packaging tool does this correctly now, but guess what?  We didn't know there was a newer version.  Why? Because (as far as I know) there was no announcement of it in the community portal.  As the VM used for the packaging tool is constantly reverted to a snapshot it never gets updated from the store - we have to have notice somehow.