WIX-添加C#自定义操作代码 [英] WIX - Adding a C# custom action code

查看:242
本文介绍了WIX-添加C#自定义操作代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个使用VS 2010由Wix安装的程序,并且已经准备好product.wxs。

I'm creating a program which is being installed by Wix, using VS 2010 and I've already got the product.wxs ready.

现在我想将自定义C#操作添加到安装中。我已经搜索了操作方法,并找到了该指南: 如何创建完全成熟的C#自定义操作?

Now I want to add a custom C# action to the installation. I've searched how to do it and found this guide: How do I create fully fledged C# custom actions?

问题是我不理解所有说明,特别是在此方面指南的部分:在Advanced Installer中集成C#自定义操作

The problem is that I don't understand all the instructions, specifically in this section of the guide: Integrate the C# custom action in Advanced Installer

我已经创建了自定义操作项目,但是我不明白如何告诉安装项目运行该自定义操作,以及如何在提交阶段将操作设置为在安装时运行。

I've created the Custom Action project but I don't understand how do I tell the setup project to run that custom action and how do I set the action to run at install in the commit phase.

另一相关事情。如何在C#代码中获取用户选择安装到的安装路径?

Another related thing. How in the C# code can I get the installation path that the user chose to install to?

推荐答案

该教程介绍了如何结合使用WiX托管的自定义操作和用于创建安装程序的商业工具高级安装程序。

That tutorial is for how to use WiX managed custom actions with "Advance Installer", a commercial tool for creating installers.

以下是有关如何创建 C#中的WiX自定义操作,用于WiX工具集。

Here is a good explanation on how to create WiX Custom Actions in C#, to use with the WiX toolset.

这篇关于WIX-添加C#自定义操作代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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