如何从visual studio 2008重新分发vc ++应用程序 [英] How to redistribute vc++ application from visual studio 2008

查看:223
本文介绍了如何从visual studio 2008重新分发vc ++应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VC ++(Visual Studio 2008版本'9.0.30729.1SP')中开发了一个应用程序。

I have developed a application in VC++ (Visual Studio 2008 version '9.0.30729.1SP').

当我只是双击另一台机器上的exe文件。

When i just double click on exe file in another machine. it is giving me 'side by side' error.

我已检查该计算机上没有任何内容'C:\Program Files \Microsoft Visual Studio 9.0 \\ \\ VC'文件夹。 (但安装了框架3.5)

I have checked that machine does not having anything inside 'C:\Program Files\Microsoft Visual Studio 9.0\VC' folder. (but having framework 3.5 installed)

我需要做什么?我在VC ++应用程序中很新。

What i need to do?I am very new in VC++ applications.

甚至C:\Program Files \Microsoft Visual Studio的任何人都可以将任何解释如何将一切都合并到一个设置从我已经编译我的应用程序。 9.0 \VC'文件夹。

Even 'C:\Program Files\Microsoft Visual Studio 9.0\VC' folder also.

请帮助解决这个问题。

推荐答案

最好的做法是创建一个安装程序。它将自动安装所有必要的依赖关系到用户的机器,以及您的应用程序。你肯定不想试图找到所有的库,它依赖于手动冲刷你的驱动器。静态链接通常不是首选项,因为它意味着你的应用程序不会自动利用对运行时DLL的更新。

The best thing to do is to create a setup program. It will automatically install all necessary dependencies onto the user's machine, along with your application. You definitely don't want to try to find all of the libraries it depends on by manually scouring your drive. And static linking is generally not a preferred option, as it means your app won't automatically take advantage of updates made to the runtime DLLs.

Visual Studio甚至有out-支持为您的应用程序创建安装程序。要使用它,请选择文件 - >新建 - >新建项目。然后在对话框中展开其他项目类型,展开安装和部署。点击Visual Studio Installer,然后选择创建新的安装项目。

Visual Studio even has out-of-the-box support for creating an installer for your application. To use it, select File -> New -> New Project. Then expand "Other Project Types" in the dialog, and expand "Setup and Deployment". Click on "Visual Studio Installer", and choose to create a new "Setup Project".

   

   

或者,如果您不想使用Visual Studio,免费的全功能< a href =http://www.jrsoftware.org/isinfo.php =nofollow> Inno Setup 是一个奇妙的替代方案。

Or, if you'd rather not use Visual Studio, the free, full-featured Inno Setup is a fantastic alternative.

这篇关于如何从visual studio 2008重新分发vc ++应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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