On Thu, Aug 20, 2009 at 1:51 PM, Mike Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div class="h5">On Thu, Aug 6, 2009 at 3:12 PM, Marcus D. Hanwell&lt;<a href="mailto:marcus@cryos.org">marcus@cryos.org</a>&gt; wrote:<br>
&gt; James Bigler wrote:<br>
&gt;&gt; On Thu, Aug 6, 2009 at 12:10 PM, Bill Hoffman<br>
&gt;&gt; &lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a> &lt;mailto:<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;     James Bigler wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;         Well, I was using VS 2005 64 bit with SP 1.  I wonder if there<br>
&gt;&gt;         is a similar bug or if there is something else going wrong<br>
&gt;&gt;         such as what Marcus Hanwall described.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;     I am not sure what your issue is, but I know I have done this many<br>
&gt;&gt;     times...<br>
&gt;&gt;<br>
&gt;&gt;     -Bill<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I checked the version numbers of the DLLs, and even checked the md5sum<br>
&gt;&gt; and everything was the same between the dlls in the WinSxS folder and<br>
&gt;&gt; the ones I&#39;m distributing.  It failed on two clean systems without the<br>
&gt;&gt; vcredist install.  I guess I&#39;ll run vcredist as Microsoft suggests and<br>
&gt;&gt; see if I can trouble shoot later.<br>
&gt;&gt;<br>
&gt;&gt; It is a rather perplexing problem.<br>
&gt;&gt;<br>
&gt; The link Bill supplied has all of the relevant information. In the<br>
&gt; &quot;Community Discussion&quot; section the second comment provides three<br>
&gt; possible workarounds. We are using the third of those when distributing<br>
&gt; Avogadro packages for Windows. The version mismatch in the manifests of<br>
&gt; the compiled executables and the manifest with the redistributable DLLs<br>
&gt; is what causes the issue.<br>
&gt;<br>
&gt; It seems that MS has no intention of fixing this issue. We have a clean<br>
&gt; VM where we test new installers, as occasionally this change was lost<br>
&gt; and the DLLs failed to load.<br>
&gt;<br>
&gt; Marcus<br>
<br>
</div></div>Ok, so I too have run into this problem. What is anyone doing to get<br>
around this issue?<br>
<br>
I would really like a solution that did NOT involve editing anything<br>
from VC++ install as I would have to pass those instructions on to the<br>
next Developer. Clinton&#39;s posting about including the VCRedist.exe in<br>
the NSIS installer is OK by me. Is that what everyone else is doing?<br>
<br>
Thanks<br>
--<br>
<font color="#888888">Mike Jackson<br>
</font></blockquote></div><br>I ended up linking against the static CRT library (/MT), but that&#39;s not for everyone.<br><a href="http://msdn.microsoft.com/en-us/library/ms235460.aspx">http://msdn.microsoft.com/en-us/library/ms235460.aspx</a><br>

<br>My next choice was going to be including the VCRedist.exe in the installer.  For some of the other projects at my company, this is what they do.<br><br>Here are some links I&#39;ve been consulting on the subject of CRT library (conflicts with multiple CRTs).<br>

<a href="http://stackoverflow.com/questions/1075050/howto-multiple-versions-of-msvcrt9-as-private-sxs-assemblies">http://stackoverflow.com/questions/1075050/howto-multiple-versions-of-msvcrt9-as-private-sxs-assemblies</a><br>

<a href="http://tedwvc.wordpress.com/2009/08/10/avoiding-problems-with-vc2005-sp1-security-update-kb971090/">http://tedwvc.wordpress.com/2009/08/10/avoiding-problems-with-vc2005-sp1-security-update-kb971090/</a><br><a href="http://stackoverflow.com/questions/1265792/visual-studio-2005-security-updates-and-crt-dll-versions-in-manifest">http://stackoverflow.com/questions/1265792/visual-studio-2005-security-updates-and-crt-dll-versions-in-manifest</a><br>

<br>James<br>