安装 ASP.NET 应用程序的先决条件是什么?
我们有一个 ASP.NET 2.0 应用程序可供试用下载。因此,我们无法控制它将安装的环境。尽管我们尽了最大努力来制作可靠的安装程序,但仍然有很多用户报告问题。
我们使用 Web 部署项目生成编译的 .net 文件。然后,我们获取输出并通过 VS 2010 部署项目运行它以生成 msi 安装程序。
以下是我们遇到的一些问题:
- msi 安装程序似乎不能很好地与 IIS7 配合使用。在 为了正确安装,需要兼容 IIS6 进行安装,否则它只会失败且没有错误。
- 即使“RemovePreviousVersions”设置为 true,安装程序也几乎不会卸载以前的版本,而只是抛出一个错误,表明该应用程序已安装。
我们之前尝试过使用 InnoSetup 安装程序。它在一定程度上有效,但我们在安装的应用程序连接到错误的应用程序池时遇到了问题,并且从未找到通过 InnoSetup 脚本定义应用程序池的方法。
有人可以给我一个明确的列表,说明在配置未知的 Windows XP 或更高版本的计算机上启动并运行 ASP.NET 应用程序所需的内容吗?例如,检查 .NET 2.0 是否安装、检查 II6 是否安装、将文件复制到 x、创建虚拟目录等。
更好的是,有人知道有一个安装程序(或 InnoSetup 扩展)可以为您完成大部分设置吗?
We have an ASP.NET 2.0 application that is available as a trial download. As such, we have no control over the environment into which it will be installed. Despite all our efforts to produce a reliable installer, we still get a lot of users reporting problems.
We generate compiled .net files using a web deploy project. We then take the output and run it through a VS 2010 Deployment Project to generate an msi installer.
Here are just a couple of the issues we encounter:
- It appears that the msi installer does not work well with IIS7. In
order for it to install correctly, IIS6 compatibility needs to
be installed otherwise it just fails with no error. - Even though "RemovePreviousVersions" is set to true, the installer almost never uninstalls the provious version and just throws an error saying that the application is already installed.
We have previously tried using an InnoSetup installer. It worked to a certain extent, but we had problems with the installed application connecting to the wrong app pool and never found a way to define the app pool via the InnoSetup script.
Can somebody give me a definitive list of what you need to get an ASP.NET application up and running on a Windows XP or later machine that has an unknown configuration? e.g. check .NET 2.0 is installed, check II6 is installed, copy files to x, create virtual directory etc.
Even better, does anybody know of an installer (or InnoSetup extension) that does most of the setup for you?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
为了在开发或生产服务器上部署该版本,请按照以下步骤操作。
这就是全部,
如果您发现它有用,请将其标记为您的答案,否则请告诉我......
In order to deploy the release on the development or production server, please follow the following steps.
That's all
Flag it as your answer if you have find it useful else let me know ...
您可以使用 Installshield 来开发满足您要求的安装程序。
它具有支持根据 IIS 创建和删除虚拟目录、在目标系统上复制数据、验证操作系统等的所有功能。
You can use Installshield to develop the installer for your requirements.
It has all the fetures which support creating and removing virtual directories depending on IIS, copying data on target system, Validating the OS etc.
如果您使用外部 .dll(程序集),那么您也必须部署它们。例如:如果应用程序使用 Crystal reports(CR),则必须在生产计算机上安装 CR 运行时包。还要确保所有文件都已导入到您的项目中,并且您的应用程序不会在本地计算机(项目目录之外)中查找其文件。
If your using external .dlls(assemblies) then you must deploy them too. For example : If an application uses Crystal reports(CR) then CR run-time package must be installed on the production machine. Also make sure that all your files are been imported to your project and your application does not look for its files in your local machine(out side your project directory).
在审查了所有选项后,我决定保留 msi 安装程序,但在 inno 安装脚本中添加先决条件检查。
这是脚本
After reviewing all the options I decided to keep the msi installer, but add the prerequisite checks in the inno setup script.
Here's the script
Window PI 可与 Windows XP SP3+(及更高版本)配合使用,并具备 Web 开发服务器的先决条件。
http://www.microsoft.com/web/downloads/platform.aspx
不过举起手来 - 我自己还没有尝试过,但我会尝试一下开发服务器。您可能感兴趣
Window PI works with Windows XP SP3+ (and greater) and put on the prerequistes for a web dev server.
http://www.microsoft.com/web/downloads/platform.aspx
Hands up though - I haven't tried it myself but I'd give it a go for a dev server. Might be of interest to you