从C#我自己的安装程序? [英] Make my own Installer from C#?

查看:112
本文介绍了从C#我自己的安装程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直很喜欢新安装的微软已经使用,主要是对于使用WPF,我想知道如果我可以做这样的事情对我的应用程序?

I've been quite liking the new Installer's Microsoft have used, mainly for their Blend installations which use WPF, I'm wondering if I can make something like this for my application?

主要的担忧正在创建的Program Files目录和注册与Windows的应用程序,以便将其添加到添加/删除应用程序列表。

The main worries are creating the Program Files Directory and registering the application with Windows so it adds it to the add/remove applications list.

是否有任何人对这个有点经验?

Is there anyone with a bit of experience on this?

感谢

推荐答案

微软一直使用维克斯与他们几个安装工人,并已成功地创造出一些非常时髦,用户友好的和可访问的用户界面。其中的例子包括SQL Server和微软的Office。

Microsoft have been using WiX with several of their installers and have managed to create some pretty funky, user friendly and accessible user interfaces. Examples of which include SQL Server and Microsoft Office.

这听起来像您的安装并不需要做太多的系统,创建一个程序文件目录,并安装一些文件存在。你是最好还是使用Windows安装程序来处理这个问题,这是它是专为,而不是滚动您自己。你会得到所有的功能与故障应对和安全回滚开箱。创造维克斯一个基本的安装程序所需的努力是真正最小并的添加一个基本的GUI 是很容易。

It sounds like your installer doesn't need to do too much to the system, create a program files directory and install some files there. You are best off using Windows Installer to handle this, this is what it is built for, rather than rolling your own. You will get all of the functionality for coping with failures and rolling back safely out of the box. The effort required to create a basic installer in WiX is truly minimal and adding a basic GUI is just as easy.

这篇关于从C#我自己的安装程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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