英文:
Outlook VSTO uninstall plugin
问题
我是新手使用VSTO。是否有触发器在我们调用卸载VSTO插件时运行?我正在使用插件向Outlook添加新类别。因此,当我卸载插件时,我希望类别被删除。
我成功在按钮点击时删除了类别,但那是在插件已安装的情况下。感谢您的帮助。
英文:
I'm new with vsto. Is there a trigger to run when we call uninstall vsto plugin? I'm using plugin to add new category to outlook. So when I uninstall plugin I would like category to be deleted.
I managed to delete category on button click, but that's while plugin is installed. Thanks for your help.
答案1
得分: 0
不要这样做。从安装程序中在Outlook上做任何事都是个坏主意。如果用户有多个配置文件怎么办?您会连接到所有配置文件吗?如果配置文件没有缓存,Outlook在打开存储时会提示输入凭据。
如果您卸载Office,它不会清除您现有的Outlook数据。无论是在服务器上还是在本地 - 您所有的OST和PST文件仍然完好无损,当您再次安装Outlook时,您将能够使用它们。
英文:
Don't do that. It is a bad idea to do anything in Outlook from the installer. What if the user has multiple profiles? Do you connect to all of them? What if the profile is not cached and Outlook would prompt for credentials when opening a store?
If you uninstall Office, it does not wipe out your existing Outlook data. Not on the server, and not even locally - all your OST and PST files are still intact, and when you install Outlook again, you'd be able to use them.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论