如何为仅安装OS的PC部署VC 9.0 MFC应用程序? [英] how to deploy VC 9.0 MFC application for pc that has nothing except OS installed?

查看:78
本文介绍了如何为仅安装OS的PC部署VC 9.0 MFC应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何为仅安装OS的PC部署VC 9.0 MFC应用程序?我做到了,但是在目标机器上启动该应用程序时收到错误类未注册".我从过去两天开始在google上搜索,但无法执行.我只需要使用setup.msi而不是setup.exe.因为对于2 MB的应用程序,安装框架不是很好.

解决方案

按照John的建议创建安装程序是部署应用程序的最佳方法.

但是,如果要在不创建安装程序项目的情况下安装所需的库,则需要安装以下程序:
软件包可重新分发的Microsoft Visual C ++ 2008(x86) [ ^ ]

有多个软件包,具体取决于Visual Studio版本,Service Pack等.这就是为什么创建安装项目更好的原因.也许这会有所帮助:
如何:使用安装和部署项目进行部署 [ ^ ]
如何:部署设置和部署项目 [ ^ ]

将图像与MFC和C RTL的静态副本链接.它将使您的EXE和运行时映像变大(不共享),但它将消除对目标计算机已安装内容的依赖性.


在解决方案中创建一个安装项目,它将(默认情况下)包括对适当版本的MFC和C运行时库的依赖关系检查.如果尚未安装,这将迫使用户下载它.

学习如何使用手边的工具将对您有好处.


how to deploy VC 9.0 MFC application for pc that has nothing except OS installed? I did it but got error "class not registered" when I start that Application on Target Machine.I searching on google from last 2 days but can''t do it. I have to use only setup.msi not setup.exe. Because for 2 MB Application it''s not good to install framework. Is there anyone who has deployed MFC Application and solve problem like me?

解决方案

Creating a Setup as John suggests is the best way to deploy your application.

But if you want to install the required libraries without creating a Setup project, you need to install this:
Package redistribuable Microsoft Visual C++ 2008 (x86)[^]

There are several packages depending on Visual Studio version, Service Packs, and so on. That''s why creating a Setup project is better. Maybe this will help:
How to: Deploy using a Setup and Deployment Project [^]
How to: Deploy a Setup and Deployment Project[^]


Link your image with static copies of the MFC and C RTL. It will make your EXE and runtime image larger (no sharing) but it will remove the dependency on what the target machine has installed.


Create a Setup project in your solution, and it will (by default) include dependency checks for the appropriate versions of MFC and the C Runtime Library. This will force the user to download it if it''s not already installed.

It would do you good to learn how to use the tools you have on hand.


这篇关于如何为仅安装OS的PC部署VC 9.0 MFC应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆