[wix-users] Install VC++ 2013 Redist
Harinatha Narisetty
harinatha.narisetty at us.abb.com
Wed Dec 6 09:50:28 PST 2017
Hi,
I want to install VC++ 2013 Redist as part of list of prerequisites. I am using Bootstrapper. Here is my WXS file for VC++ 2013. Is there anything else I should do?
Bundle.wxs
<Chain>
<PackageGroupRef Id='NetFx462Redist' />
<PackageGroupRef Id='VisualCPlusPlusRedist' After='NetFx462Redist' />
VCRedist.wxs
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Fragment>
<util:RegistrySearch Id="VCPLUSPLUS2013" Variable="VCPLUSPLUS2013" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x64" Value="Installed" Result="value" />
</Fragment>
<Fragment>
<util:RegistrySearchRef Id="VCPLUSPLUS2013"/>
<WixVariable Id="VcPPRedistDetectCondition" Value="VCPLUSPLUS2013 >= 1" Overridable="yes" />
<WixVariable Id="VcPPRedistInstallCondition" Value="" Overridable="yes" />
<WixVariable Id="VcPPRedistPackageDirectory" Value="VisualCPlusPlus\" Overridable="yes" />
<PackageGroup Id="VisualCPlusPlusRedist">
<ExePackage
DisplayName="Microsoft Visual C++ 2013"
InstallCommand="/q /norestart /ChainingPackage "[WixBundleName]" /log "[VcRedistFullLog].html""
RepairCommand="/q /norestart /repair /ChainingPackage "[WixBundleName]" /log "[VcRedistFullLog].html""
UninstallCommand="/uninstall /q /norestart /ChainingPackage "[WixBundleName]" /log "[VcRedistFullLog].html""
PerMachine="yes"
DetectCondition="!(wix.VcPPRedistDetectCondition)"
InstallCondition="!(wix.VcPPRedistInstallCondition)"
Id="VisualCPlusPlusRedist"
Vital="yes"
Permanent="yes"
LogPathVariable="VcRedistFullLog"
Compressed="no"
Name="!(wix.VcPPRedistPackageDirectory)vcredist_x64.exe">
</ExePackage>
</PackageGroup>
</Fragment>
</Wix>
More information about the wix-users
mailing list