[CMake] InstallRequiredSystemLibraries.cmake and Redistribution of the shared C runtime component in Visual C++

Mike Jackson mike.jackson at bluequartz.net
Thu Aug 20 15:51:08 EDT 2009


On Thu, Aug 6, 2009 at 3:12 PM, Marcus D. Hanwell<marcus at cryos.org> wrote:
> James Bigler wrote:
>> On Thu, Aug 6, 2009 at 12:10 PM, Bill Hoffman
>> <bill.hoffman at kitware.com <mailto:bill.hoffman at kitware.com>> wrote:
>>
>>     James Bigler wrote:
>>
>>
>>         Well, I was using VS 2005 64 bit with SP 1.  I wonder if there
>>         is a similar bug or if there is something else going wrong
>>         such as what Marcus Hanwall described.
>>
>>
>>     I am not sure what your issue is, but I know I have done this many
>>     times...
>>
>>     -Bill
>>
>>
>> I checked the version numbers of the DLLs, and even checked the md5sum
>> and everything was the same between the dlls in the WinSxS folder and
>> the ones I'm distributing.  It failed on two clean systems without the
>> vcredist install.  I guess I'll run vcredist as Microsoft suggests and
>> see if I can trouble shoot later.
>>
>> It is a rather perplexing problem.
>>
> The link Bill supplied has all of the relevant information. In the
> "Community Discussion" section the second comment provides three
> possible workarounds. We are using the third of those when distributing
> Avogadro packages for Windows. The version mismatch in the manifests of
> the compiled executables and the manifest with the redistributable DLLs
> is what causes the issue.
>
> It seems that MS has no intention of fixing this issue. We have a clean
> VM where we test new installers, as occasionally this change was lost
> and the DLLs failed to load.
>
> Marcus

Ok, so I too have run into this problem. What is anyone doing to get
around this issue?

I would really like a solution that did NOT involve editing anything
from VC++ install as I would have to pass those instructions on to the
next Developer. Clinton's posting about including the VCRedist.exe in
the NSIS installer is OK by me. Is that what everyone else is doing?

Thanks
--
Mike Jackson


More information about the CMake mailing list