可执行程序和安装程序 [英] executable program and an installer

查看:121
本文介绍了可执行程序和安装程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,
我非常想知道在编译C ++程序代码后如何继续以创建用于安装的可执行文件.感谢

sir,
i would very much like to know how to continue after compiling my C++ program code in order to create an executable file for installation. thanks

推荐答案

您正在使用什么编译器?在Visual Studio C ++中,您可以发布它. (正在构建)


抱歉,以上解决方案适用于VS C#.

对于VS C ++,您将其构建为发行版本,而不是将其构建为调试版本.这将创建一个名为Release的文件夹(如图),其中将包含您的可执行文件.
What are you using for a compiler? In Visual Studio C++ you can publish it. (Under Build)


My apologies, the above solution is for VS C#.

For VS C++ you build it as a release not as a debug. This will create a folder called Release (go figure) that will contain your executable.


制作一个发行可执行文件,并确保您打包了具有适当的dll依赖项.

您可以使用依赖项遍历器来确定是否存在任何外部依赖项.
http://wiki.imacros.net/Dependency_Walker [ http://download.cnet.com/Dependency-Walker/3000-2086_4-10052198.html [^ ]
Make a release executable and make sure you package with appropriate dll dependencies.

You can use dependency walker to figure out if there''s any external dependencies.
http://wiki.imacros.net/Dependency_Walker[^]
http://download.cnet.com/Dependency-Walker/3000-2086_4-10052198.html[^]


在我公司,我们使用NSIS

http://nsis.sourceforge.net/Main_Page [
At my company we use NSIS

http://nsis.sourceforge.net/Main_Page[^]

It use script to create an installation file and you can package all sorts of things in with it.
We use it for most of our tools so that they can be configured in the right way. Also you can create uninstall scripts so that users can remove it before installing a newer version of your software.


这篇关于可执行程序和安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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