Anyway to force child processes to execute in the container when repacking with msix packaging tool?

%3CLINGO-SUB%20id%3D%22lingo-sub-2775654%22%20slang%3D%22en-US%22%3EAnyway%20to%20force%20child%20processes%20to%20execute%20in%20the%20container%20when%20repacking%20with%20msix%20packaging%20tool%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2775654%22%20slang%3D%22en-US%22%3E%3CP%3ERepacking%20a%20crappy%20java%20based%20app.%26nbsp%3B%20initial%20packaging%20seemed%20fine%2C%20no%20major%20issues.%26nbsp%3B%20During%20testing%20it%20failed%20and%20the%20application%20logs%20pointed%20at%20some%20files%20being%20missing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eused%20invoke-commandindesktoppackage%20to%20confirm%20that%20the%20files%20were%20in%20fact%20in%20the%20container.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eanother%20test%20using%26nbsp%3Binvoke-commandindesktoppackage%20with%20the%20-PreventBreakaway%20switch%20to%20execute%20the%20application%2C%26nbsp%3B%3CSTRONG%3Eworks.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJust%20starting%20my%20msix%20journey%2C%20seems%20pretty%20nice%20but%20this%20is%20likely%20to%20be%20a%20sticking%20point%20for%20some%20apps%20if%20I%20can't%20force%20children%20to%20play%20in%20the%20boxes.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20have%20a%20solution%20other%20than%20creating%20a%20terrible%20shortcut%20to%20run%20the%20invoke%20powershell%20command%3F%26nbsp%3B%20I%20haven't%20seen%20anything%20in%20the%20manifest%20xml%20options%20that%20looks%20like%20it%20would%20help%20me.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2789348%22%20slang%3D%22en-US%22%3ERe%3A%20Anyway%20to%20force%20child%20processes%20to%20execute%20in%20the%20container%20when%20repacking%20with%20msix%20packaging%20t%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2789348%22%20slang%3D%22en-US%22%3EWhile%20it%20can't%20fix%20all%20%22crappy%22%20apps%2C%20the%20Package%20Support%20Framework%20(PSF)%20is%20often%20helpful%20in%20letting%20apps%20succeed%20in%20many%20of%20the%20operations%20that%20fail%20when%20placed%20in%20the%20MSIX%20container.%20Specifically%2C%20the%20FileRedirectionFixup%20tends%20to%20take%20care%20of%20problems%20such%20as%20you%20describe%2C%20either%20finding%20files%20that%20are%20in%20the%20package%20or%20allowing%20those%20files%20to%20be%20modified%20through%20the%20use%20of%20automatic%20redirection%20to%20the%20local%20profile.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20free%20PsfTooling%20app%20in%20the%20Microsoft%20Store%20can%20be%20used%20while%20packaging%20with%20the%20Microsoft%20MSIX%20Packaging%20Tool%2C%20or%20for%20easier%20use%20you%20can%20use%20TMEditX%20post-packaging%2C%20or%20one%20of%20several%20third%20party%20packaging%20tool%20instead%20of%20any%20of%20this.%3C%2FLINGO-BODY%3E
Occasional Contributor

Repacking a crappy java based app.  initial packaging seemed fine, no major issues.  During testing it failed and the application logs pointed at some files being missing.

 

used invoke-commandindesktoppackage to confirm that the files were in fact in the container.

 

another test using invoke-commandindesktoppackage with the -PreventBreakaway switch to execute the application, works.

 

Just starting my msix journey, seems pretty nice but this is likely to be a sticking point for some apps if I can't force children to play in the boxes.

 

Anyone have a solution other than creating a terrible shortcut to run the invoke powershell command?  I haven't seen anything in the manifest xml options that looks like it would help me.

 

2 Replies
While it can't fix all "crappy" apps, the Package Support Framework (PSF) is often helpful in letting apps succeed in many of the operations that fail when placed in the MSIX container. Specifically, the FileRedirectionFixup tends to take care of problems such as you describe, either finding files that are in the package or allowing those files to be modified through the use of automatic redirection to the local profile.

The free PsfTooling app in the Microsoft Store can be used while packaging with the Microsoft MSIX Packaging Tool, or for easier use you can use TMEditX post-packaging, or one of several third party packaging tool instead of any of this.

@TIMOTHY MANGAN 

Thanks Tim

 

I'll give it shot, appreciate your activity on these forums.  I was reading your blog recently for the PSF stuff but I haven't had to use it yet (well I guess until now).

 

Seems like it would be an easy update if the powershell command can force the container behavior, I would have hoped microsoft would add in a similar toggle in the manifest.