以编程方式建立MSI [英] Programmatically building an MSI

查看:72
本文介绍了以编程方式建立MSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个C#程序,该程序根据许多参数创建一个MSI.例如,根据用户设置,将包括某些文件或设置运行时参数.

I would like to create a C# program that creates an MSI based on a number of parameters. For example, based on user settings, certain files would be included, or runtime parameters set.

任何人都可以将我指向可能有用的任何文档,或者给我一个思路,让我从这样的事情开始吗?

Can anyone point me towards any documentation that might help, or give me an idea where I might start with something like this?

推荐答案

如果您真的想在代码中执行此操作,则需要查看 Wix 构建了一个不错的托管工具集,该工具集将使使用XML语言编写MSI更加容易.他们还将许多Windows Installer API封装在托管包装中,但是要获得Windows Installer的全部功能,您需要查看API文档.

If you really want to do this in code you'll want to take a look at the Windows Installer API. However, Wix has built a nice managed tool set that will make authoring MSIs much easier using an XML language. They have also wrapped many of the Windows Installer APIs in managed wrappers, but to get the full power of Windows Installer you'll want to check out the API docs.

这篇关于以编程方式建立MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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