如何在.net平台中进行可执行设置 [英] How to make a executable setup in .net platform
本文介绍了如何在.net平台中进行可执行设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只想在C#.net或VB.net程序中创建一个可执行安装程序.这样就可以将其安装在计算机中,并且在安装后无需运行.net框架即可运行.
I just want to create a executable setup in C#.net or in VB.net program. So that it can be installed in computer and after installation in runs without .net framework. How it can be done.
推荐答案
对于分步过程,请通过此链接
http://balanagaraj.wordpress.com /2007/05/29/create-exe-or-setup-file-in-net-windows-application/ [
For Step by step process go through this link
http://balanagaraj.wordpress.com/2007/05/29/create-exe-or-setup-file-in-net-windows-application/[^]
您不能.
C#和VB都依赖于.NET框架,如果没有它或框架仿真器(如Mono),就无法运行.后面的安装会很麻烦,以至于您还是硬着头皮安装了正确的" .NET框架-Vista和7都已经预装了.NET版本,因此您很有可能会最终目标计算机将首先安装一些框架.
如果在解决方案中创建安装和部署"项目,它将自动为您安装relevent框架.
在纯粹主义者以是的,可以买到这样的产品"大声疾呼之前,我知道您可以买到Spoon Studio之类的产品,但总的来说,它们是在浪费时间和金钱……
You can''t.
C# and VB both depend on the .NET framework, and cannot run without it, or a framework emulator (such as Mono). The later would be so much trouble to install that you might as well bite the bullet and install the "proper" .NET framework anyway - Vista and 7 both come pre-installed with .NET versions anyway, so there is a good chance that you eventual target machine will have some framework installed to start with.
If you create a "Setup and Deployment" project in your solution, it will automatically install teh relevent framework for you.
And before the purists chime in with "yes you can, buy such and such a product" I know that you can get products such as Spoon Studio, but generally, they are a waste of time and money...
您可以创建]在Visual Studio中设置和部署向导项目.
这篇关于如何在.net平台中进行可执行设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文