1

这篇文章中,我读到:

When you finish developing a project, remove the add-in assembly, 
registry entries, and security settings from your development computer. 
Otherwise, the add-in will continue to run every time that you open Word 
on your development computer.

To clean up the completed project on your development computer

In Visual Studio, on the Build menu, click Clean Solution.

然而,插件的连续出现确实不是我所需要的。(是的,我可以在我的电脑上清理解决方案,但是一旦我将我的应用程序发送给测试人员,他们将无法摆脱它)。我希望加载项仅在我运行时出现:

process.Start(filename); // where filename is something like C:\somedir\boo.docx

在 process.Exited 事件中,我希望从系统中删除加载项,直到下次我执行 process.Start(filename);

加载项出现/消失时是否可以管理(从 C# 端)?(或安装/卸载)

4

0 回答 0