<div dir="ltr">On Thu, Aug 17, 2017 at 3:10 PM, Matwey V. Kornilov <span dir="ltr"><<a href="mailto:matwey.kornilov@gmail.com" target="_blank">matwey.kornilov@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
What is recommended way to locate and merge MS redistributable *.msm file into final *.msi installer produced by CPack and WIX?<br>
<br>
It seems to be a quite common task but I cannot find any mention.<br></blockquote><div><br></div><div> I've never tried this myself.</div><div><br></div><div>You probably already found:</div><div>    <a href="http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_vcredist.html">http://wixtoolset.org/documentation/manual/v3/howtos/redistributables_and_install_checks/install_vcredist.html</a></div><div><br></div><div>Perhaps the patch mechanism in the WIX generator can be used to insert the required snippets into the generated XML:</div><div>    <a href="https://cmake.org/cmake/help/latest/module/CPackWIX.html#variable:CPACK_WIX_PATCH_FILE">https://cmake.org/cmake/help/latest/module/CPackWIX.html#variable:CPACK_WIX_PATCH_FILE</a></div><div><br></div><div>I don't outright know where the msm files are stored or what would be the best way to locate them.<br></div><div><br></div><div>I suppose it might not be that common in a CMake context because it would be CPack generator and compiler specific while the competing <a href="https://cmake.org/cmake/help/latest/module/InstallRequiredSystemLibraries.html">https://cmake.org/cmake/help/latest/module/InstallRequiredSystemLibraries.html</a> is both generator and compiler agnostic.</div><div><br></div><div>Nils<br></div></div></div></div>