Reputation: 21308
I'm trying to create an installer using WIX for my MVC web application. I've followed this: http://blog.torresdal.net/2008/09/26/ blog article and I got it working. The issue is that in my Product.wxs
I need to list all files I want to install ie:
<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. Which is good.
What I want to do instead is to have all files needed (like I would normally do using => publish) installed. meaning: bin, Views, Scripts etc.. and NOT have them listed one by one in Product.wxs.
OR
Is there a way to specify in wix to copy a FOLDER and all contents inside it?
any info would be greatly appreciated. thanks
Upvotes: 2
Views: 3333
Reputation: 2018
The correct way to do this is to use Heat (http://wix.sourceforge.net/manual-wix3/heat.htm).
Heat will harvest files from your output directory if that is what you want.
More likely you will point it at a Visual Studio project and it will select all outputs and Copy to Output type files.
It is very flexible and is make to do exactly what you require, simply add it as a post build step.
Upvotes: 1