如何为 ASP.Net、Windows 服务创建部署应用程序?

发布于 2024-09-24 23:50:32 字数 256 浏览 3 评论 0原文

我目前正在从事一个项目,该项目有多个 ASP.NET Web 应用程序、Windows 服务。现在我们有一个要求,我需要创建一个安装应用程序应该执行以下任务。

  1. 自动创建数据库。
  2. 在 IIS 虚拟目录中安装 Web 应用程序
  3. 安装 Windows 服务
  4. 修改所有配置文件
  5. 在开始部署之前进行必要的检查。

哪种工具最好是开源/免费软件可以帮助我开发上述设置/部署应用程序?

I am currently working in a project where it is having multiple asp.net web applications, windows services. Now we have a requirement that I need to create an Setup application should do the following tasks.

  1. Automatically create database.
  2. Install web applications in IIS virtual directories
  3. Install windows services
  4. Modify all configuration files
  5. Do necessary checks before starting deployment.

Which tool preferably open source / freeware help me in developing above setup/deployment application?

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

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

发布评论

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

评论(1

你没皮卡萌 2024-10-01 23:50:32

我们已成功使用 Visual Studio 安装工具创建用于分发 Web 应用程序和服务的设置(尽管不在同一设置中)。

在我们的 Web 设置中,我们创建一个虚拟目录(实际上是一个应用程序)、一个应用程序池,并分配 vdir 来使用应用程序池(我们使用自定义 C# 代码和 WMI 执行其中一些操作,并将考虑使用 hte new未来的网络管理内容)。

我们还使用我们的设置修改配置文件(我们编写了 C# 代码,并使用设置工具提供的自定义对话框来获取用户信息)。

VS 工具的一个好处是您可以使用 c#/vb.net 编写自定义操作,并在安装过程中执行这些操作。

对于我们的 Web 应用程序(在 VS 2008 中),我们希望将它们作为已编译的 aspx 进行分发,以阻止客户端的脚本篡改。因此,我们的构建过程使用 asp.net webdeployment 项目插件(预编译 aspx 页面),然后将 webdeploy 的输出提供给安装项目。 (结果是我们发布了编译后的 aspx 文件,它们无法轻易更改)

我们遇到的一个限制是 VS 安装程序附带了一定数量的“固定”对话框,您可以将它们插入到向导中,但没有设计器创造新的。

如果您需要更多功能,请查看 WIX。我知道它非常好,并且与 Visual Studio 集成得很好。 Scott Hanselman 不久前与 WIX 的作者/创始人一起制作了 Hansel 分钟播客。值得一听:http://www.hanselminites.com/default.aspx?showID= 213

We have successfully used the Visual Studio setup tools to create setups to distrubute web applications and services (though not in the same setup).

In our web setup, we create a virtual directory (an application, actually), an app pool, and assign the vdir to use the app pool (we do some of that with custom c# code and WMI, and will look at using hte new web administration stuff in the future).

We also modify config files with our setup (we wrote c# code, and used the custom dialogs provided by the setup tool to get info from users).

A nice thing about the VS tools is that you can use c#/vb.net to write Custom Actions, and have those actions execute during setup.

For our web apps (in VS 2008), we wanted to distrubute them as compiled aspx to discourage script tampering on the customer side. So, our build process uses the asp.net webdeployment project addon (to precompile the aspx pages), and then feeds the output of webdeploy to the setup project. (the result is that we ship compiled aspx files that they cannot easily alter)

A limitation that we ran into is that the VS setup comes with a set number of "canned" dialogs that you can insert into the wizard, but there is no designer to create new ones.

If you need something more featured, have a look at WIX. I understand that it is quite good, and that it integrates well with Visual Studio. Scott Hanselman did a Hanselminutes podcast with the author/founder of WIX a little while back. It's worth a listen: http://www.hanselminutes.com/default.aspx?showID=213

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