完全通过c#安装程序(以编程方式) [英] Install a program through c# completely(programmatically)

查看:86
本文介绍了完全通过c#安装程序(以编程方式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我创建了一个win表单向导来将exe安装到我的windows中。我想做一些Windows安装程序就像注册表一样输入,安装到选定的路径后,它应该出现在添加/删除程序中,我也可以从添加/删除程序中卸载它。运行后我希望得到一个可执行文件,当它运行时,指南用户安装创建此设置向导的程序。我不想使用visual studio的安装项目模板。通过c#帮助我实现相同的目标,因为我不确定应该为实现所有目的而创建的条目上面提到的事情。



谢谢。

Hi,

I have created a win form wizard to install an exe into my windows.I want to do all the things that a windows installer does like registry entry,after installation to the selected path it should appear in add/remove programs and also I shall be able to uninstall the same from add/remove programs .After it has run I wish to get a single executable file and when it runs,guides the user to install the program for which this set up wizard was created.I do not want to use the setup project template of visual studio.Kindly help me achieve the same through c# as I am not sure what entries I should make to achieve all things mentioned above.

Thanks.

推荐答案

那么你将不得不打破安装程序执行并复制它。如果您需要询问如何做到这一点,那么您不应该尝试它,只需像其他明智的人一样使用安装程序。
Then you are going to have to break down what the installer does and duplicate it. If you need to ask how to do that then you should not attempt it, just use an installer like every other sensible person.


这篇关于完全通过c#安装程序(以编程方式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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