简体   繁体   中英

Change the app manifest parameters programmatically

I use FullTrustProcessLauncher to launch another app from my UWP application and I want to set the parameters of my manifest:

<desktop:ParameterGroup GroupId="OtherGroup" Parameters=aVariable/>

Is there a way to change the app manifest programmatically of an UWP app?

Unfortunately, there is no such way :

The package manifest is an XML document that contains the info the system needs to deploy, display, or update a Windows app. This info includes package identity, package dependencies, required capabilities, visual elements, and extensibility points.

That means that manifest is used to deploy app and set its permissions to the system. So it cannot change values in runtime. That's why such ability isn't implemented.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM