为macOS应用程序提供卸载的最佳方法是什么?

时间:2018-02-01 19:57:49

标签: macos uninstall

我有一个安装在/Applications/MyApp.app

中的macOS应用程序

应用程序还会在~/Library/Preferences~/Library/LaunchAgents~/.myappcontent/中添加一些内容。

如果用户只是从MyApp.app文件夹中删除/Applications,那么所有其他内容仍然存在。即使AppCleaner.app也找不到所有这些东西。

是否有一些推荐的方法来卸载macOS应用程序?就像在某处提供uninstall.sh或在MyApp.app被删除时执行某些脚本一样?

1 个答案:

答案 0 :(得分:0)

到目前为止,我的结论是将应用程序的数据放在~/Library/Application Support/<bundle-id>文件夹中。

AppCleaner.app或其他用于从macOS清除/卸载软件的实用程序应用程序将接收该文件。

此外,来自~/Library/Preferences的内容也会被提取(即plist形式StandardUserDefaults