0

I am trying to use Wix Toolkit for the installer of my application (visual studio 2013). The issue being is that its only grabbing the .exe file of my application. It is missing all the DLL, .config, pdb etc..

Now I know how to add these in manually but that seems kind of stupid. What is the correct way of doing this? This is what I have;

<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
  <Directory Id="INSTALLFOLDER" Name="MyApp"/>
</Directory>
</Fragment>
<Fragment>
 <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Guid="*" >
  <File Source="$(var.MyApp.TargetPath)" KeyPath="yes"  /> 
</Component>
</ComponentGroup>
</Fragment>
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
Xaphann
  • 3,195
  • 10
  • 42
  • 70

3 Answers3

2

You can use the WIX tool Heat to create a .wxs file based on a directory or even a,visual studio project.

Shaun Wilde
  • 8,228
  • 4
  • 36
  • 56
2

It's not stupid, it's simple and non-presumptuous.

If you don't want to create components by hand, you can use the heat tool.

You can use heat within a .wixproj by supplying parameters to the HarvestProjects Target.

Tom Blodget
  • 20,260
  • 3
  • 39
  • 72
1

Others have already suggested using heat to achieve what you want, I would say the same, but I also wanted to link to another answer I gave on a similar subject which gives you an example, if you wanted to see some actual XML dealing with how to use heat in practice. You should be able to take the suggestions of the others and morph this into something that might work for you.

Wix- How to copy a directory to install folder

Good luck.

Community
  • 1
  • 1
Ryan J
  • 8,275
  • 3
  • 25
  • 28