简体   繁体   English

如何创建asp.net Web安装项目

[英]How to create the asp.net web setup project

I have a Asp.net application which I want to make it easy to depoly in client machine by click the .ext or .msi file. 我有一个Asp.net应用程序,通过单击.ext或.msi文件,可以轻松地在客户端计算机中进行depoly。

Then I found the "web setup project" in vs. 然后我在vs.中找到了“网络安装项目”。

However I have no idea how to make it. 但是我不知道该怎么做。

In my case,my application need .Net 4. 就我而言,我的应用程序需要.Net 4。

And after the app is deployed I have to modify something in the web.config which I want to gather through the install wizard. 部署应用程序后,我必须在web.config中修改一些我想通过安装向导收集的内容。

Also I need to do some clean work after deploy(modify some files). 另外,我需要在部署(修改某些文件)后做一些干净的工作。

So I wonder if my requirement is possible using "web setup project",and how to make it? 因此,我想知道使用“ Web安装项目”是否可以满足我的要求,以及如何实现?

In Visual Studio you can modify files during install only through custom actions . 在Visual Studio中,只能在安装过​​程中通过自定义操作来修改文件。 So you will need to write custom code which does what you need. 因此,您将需要编写满足您需要的自定义代码。 Regarding .NET Framework 4, it can be added as a prerequisite . 关于.NET Framework 4,可以将其作为先决条件添加。

If you want an easier solution, you can try a commercial setup authoring tool: http://en.wikipedia.org/wiki/List_of_installation_software 如果您想要一个更简单的解决方案,可以尝试使用商业设置创作工具: http : //en.wikipedia.org/wiki/List_of_installation_software

For example, Advanced Installer has a dedicated project type for ASP.NET applications. 例如,高级安装程序具有ASP.NET应用程序的专用项目类型。

Yes,We can make Custom Actions(Framing Connection during installation ,Consuming WCF service for Web App)to .msi file during installation. 是的,我们可以在安装过程中对.msi文件执行自定义操作(安装过程中进行框架连接,使用Web应用程序的WCF服务)。 If you want to have more clear picture about this refer my articles. 如果您想对此有更清晰的了解,请参阅我的文章。

This is to create or change Connection string along with setup creation for Windows Application 这是为了创建或更改连接字符串以及Windows应用程序的安装程序创建

http://www.codeproject.com/Tips/446121/Adding-connection-String-During-Installation http://www.codeproject.com/Tips/446121/Adding-connection-String-During-Installation

In this creating setup file for Web App which consumes WCF service 在此创建使用WCF服务的Web App的安装文件中

http://www.codeproject.com/Tips/477202/SetUp-file-Creation-for-Web-Application-which-Cons http://www.codeproject.com/Tips/477202/SetUp-file-Creation-for-Web-Application-which-Cons

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何确定它是“ ASP.NET网站”还是“ ASP.NET Web应用程序项目”? - How to Tell if it is it a “ASP.NET Web Site” or an “ASP.NET Web Application Project”? 如何在asp.net Web应用程序中部署项目 - how to deploy the project in asp.net web application 部署ASP.NET网站项目 - Deploying a ASP.NET Web Site Project 旧的Asp.Net网站项目-没有项目文件? - Old Asp.Net Web Site Project - No Project file? 我的Visual Studio 2010 Web项目类型列表中缺少“ ASP.NET Web项目”-如何获得它? - I am missing “ASP.NET Web Project” in my list of Visual Studio 2010 Web project types - how do I get it? VB ASP.NET 4.0-向新的Web项目中添加示例 - VB ASP.NET 4.0 - Adding Example to new web project 无法在Visual Studio 2008中创建Asp.net MVC 2项目 - Cannot Create a Asp.net MVC 2 project in Visual Studio 2008 如何在Visual Studio中创建一个新的ASP.NET MVC网站? - How to create a new ASP.NET MVC web-site in Visual Studio? 如何在VS 2010中为MVC2应用程序创建Web安装项目? - How to create a Web Setup project in VS 2010 for a MVC2 application? Visual Studio 2010 + ASP.Net Web项目:在当前文件夹中查找web.config(而不是root) - Visual Studio 2010 + ASP.Net Web Project: Looking in current folder for web.config (instead of root)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM