[wix-users] Issues installing vc redist 2015 "after build" with bootstrap
Ricarddsb .
ricarddsb at gmail.com
Wed Nov 2 02:50:26 PDT 2016
Hi,
We are having issues to install Vc++redist2015 with our .msi.
Before we modified a component of a project we had as a pre-requisite to
install VC++redist2013 if it wasn't present in the user machine and worked
perfectly.
We did it using bootstrap and the code was located at our .wixproj:
*<Target Name="AfterBuild"> <GenerateBootstrapper
ApplicationFile="$(TargetFileName)" ApplicationName="$(OutputName)"
BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="HomeSite"
CopyComponents="True" OutputPath="$(OutputPath)\"
Path="$(ProgramFiles32)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\"
ApplicationRequiresElevation="False" Culture="en" Validate="False" />
</Target>*
But trying to install Vc++redist2015 with bootstrap we ran in to problems.
In the same file we changed the path as the product.xml and package.xml for
VC redist 2015 are located in another folder:
*<Target Name="AfterBuild"> <GenerateBootstrapper
ApplicationFile="$(TargetFileName)" ApplicationName="$(OutputName)"
BootstrapperItems="@(BootstrapperFile)" ComponentsLocation="HomeSite"
CopyComponents="True" OutputPath="$(OutputPath)"
Path="$(ProgramFiles32)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\"
ApplicationRequiresElevation="False" Culture="en" Validate="False" />
</Target>*
Putting this path, it always prompts the installation of VC++redist2015
even if its installed. Also makes the user restart his pc.
Searching the web i found this link and tried the work arrounds but it
didn't worked.
https://connect.microsoft.com/VisualStudio/feedback/details/1604832/vcredist-bootstrapper-packages-in-vs-2015-sdk-arent-working
I modified the product.xml and package.xml as said in the previous URL but
without any success.
Also tried applying vc redist 2015 with Merge Modules with the following
code without success:
*<DirectoryRef Id="INSTALLDIR"> <Merge Id="VCRedist"
SourceFile="$(var.BinariesPath)Vc2015\Microsoft_VC140_CRT_x86.msm"
DiskId="1" Language="0"/> </DirectoryRef>*
* <Feature Id="VCRedist" Title="Visual C++ 14.0 Runtime"
AllowAdvertise="yes" Display="1" Level="1"> <MergeRef
Id="VCRedist"/> </Feature>*
Does someone has a clue about what is missing or what i'm doing wrong?
Regards,
Richard
More information about the wix-users
mailing list