编程建立一个MSI [英] Programatically building an MSI

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

问题描述

我想创建一个基于许多参数创建MSI C#程序。例如,根据用户的设置,某些文件将被包括在内,或运行参数进行设置。

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?

推荐答案

如果你真的想这样做,在代码中你要采取看 Windows安装程序API 。但是,维克斯已经建立了一个很好的管理工具集,这将使使用XML语言编写的MSI容易得多。他们还裹着许多托管包装的Windows安装程序的API,但要获得Windows安装程序的全部功能,你会想看看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天全站免登陆