安装程序类显然没有被调用

发布于 2024-08-04 08:31:45 字数 445 浏览 4 评论 0原文

我正在按照本教程来自定义 Web 设置项目。 http://msdn.microsoft.com/en-us /library/aa289522(VS.71).aspx 但是,我正在使用 Visual Studio 中已有的 Web 应用程序。 因此,他们的解决方案的一部分是在我自己的 Web 项目中创建一个安装程序类。当我选择“添加新项目”时,我实际上在对话框中没有看到“安装程序类”选项。
因此,我添加了自己的类,引用“System.Configuration.Install”并扩展了 .net 安装程序类。 我的问题是,在网络安装项目中,我自己的安装程序(根据上面链接中的说明,实际上应该被调用)没有被调用。

关于我做错了什么有什么想法吗?

I'm following this tutorial for customizing a web setup project. http://msdn.microsoft.com/en-us/library/aa289522(VS.71).aspx
However, I'm working with a web application I already have in visual studio.
So part of their solution is to create an installer class in my own web project. When i choose "add new item" I actually don't see the "Installer Class" option in the dialog.
So, I added my own class, referenced "System.Configuration.Install" and extended the .net installer class.
My problem is, in the web setup project, my own installer, which, per the instructions in the link above, should actually be invoked, is not being invoked.

Any ideas on what I'm doing incorrectly?

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

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

发布评论

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

评论(1

焚却相思 2024-08-11 08:31:45

您需要在安装程序上具有 [RunInstaller(true)] 属性,并且需要在安装过程中通过 vdproj 安装程序中的自定义安装程序步骤触发 .NET 安装程序 (请参阅“自定义操作”选项卡),或使用 installutil

一种快速而肮脏的健全性检查是向安装程序添加一个 MessageBox 以查看其是否正在运行(不过,让日志记录正常工作是值得理解的,否则您也会面临一个痛苦的世界)

You need to have a [RunInstaller(true)] attribute on the installer, and the .NET installer needs to be triggered as part of the install process, either by a custom installer step in your vdproj installer (see the Custom Actions tab), or by using installutil.

One quick and dirty sanity check is to add a MessageBox to your installer to see if its running (getting logging working correctly is worth understanding though or you're also asking for a world of pain)

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