在项目中,为了获得相关应用的具体位置(office的具体exe位置),修改了文件夹WindowsApps权限,导致所有自带应用打开闪退。
通过搜索相关资料,获得解决方法:
重置该文件的权限设置
icacls "C:Program FilesWindowsApps" /reset /t /c /q