开发者

Automatic inclusion of runtime library/framework into the installation package VS2008

  • Project1: A C++ EXE project with code generation option "runtime library" set to "Multithreaded Debug Dll".

  • Project2: A C# EXE project developed with .Net Version, say, 3.5

Suppose I want to write an installer project for these projects. I naturally include their primary outputs (the exe's) in the installation package. But the exe's are not sufficient to ensure that they will be runnable on the target machine. In case of project1 we will need msvcrt.dll and possibly others(not sure), and, in case of project2 we will need the .NET framework of the corresponding version. The question i开发者_如何学编程s, is it possible to make the installation package automatically include those? If it is not, how is it best done manually? TIA.


It is already automatic afaik. Every time I tinkered with a Setup project, it already figured out the prerequisites from the projects I added. From your Setup project, use Project + Properties and click Prerequisites. Verify that the right Visual C++ Runtime Libraries and .NET Framework are ticked.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜