[wix-users] Install VC++ 2013 Redist

Carlos Sosa carlos.sosa.us at outlook.com
Wed Dec 6 10:03:39 PST 2017


Have you tried it, and did it work?



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Harinatha Narisetty via wix-users
Sent: Wednesday, December 6, 2017 10:50 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Harinatha Narisetty <harinatha.narisetty at us.abb.com>
Subject: [wix-users] Install VC++ 2013 Redist

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>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list