installation - Visual C++ 14 redist package prerequisite - configure from visual studio setup proj -
i have visual studio setup project installs x64 program needs vc++ 14 redist package.
i selected options per image , created folder structure inside:
c:\program files (x86)\microsoft visual studio 14.0\sdk\bootstrapper\packages
i have created vcredist_x64 folder contains:
vcredist_x64.exe product.xml en folder
inside en folder have:
package.xml
contents of product.xml:
<?xml version="1.0" encoding="utf-8" ?> <product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" productcode="microsoft.visual.c++.11.0.x64" > <!-- defines list of files copied on build --> <packagefiles> <packagefile name="vcredist_x64.exe" homesite="vcredistexe"/> </packagefiles> <installchecks> <msiproductcheck property="vcredistinstalled" product="{e46eca4f-393b-40df-9f49-076faf788d83}"/> </installchecks> <!-- defines how invoke setup visual c++ 11.0 redist --> <!-- todo: needs estimatedtempspace, logfile, , update of estimateddiskspace --> <commands reboot="defer"> <command packagefile="vcredist_x64.exe" arguments=' /q:a ' > <!-- these checks determine whether package installed --> <installconditions> <bypassif property="vcredistinstalled" compare="valuegreaterthanorequalto" value="3"/> <!-- block install if user not have admin privileges --> <failif property="adminuser" compare="valueequalto" value="false" string="adminrequired"/> <!-- block install on platform other x64 --> <failif property="processorarchitecture" value="amd64" compare="valuenotequalto" string="invalidos"/> <!-- block install on vista or below --> <failif property="versionnt" compare="versionlessthan" value="6.00" string="invalidplatformwinnt"/> </installconditions> <exitcodes> <exitcode value="0" result="success"/> <exitcode value="3010" result="successreboot"/> <defaultexitcode result="fail" formatmessagefromsystem="true" string="generalfailure" /> </exitcodes> </command> </commands> </product>
contents of en\package.xml:
<?xml version="1.0" encoding="utf-8" ?> <package xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" name="displayname" culture="culture" > <!-- defines localizable string table error messages--> <strings> <string name="displayname">visual c++ "14" runtime libraries (x64)</string> <string name="culture">en</string> <string name="adminrequired">you not have permissions required install visual c++ runtime libraries (x64). please contact administrator.</string> <string name="invalidos">installation of visual c++ runtime libraries (x64) supported on x64 machines.</string> <string name="generalfailure">a failure occurred attempting install visual c++ runtime libraries (x64).</string> <string name="vcredistexe">http://go.microsoft.com/fwlink/?linkid=210622&clcid=0x409</string> </strings> </package>
when build setup project, gives no errors.
initially when didn't have folder structure along xmls had error on build:
enable 'download prerequisites same location application' in prerequisites dialog box, must download file 'vcredist_x64\vcredist_x64.exe' item 'visual c++ "14" runtime libraries (x64)' local machine. more information, see http://go.microsoft.com/fwlink/?linkid=616018.
however have no errors now. problem not install vc redistributable dependency.
i believe productcode , other parameters not correct in xmls. vcredistexe link vc++2010 not download during setup. note have vcredist_x64.exe inside folder structure vc++14 redist.
please me have tried many other options well, , "official" option not seem work (i not find relevant info visual c++ redistributable visual studio 2015).
either option fine me (download website or download same location app) long prerequisite installed.
there open issue ms.
here link 2015 redistributable packages. https://www.microsoft.com/en-us/download/details.aspx?id=48145
Comments
Post a Comment