Uninstalling optional package also uninstalls main app

Bruno Lima 1 Reputation point
2024-09-11T10:37:47.9266667+00:00

I'm testing the usage of the optional package using this UWP sample.

With this sample I just deploy the main app and it's optional package.

In the Windows "Settings/Apps/Installed apps" I see the optional package and I uninstall it, and the uninstall occurs normally without interfering with the main app.

But I need to prevent the main app and the optional package from showing up in the Start menu, so I just did what is suggested in this post, that is:

in both manifest, go to the VisualElements element and add the attribute AppListEntry="none".

After that, it started to occurs a problem, if I uninstall the optional package, the main app is uninstalled too.

The configuration in the main app's manifest causes this problem, the optional package's manifest configuration is indifferent.

Does anyone know how to prevent this issue from happening? Could this be a bug?

Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.