简体   繁体   English

如何创建程序设置?

[英]How is the setup of a program created?

I want to create a setup for my own program. 我想为自己的程序创建一个设置。 Is it possible to create the setup for any program including the window and gui based program? 是否可以为任何程序(包括基于window和gui的程序)创建安装程序? I want to know how the setup of a program is created in C#. 我想知道如何在C#中创建程序的设置。

All a setup utility fundamentally does is copy files to some location. 设置实用程序从根本上所做的就是将文件复制到某个位置。

That is not say that this is all they do. 这是不是说,这是他们做 Most setup utilities will do much more besides, including: 大多数设置实用程序除了可以执行更多操作外,还包括:

  • registering COM components; 注册COM组件;
  • registering assemblies in the GAC; 在GAC中注册程序集;
  • writing registry keys; 编写注册表项;

and so on. 等等。 The Setup and Deployment project in visual studio is one solution. Visual Studio中的安装和部署项目是一种解决方案。 Another is Wix , which uses xml configuration files to produce an .msi installer, and InnoSetup , which produces an .exe executable setup. 另一个是Wix ,它使用xml配置文件生成.msi安装程序,而InnoSetup ,它生成.exe可执行安装程序。

Can you give any more details about your requirements? 您能否提供有关您要求的更多详细信息?

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

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