为 Windows 应用程序制作 .exe 可安装文件 [英] Making .exe installable file for Windows application

查看:41
本文介绍了为 Windows 应用程序制作 .exe 可安装文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单.

我使用的是 Visual Studio 2013,我开发了一个应用程序,它将包含一堆 dll 和一个 .exe 文件.

I am using visual studio 2013, I have developed a application the will be having a bunch of dll's and a .exe file.

我已经在我的vs2013,我将文件捆绑到 .msi 和 .exe 文件中对我来说效果很好.

I have added the Setup and package Extension with my vs2013 and it worked fine for me to bundle the files into .msi and a .exe file.

我的问题:我知道仅 .msi 文件就足以安装应用程序.是否可以有单个 .exe 文件?我想要一个 .exe 文件,一旦双击 .exe 文件就会开始安装.

My question: I know that the .msi file alone is enough to install the app. Is it possible to have a single .exe file? I want a single .exe file and will start the installation once the .exe file double clicked.

我看到很多应用程序都像我对单个 .exe 文件所说的那样工作.我想知道我无法在网络上找到我的问题的答案.

I am seeing lot of application working like the way I said with single .exe file. I am wondering that I unable to find the answer for my question in web.

推荐答案

您只需要 WinZip、7-zip、JZip 或任何这些类型的工具.他们会将您的 MSI 文件(以及您的 setup.exe,如果您要安装先决条件)压缩为一个可执行文件.它们让您指定要运行的程序和命令行 IIRC.客户端运行 exe,一切正常.

You just need something like WinZip, 7-zip, JZip or any of those types of tool. They'll compress your MSI file (and your setup.exe if you're installing prerequisites) into one executable. They let you specify which to run and the command line IIRC. The client runs the exe and it all just works.

公司经常使用组策略类型的安装 - 根据我的经验,他们更喜欢 MSI 文件.

Corporations often use group policy types of install - they would prefer an MSI file, in my experience.

这篇关于为 Windows 应用程序制作 .exe 可安装文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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