question

Victor-Chen avatar image
0 Votes"
Victor-Chen asked paris-8038 answered

After the desktop bridge app is uninstalled, ProgramData\Packages\{appName} still has a folder “S-1-5-21-****”

I found that after my app was installed, the S-1-5-21-***\SystemAppData\Helium folder was automatically created under C:\ProgramData\Packages\{appName}, and there was also a cache folder and two dat files.

So, how to Ensure that all contents of the app will be deleted after uninstalling?

windows-uwp
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I'm asking other engineers about this. There might be some time delay.

1 Vote 1 ·

Thank you for your reply. I'll wait.

0 Votes 0 ·
RoyLi-MSFT avatar image
1 Vote"
RoyLi-MSFT answered Victor-Chen commented

Hello,

Welcome to Microsoft Q&A!

After confirming with the team, I have some things to share.

First of all, the platform does attempts to remove the C:\ProgramData\Packages{appName}<userSid>\SystemAppData folder at package uninstall, but like other file system locations, the remove is best-effort basis, i.e., even if we hit an error we don’t want to fail the uninstall. So you should only have an empty C:\ProgramData\Packages{appName}<userSid> folder left after uninstall.

Cleanup of this per-user folder happens when the current user is being removed. It is safe to manually delete the empty per-user folder, if desired, but it requires admin privilege.

If the existence of an empty and harmless folder is not causing any issue, then there should be no problem.


Thank you.


If the response is helpful, please click "Accept Answer" and upvote it.
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.


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Victor-Chen Here is another thing I want to share, the team mentioned that in the feature release version of Windows 10, this behavior will be changed. The empty folder will also be deleted.

1 Vote 1 ·

Got it, thanks!

0 Votes 0 ·

Thanks, one more question, what are these folders for? Can I choose not to create these folders when installing the APP?

0 Votes 0 ·
paris-8038 avatar image
0 Votes"
paris-8038 answered

Is there an update to this? Thanks!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.