简体   繁体   English

如何在C#中创建自己的setup.exe文件?

[英]How can I create to my own setup.exe file in C#?

I'm developing an application using the C# programming language. 我正在使用C#编程语言开发一个应用程序。 How can I create to my own setup file in C# ?I don't want a commercial software. 如何在C#中创建自己的安装文件?我不想要商业软件。 How can I do that? 我怎样才能做到这一点?

只需创建一个新的安装项目

试试Nullsoft安装程序: http//nsis.sourceforge.net/

In the File menu, click New->Project, and then in the dialog select Other Project Types->Setup and Deployment in the tree on the left. 在File菜单中,单击New-> Project,然后在对话框中选择左侧树中的Other Project Types-> Setup and Deployment。 Select InstallShield LE or Visual Studio Installer, as you prefer. 根据需要选择InstallShield LE或Visual Studio Installer。

Personally I'd recommend Visual Studio Installer->Setup Wizard for beginners. 就个人而言,我建议初学者使用Visual Studio Installer->安装向导。

实际上,您可以通过转到New Project - > Other Project Type - > Setup and Deployment Visual Studio Installer在Visual Studio中执行此操作。

If you're absolutely determined to write your own .exe that's compatible with the Microsoft installer stuff, then you pretty much need to read this chapter cover-to-cover: 如果您绝对决定编写自己的.exe,它与Microsoft安装程序的东西兼容,那么您几乎需要阅读本章封面到封面:

http://msdn.microsoft.com/en-us/library/cc185688%28v=VS.85%29.aspx http://msdn.microsoft.com/en-us/library/cc185688%28v=VS.85%29.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM