SOLVED

Installing asset package individually

%3CLINGO-SUB%20id%3D%22lingo-sub-357405%22%20slang%3D%22en-US%22%3EInstalling%20asset%20package%20individually%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-357405%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20created%20a%20set%20of%20packages%20(a%20couple%20of%20.appx%20and%20a%20.appxbundle)%20using%20the%20packaging%20layout%20as%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fpackaging%2Fpackaging-layout%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edescribed%20here%3C%2FA%3E.%3CBR%20%2F%3EI%20was%20trying%20to%20install%20using%20the%20individual%20.appx%20instead%20of%20directly%20using%20the%20.appxbundle%20to%20install%20all%20the%20packages%20together.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Installing%20appx%20via%20double%20click%3C%2FP%3E%3CP%3EWhile%20doing%20this%2C%20once%20I%20have%20installed%20the%20main%20package%20and%20try%20to%20install%20the%20asset%20package%2C%20the%20installer%20dialog%20says%20the%20app%20is%20already%20installed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E-%20Installing%20appx%20using%20powershell%20command%20'Add-AppxPackage'%3C%2FP%3E%3CP%3EWhile%20using%20this%2C%20it%20does%20allow%20me%20to%20add%20the%20main%20package%20first%2C%20and%20then%20the%20asset%20package%20after%20that%2C%20but%20I%20don't%20see%20the%20hard-link%20for%20the%20asset%20package%20content%20in%20my%20main%20package's%20install%20directory%20in%20WindowsApps%20folder.%20(When%20I%20install%20it%20using%20the%20appxbundle%20instead%2C%20I%20do%20see%20the%20hard-link%20to%20asset%20contents%20in%20the%20main%20package's%20directory).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20can%20I%20individually%20install%20the%20main%20and%20asset%20packages%2C%20and%20still%20have%20the%20proper%20hard-link%20for%20the%20asset%20contents%20in%20the%20main%20package%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EVersion%20of%20MakeAppx%20used%3A%2010.0.17763.132%3C%2FP%3E%3CP%3EOS%20Version%3A%20Windows%2010%20version%201809%20(OS%20Build%2017763.316)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-358342%22%20slang%3D%22en-US%22%3ERe%3A%20Installing%20asset%20package%20individually%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-358342%22%20slang%3D%22en-US%22%3E%3CP%3EResources%20need%20to%20be%20part%20of%20the%20bundle%20as%20well.%26nbsp%3B%20Optional%20packages%20and%20extensions%20are%20standalone%20and%20can%20be%20installed%20separately.%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EJohn.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-357998%22%20slang%3D%22en-US%22%3ERe%3A%20Installing%20asset%20package%20individually%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-357998%22%20slang%3D%22en-US%22%3E%3CP%3EIs%20this%20same%20for%20resource%20packages%20also.%20Can%20they%20be%20installed%20separately%3F%20or%20they%20should%20also%20be%20part%20of%20the%20bundle%20always.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-357924%22%20slang%3D%22en-US%22%3ERe%3A%20Installing%20asset%20package%20individually%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-357924%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20must%20install%20a%20flat%20bundle%20(which%20is%20what%20you%20have%20currently%20where%20your%20.appxbundle%20does%20not%20contain%20your%20.appx%20packages)%20through%20the%20bundle%20and%20not%20through%20its%20individual%20.appx%20packages.%20Installing%20.appx%20packages%20(that%20are%20part%20of%20a%20bundle)%20by%20themselves%20is%20an%20unsupported%20scenario.%20This%20is%20because%20the%20.appxbundle%20is%20the%20package%20that%20contains%20the%20references%20to%20the%20individual%20.appx%20packages%20and%20ties%20them%20all%20together%20as%20one%20app.%20Is%20there%20a%20reason%20why%20you%20want%20to%20individually%20install%20the%20main%20and%20asset%20packages%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20however%20update%20individual%20.appx%20packages%20of%20a%20flat%20bundle%20after%20the%20initial%20install.%20For%20example%2C%20if%20your%20v1%20flat%20bundle%20is%20composed%20of%20an%20.appxbundle%2C%20x86%20.appx%2C%20x64%20.appx%2C%20and%20an%20asset%20.appx%2C%20and%20you%20know%20that%20your%20v2%20bundle%20only%20has%20changes%20to%20the%20asset%20package%2C%20then%20you%20only%20need%20to%20build%20the%20.appxbundle%20and%20the%20asset%20.appx%20to%20be%20able%20to%20install%20the%20update.%20(You%20need%20to%20build%20the%20.appxbundle%20for%20v2%20also%20because%20the%20bundle%20keeps%20track%20of%20all%20the%20versions%20of%20its%20.appx%20packages%2C%20so%20by%20bumping%20the%20version%20of%20the%20asset%20.appx%20to%20v2%2C%20you%20need%20a%20new%20.appxbundle%20that%20has%20this%20new%20reference.%20The%20v2%20.appxbundle%20can%20contain%20references%20to%20the%20v1%20x86%20.appx%20and%20x64%20.appx%3B%20the%20.appx%20packages%20of%20a%20bundle%20does%20not%20need%20to%20have%20the%20same%20version.)%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have created a set of packages (a couple of .appx and a .appxbundle) using the packaging layout as described here.
I was trying to install using the individual .appx instead of directly using the .appxbundle to install all the packages together.

 

- Installing appx via double click

While doing this, once I have installed the main package and try to install the asset package, the installer dialog says the app is already installed.

 

- Installing appx using powershell command 'Add-AppxPackage'

While using this, it does allow me to add the main package first, and then the asset package after that, but I don't see the hard-link for the asset package content in my main package's install directory in WindowsApps folder. (When I install it using the appxbundle instead, I do see the hard-link to asset contents in the main package's directory).

 

How can I individually install the main and asset packages, and still have the proper hard-link for the asset contents in the main package?

 

Version of MakeAppx used: 10.0.17763.132

OS Version: Windows 10 version 1809 (OS Build 17763.316)

3 Replies
best response confirmed by John Vintzel (Microsoft)
Solution

You must install a flat bundle (which is what you have currently where your .appxbundle does not contain your .appx packages) through the bundle and not through its individual .appx packages. Installing .appx packages (that are part of a bundle) by themselves is an unsupported scenario. This is because the .appxbundle is the package that contains the references to the individual .appx packages and ties them all together as one app. Is there a reason why you want to individually install the main and asset packages?

 

You can however update individual .appx packages of a flat bundle after the initial install. For example, if your v1 flat bundle is composed of an .appxbundle, x86 .appx, x64 .appx, and an asset .appx, and you know that your v2 bundle only has changes to the asset package, then you only need to build the .appxbundle and the asset .appx to be able to install the update. (You need to build the .appxbundle for v2 also because the bundle keeps track of all the versions of its .appx packages, so by bumping the version of the asset .appx to v2, you need a new .appxbundle that has this new reference. The v2 .appxbundle can contain references to the v1 x86 .appx and x64 .appx; the .appx packages of a bundle does not need to have the same version.)

Is this same for resource packages also. Can they be installed separately? or they should also be part of the bundle always.

Resources need to be part of the bundle as well.  Optional packages and extensions are standalone and can be installed separately.  

 

John.