I would like to add VC++ Redistributable 2013 to an existing working WiX project. The project consists of one main file with a <Product>
element, which contains a <Feature>
and an <InstallExecuteSequence>
element and some others.
I found out that you can use <ExePackage>
from Burn
to install an .exe
file (in my case the redistributable). I formed a fragment, which looks like this (with help from here):
<Fragment>
<PackageGroup Id="VC13RedistX86">
<ExePackage
Cache="no"
Compressed="yes"
PerMachine="yes"
Permanent="yes"
Vital="yes"
Name="Resources\vcredist_x86.exe"
SourceFile="Resources\vcredist_x86.exe"
InstallCommand="/install /quiet /norestart">
<!-- -->
<ExitCode Value="3010" Behavior="forceReboot"/>
<!-- Ignore "Newer version installed" error -->
<ExitCode Value="1638" Behavior="success"/>
</ExePackage>
</PackageGroup>
</Fragment>
I would like to know if there is a way to include this into my existing WiX product or no? If there is no way, how can I combine the original installer and the <ExePackage>
?
ExePackage
is valid only in a bundle (.exe), not a product (.msi). (The VC++ redistributable is itself a Burn bundle containing MSI packages and MSI packages can't install other MSI packages.)