microsoft / MSIX-PackageSupportFramework

The Package Support Framework (PSF) is a kit for applying compatibility fixes to packaged desktop applications.
MIT License
114 stars 57 forks source link

New feature to run external processes in package context #221

Closed npuvvada closed 1 year ago

npuvvada commented 1 year ago

A new field "InPackageContext" is introduced to run spanned process by the external in the current package context. When set to true, all the processes in the process tree spanned by the executable will run in the same package context.

dhoehna commented 1 year ago

Awesome job. I remember this was an issue when I was in India. Great job figuring out a solution.

npuvvada commented 1 year ago

See if can improve the readability of code and document? A: Review comments are incorporated to increase code and document readability. Also, I have added an example as suggested by you in readme to illustrate this feature. Also are not sending the attribute list in createProcess detour? to pass the same behavior to all the difference create Process call from other processes? A: No, we are including prevent break away attribute when launching psfLauncher which then applies to every process in the process tree.