Reputation: 1183
Using this heat command
heat dir "$(SolutionDir)scr\A\A.WindowsService\bin\$(Configuration)" -t "$(SolutionDir)scr\Installers\A\AInstallerHeat\Filter.xsl" -var wix.Path -dr ConfigurationUtilityDir -gg -g1 -cg ConfigurationUtilityComponents -xo -srd -out "$(SolutionDir)scr\Installers\A\AInstallerHeat\ConfigurationUtilityHeat.wxs"
and this configuration for Product.wxs file
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*" Name="AInstallerHeat" Language="1033" Version="1.0.0.0" Manufacturer="B" UpgradeCode="c1e6c1f6-69a5-4f01-92d0-1c4cb60ee3bc">
<Package InstallerVersion="200" InstallScope="perMachine" />
...
<MediaTemplate EmbedCab="yes" />
<!-- Condition Properties -->
<Property Id="Privileged" Value="1" />
...
<Feature Id="ProductFeature" Title="AInstallerHeat" Level="1">
<ComponentGroupRef Id='ConfigurationUtilityComponents' />
<ComponentRef Id='CMP_AWindowsService' />
</Feature>
<Directory Id="TARGETDIR" Name="SourceDir">
...
<Directory Id="ConfigurationUtilityDir" Name="A">
<!-- Bin folder -->
<Directory Id="BINDIR" Name="bin"/>
...
</Directory>
</Product>
<!-- A Windows Service -->
<Fragment>
<DirectoryRef Id="BINDIR">
<Component Id="CMP_AWindowsService"
Guid="3D3DE5C1-7154-4c61-9816-248A85F6DEBF"
KeyPath='no'>
<File Id="A.WindowsService.exe"
Name="A.WindowsService.exe"
KeyPath="yes"
Vital="yes"
Source="$(var.SolutionDir)\scr\A\A.WindowsService\bin\$(var.Configuration)\bin\A.WindowsService.exe"
ReadOnly='no'
Compressed='yes'
Hidden='no'
System='no'
Checksum='no'/>
...
...
</Component>
</DirectoryRef>
</Fragment>
</Wix>
the output of the build is this:
As you can see, the .msi package contains the essential files, but all DLLs are included into 'PFiles' folder. Is there a way to include all DLLs into .msi package and not create the folder?
Thanks
Upvotes: 1
Views: 304
Reputation: 1183
Just add the attribute Compressed="yes"
to Package
node.
Here the result:
<Package InstallerVersion="200" InstallScope="perMachine" Compressed="yes" />
Upvotes: 2