
KG046681 asked a question.
Hi all
On the MSIx package dependency feature on the AdminStudio MSIx Editor, please can someone explain the difference between a Package Dependency and a Main Package Dependency?
I've managed to get the Package Dependency feature to work, but if I put a Package Name, and Publisher into Main Package Dependency just it just errors with:
An optional package cannot contain /*[local-name()='Package']/*[local-name()='Capabilities']
Cheers
Keir
Package Dependency and Main Package Dependency are two different types of dependencies an MSIX package can have.
Package Dependency is like a prerequisite package on which the MSIX is dependent on. These are generally framework packages like VC++ libs etc. When installed from Microsoft Store, the packages defined in Package Dependency get installed automatically before the actual MSIX package.
Main Package Dependency is applicable only for a Modification package. For a Modification package, its parent MSIX package should be added as a Main Package Dependency, so the Modification package can uniquely identify its parent MSIX package and apply the modifications defined in the package.
I hope that helps.