在this article中,我读到了:
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
和on process.Exited事件我希望从系统中删除加载项,直到我下次处理.Start(filename);
加载项出现/消失时是否可以管理(从C#端)? (或安装/卸载)