Hello @Andre Luiz Bacelar Gonçalves de Menezes and @Anderson Rodrigues Cavalcante ,
Welcome to Microsoft Q&A!
According to the error message, the window has not been created yet.
When uninstalling this app, the UI will be closed first, and then the packageCatalogUninstalling
event will be triggered, so you will get an error when accessing the UI in the packageCatalogUninstalling
event. This is an expected behavior because all UIs are destroyed.
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.