如何在C#中的Windows应用程序中创建单个文件设置? [英] How to create single file setup in windows application in c#?

查看:62
本文介绍了如何在C#中的Windows应用程序中创建单个文件设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在C#中创建Windows应用程序时创建单个文件安装程序的安装项目选项.如何在c#中的Windows应用程序中创建单个文件安装程序?

I am creating windows application in c# when creating setup project option of single file setup in not available.How to create single file setup in windows application in c#?

推荐答案

如果使用的是Visual Studio 2010,则可以在视图"菜单中找到单个文件选项,然后在解决方案资源管理器"中选择部署项目时,单击属性页".然后在配置属性"列表中选择生成".在包文件"选项下,可以选择设置文件"中的.(但是,依赖项通常放在同一文件夹中.)我建议创建一个UPX或其他文件格式的SFX(自解压存档)或Packer,因为它也会减小文件的大小.

If you are using Visual Studio 2010 you can find single file option in View menu, click Property Pages when a deployment project is selected in Solution Explorer. Then choose Build in the Configuration Properties list. Under Package files option you can choose In "setup file". (however the dependencies are often put in the same folder).I can suggest creating an SFX(Self Extracting Archive) or Packer as UPX or others as it will also reduce the file size.

在Visual Studio 2012或更高版本中,您可以使用Installshield Limited Edition并创建msi Installer或Installshield脚本的项目.

In Visual Studio 2012 or higher you can use Installshield Limited Edition and creating a project of msi Installer or Installshield script.

希望有帮助

您可以使用任何可用的zip或rar工具创建SFX(7zip,winzip或winrar也会这样做).创建档案并继续创建SFX并定义要在提取后运行的文件..您可以看到 http://www.wikihow.com/使用7Zip创建自解压可执行文件

you can create SFX with any of available zip or rar tools (7zip,winzip or winrar will do too).create a archive and proceed to create SFX and define file to run after extraction.. you can see http://www.wikihow.com/Use-7Zip-to-Create-Self-Extracting-excutables

UPX

http://upx.sourceforge.net/

WWPACK

http://www.wwpack32.venti.pl/wwpack.html

有关打包机的全面信息,您可以访问 http://en.wikipedia.org/wiki/Executable_compression

for comprehensive information of packers you can visit http://en.wikipedia.org/wiki/Executable_compression

这篇关于如何在C#中的Windows应用程序中创建单个文件设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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