以编程方式设置 COM 的应用程序根目录;应用

发布于 2024-10-03 15:53:32 字数 129 浏览 0 评论 0原文

开发 COM+ 应用程序时,每次更改要测试的代码时都必须卸载并重新安装它。

每次安装 COM+ 应用程序时,都必须在“激活”选项卡中手动设置“应用程序根目录”,这变得非常繁琐,因此我想知道是否有一种方法可以以编程方式设置此属性?

When developing a COM+ application, I have to uninstall and reinstall it each time I make changes to the code that I want to test.

It is becoming extremely tedious having to manually set the "Application Root Directory" in the Activation tab every time I install the COM+ app, and so I was wondering if there was a way to programmatically set this attribute?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

银河中√捞星星 2024-10-10 15:53:32

对于那些偶然发现这篇文章(就像我一样)并正在寻找一种使用 COMAdmin.COMAdminCatalog 库来完成此操作的方法的人。您需要使用 ApplicationDirectory 属性来设置应用程序根目录设置。

有关详细信息,请参阅:https: //msdn.microsoft.com/en-us/library/windows/desktop/ms686107(v=vs.85).aspx#applicationdirectory

For those who stumble upon this article (like I did) and are looking for a way to do it using the COMAdmin.COMAdminCatalog library. You need can set the Application Root Directory setting using the ApplicationDirectory property.

For details see: https://msdn.microsoft.com/en-us/library/windows/desktop/ms686107(v=vs.85).aspx#applicationdirectory

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文