如何制作单个"exe"文件设置文件? [英] How to make a single "exe" setup file?
问题描述
我做了一个使用服务引用(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 isClickOnce deployment
method.
Actually you need to useSetup & 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屋!