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

2 answers

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

  2. Junjie Zhu - MSFT 17,816 Reputation points Microsoft Vendor
    2024-10-03T06:52:49.44+00:00

    Hi @Bruno Lima

    Welcome to Microsoft Q&A!

    I can reproduce the same behavior when both packages use AppListEntry="none", the main app is deleted when the optional package is uninstalled.

    For your scenario, if this unexpected behavior has a serious business impact, I suggest that you might need to open a support ticket for this.

    Please contact our paid support at MS Support. You will get 1:1 support on that. Select Developer Tools -> Windows UWP Development -> Windows Universal App Dev -> Runtime Platform in the support page and you could contact the team. Please kindly note that your support ticket will be free if it is Microsoft's issue.

    If this behavior has little impact, we recommend that you submit this behavior in Feedback Hub. You could find the Feedback Hub in the Start Menu. Please select Developer Platform->API Feedback as the category when you submit your request. The related team will check the request. After you submit the request, please share your link, I will help you submit this request as well.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

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.