SOLVED

Understand Update algorithm

%3CLINGO-SUB%20id%3D%22lingo-sub-326064%22%20slang%3D%22en-US%22%3EUnderstand%20Update%20algorithm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326064%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20experimenting%20with%20the%20update%20algorithm%20of%20MSIX.%20Is%20there%20a%20description%3F%20I%20have%20noticed%20the%20following%3A%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20main%20property%20is%20%22Identity%20Name%22.%20This%20property%20must%20match%3B%20if%20not%2C%20it%20is%20another%20app.%3C%2FLI%3E%3CLI%3EThe%20version%20number%20must%20be%20increased.%3C%2FLI%3E%3CLI%3EArchitecture%20doesn't%20matter.%20Package%20V1.0%20with%20x64%20app%20is%20installed.%20Package%20V1.1.%20with%20x86%20app%20overwrites%20V1.0%2C%20just%20like%20package%20V1.2%20with%20Neutral%20app.%3C%2FLI%3E%3CLI%3EPublisher%20must%20match.%20Different%20publisher%20in%20a%20package%20with%20a%20higher%20version%20leads%20to%20error.%3C%2FLI%3E%3CLI%3EA%20MSIXBundle%20can%20be%20used%20as%20an%20update%20for%20a%20MSIX%20package.%20But%20if%20a%20bundle%20is%20installed%2C%20this%20cannot%20be%20updated%20by%20a%20MSIX%20package.%3C%2FLI%3E%3C%2FUL%3E%3CP%3EIs%20this%20correct%3F%3C%2FP%3E%3CP%3Ethx%3CBR%20%2F%3EAndreas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-327021%22%20slang%3D%22en-US%22%3ERe%3A%20Understand%20Update%20algorithm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327021%22%20slang%3D%22en-US%22%3E%3CP%3EJohn%2C%20You're%20a%20hero.%20Thanks%3C%2FP%3E%3CP%3EAndreas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326814%22%20slang%3D%22en-US%22%3ERe%3A%20Understand%20Update%20algorithm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326814%22%20slang%3D%22en-US%22%3E%3CP%3EUpgrades%20are%20performed%20within%20the%20same%20package%20family.%26nbsp%3B%20The%20package%20family%20is%20comprised%20from%20the%20Package%20Name%20and%20Publisher.%26nbsp%3B%20So%20they%20need%20to%20stay%20the%20same%20to%20update.%26nbsp%3B%20These%20are%20the%20other%20considerations%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%20style%3D%22list-style-position%3A%20inside%3B%22%3E%0A%3CLI%3EPackages%20must%20increment%20to%20a%20higher%20version.%26nbsp%3B%20Lower%20versions%20are%20blocked%20by%20default.%26nbsp%3B%201809%20did%20introduce%20a%20%22rollback%22%20like%20feature.%26nbsp%3B%20It%20allows%20install%20of%20a%20lower%20version%20package%20when%20an%20override%20is%20provided.%26nbsp%3B%20Right%20now%20it%20is%20available%20in%20PowerShell%20using%20the%26nbsp%3BForceUpdateFromAnyVersion%20switch%3C%2FLI%3E%0A%3CLI%3EPackages%20can%20switch%20archiecture%20as%20long%20as%20the%20acritechure%20is%20applicable%20to%20the%20OS%3C%2FLI%3E%0A%3CLI%3EPackages%20can%20move%20from%20an%20MSIX%20to%20an%20MSIX%20bundle%2C%20but%20bundles%20to%20MSIX%20are%20not%20supported%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EJohn.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326396%22%20slang%3D%22en-US%22%3ERe%3A%20Understand%20Update%20algorithm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326396%22%20slang%3D%22en-US%22%3E%3CP%3EI%20don't%20see%20the%20relation%20to%20my%20question.%20My%20test%20packages%20contain%20different%20versions%20of%20a%20.NET%20Winform%20App%2C%20partly%20also%20different%20architecture%20(x66%2C%20x64%2C%20AnyCPU).%20I%20packed%20them%20into%20MSIX%20and%20got%20the%20corresponding%20results.%20I%20understood%20that%20MSIX%20always%20executes%20block%20updates.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326380%22%20slang%3D%22en-US%22%3ERe%3A%20Understand%20Update%20algorithm%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326380%22%20slang%3D%22en-US%22%3E%3CP%3EAre%20you%20testing%20with%20a%20new%20MSIX%20package%20or%20a%20differential%20package%3F%20I%20would%20recommend%20a%20differential%20package.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hello,

I am experimenting with the update algorithm of MSIX. Is there a description? I have noticed the following:

  • The main property is "Identity Name". This property must match; if not, it is another app.
  • The version number must be increased.
  • Architecture doesn't matter. Package V1.0 with x64 app is installed. Package V1.1. with x86 app overwrites V1.0, just like package V1.2 with Neutral app.
  • Publisher must match. Different publisher in a package with a higher version leads to error.
  • A MSIXBundle can be used as an update for a MSIX package. But if a bundle is installed, this cannot be updated by a MSIX package.

Is this correct?

thx
Andreas

4 Replies

Are you testing with a new MSIX package or a differential package? I would recommend a differential package.

I don't see the relation to my question. My test packages contain different versions of a .NET Winform App, partly also different architecture (x66, x64, AnyCPU). I packed them into MSIX and got the corresponding results. I understood that MSIX always executes block updates.

best response confirmed by Andreas Kerl (Contributor)
Solution

Upgrades are performed within the same package family.  The package family is comprised from the Package Name and Publisher.  So they need to stay the same to update.  These are the other considerations:

 

  • Packages must increment to a higher version.  Lower versions are blocked by default.  1809 did introduce a "rollback" like feature.  It allows install of a lower version package when an override is provided.  Right now it is available in PowerShell using the ForceUpdateFromAnyVersion switch
  • Packages can switch archiecture as long as the acritechure is applicable to the OS
  • Packages can move from an MSIX to an MSIX bundle, but bundles to MSIX are not supported

John.

 

John, You're a hero. Thanks

Andreas