简体   繁体   English

MVC Web应用程序WIX安装程序

[英]MVC web application WIX installer

I'm trying to create an installer using WIX for my MVC web application. 我正在尝试使用WIX为我的MVC Web应用程序创建安装程序。 I've followed this: http://blog.torresdal.net/2008/09/26/ blog article and I got it working. 我已经按照以下步骤进行了操作: http : //blog.torresdal.net/2008/09/26/博客文章,我认为它可以正常工作。 The issue is that in my Product.wxs I need to list all files I want to install ie: 问题是,在我的Product.wxs我需要列出要安装的所有文件,即:

<File Id="Web.config" Name="Web.config" ...
<File Id="MvcApplication4.dll" Name="MvcApplication4.dll" ...

etc.. 等等..

During setup, wix install those files in ProgramFiles\\MyApp\\ directory. 在安装过程中,wix将这些文件安装在ProgramFiles \\ MyApp \\目录中。 Which is good. 哪个好

What I want to do instead is to have all files needed (like I would normally do using => publish) installed. 我要做的是安装所有需要的文件(就像我通常使用=> publish一样)。 meaning: bin, Views, Scripts etc.. and NOT have them listed one by one in Product.wxs. 含义:bin,Views,Scripts等。而在Product.wxs中没有一一列出。

OR 要么

Is there a way to specify in wix to copy a FOLDER and all contents inside it? 有没有一种方法可以在wix中指定复制文件夹及其内部的所有内容?

any info would be greatly appreciated. 任何信息,将不胜感激。 thanks 谢谢

The correct way to do this is to use Heat ( http://wix.sourceforge.net/manual-wix3/heat.htm ). 正确的方法是使用Heat( http://wix.sourceforge.net/manual-wix3/heat.htm )。

Heat will harvest files from your output directory if that is what you want. 如果需要的话,Heat将从您的输出目录中收集文件。

More likely you will point it at a Visual Studio project and it will select all outputs and Copy to Output type files. 您更有可能将其指向Visual Studio项目,它将选择所有输出并复制到输出类型文件。

It is very flexible and is make to do exactly what you require, simply add it as a post build step. 它非常灵活,可以完全满足您的要求,只需将其添加为构建后的步骤即可。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM