Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
924 views
in Technique[技术] by (71.8m points)

uwp - After the desktop bridge app is uninstalled, ProgramDataPackages{appName} still has a folder "S-1-5-21-****"

I found that after my app was installed, the S-1-5-21-***SystemAppDataHelium folder was automatically created under ProgramDataPackages{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?

question from:https://stackoverflow.com/questions/65849063/after-the-desktop-bridge-app-is-uninstalled-programdata-packages-appname-stil

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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

First of all, the platform does attempts to remove the C:ProgramDataPackages{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:ProgramDataPackages{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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...