如何制作单个"exe"文件设置文件? [英] How to make a single "exe" setup file?

查看:157
本文介绍了如何制作单个"exe"文件设置文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我做了一个使用服务引用(WCF)的项目.这是我的第一个此类项目,所以我有一些疑问.

首先,我重建了解决方案-并尝试从Release目录运行"exe"文件.但这不起作用-我的意思是应该执行WCF函数时-出现错误-带有身份验证.

但是当我重生并发布到某个地方时,我得到的文件很少-" setup.exe","name.application" ..目录"Applications文件".

如何制作单个exe文件?

Hi,
I made a project which uses a service reference (WCF). This is my first that kind of project, so I have some questions.

First of all i Rebuilded the solution - and try to run the "exe" file from Release directory. But that don''t work - i mean when the WCF function was supposed to execute - en error appeard - sth with authentication.

But when I reubilded, and the publish it somewhere, i get few files - ''setup.exe'', ''name.application''.. directory ''Applications files''.

How to make single exe file?

推荐答案

我不确定您可以使用Visual Studio.您可以使用Inno之类的工具 http://www.jrsoftware.org/isinfo.php [
I''m not sure you can using Visual Studio. You can use a tool like Inno http://www.jrsoftware.org/isinfo.php[^]
which will let you make a single file.

That or buy installshield


您所做的就是ClickOnce deployment方法.

实际上,您需要使用Visual Studio中可用的Setup & Deployment project.

请参阅:
将参数传递到配置文件的安装和部署项目 [
Whatever you did is ClickOnce deployment method.

Actually you need to use Setup & Deployment project which is available in Visual Studio.

Refer: A Setup and Deployment project that passes parameters to the configuration file[^].

Note: This is just a sample reference. Searching on Google would yield more results for you.

Mark it as Answer if it is helpful


这篇关于如何制作单个"exe"文件设置文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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