[英]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.