Programmatically building an MSI

前端 未结 4 693
Happy的楠姐
Happy的楠姐 2021-02-09 07:28

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 parame

4条回答
  •  执念已碎
    2021-02-09 07:51

    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.

提交回复
热议问题