自动包含运行时库/框架到VS2008安装包中
Project1:带有代码的 C++ EXE 项目 生成选项“运行时库”设置为 “多线程调试 Dll”。
项目2:AC# EXE项目开发 .Net 版本,例如 3.5
假设我想为这些项目编写一个安装程序项目。我自然地将它们的主要输出(exe 的)包含在安装包中。但 exe 不足以确保它们可以在目标计算机上运行。对于project1,我们将需要msvcrt.dll以及可能的其他(不确定),对于project2,我们将需要相应版本的.NET框架。问题是,是否可以让安装包自动包含这些内容?如果不是,那么如何最好手动完成? TIA。
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 is, is it possible to make the installation package automatically include those? If it is not, how is it best done manually? TIA.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,这已经是自动的了。每次我修改安装项目时,它都已经从我添加的项目中找出了先决条件。在安装项目中,使用项目 + 属性并单击先决条件。验证是否勾选了正确的 Visual C++ 运行时库和 .NET Framework。
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.