自定义操作方法调用维克斯 [英] custom action method calls in WiX

查看:109
本文介绍了自定义操作方法调用维克斯的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我们想象一下我写,我计划在维克斯安装项目中使用自定义操作管理类库。该类库包含有安装的方法几类。我打算从我的安装包作为一个自定义操作,推出这些方法,所以我标志着他们都与CustomActionAttribute。什么会怎样呢?将只有一个方法来启动,或全部或安装项目的汇编会失败?这被认为是在所有的好做法?

Lets imagine I've written a custom actions managed class library that I am planning to use in WiX setup project. The class library contains few classes which have "Install" methods. I am planning to launch those methods from my setup package as a custom action, so I mark all of them with the CustomActionAttribute. What will happen then? Will only one method be launched, or all of them, or the compilation of the setup project will fail? Is this considered a good practice at all?

推荐答案

我模拟的问题,并得到了下面的错误,而试图编译自定义操作类库:
具有相同键的项已被添加。
因此,这意味着它不可能用在类库相同名称的方法,或者至少我们不应该这样做。

I've simulated the problem and got following errors while trying to compile the custom actions class library: An item with the same key has already been added. So that means it is impossible to use methods with same names in the class library, or at least we shouldn't do that.

这篇关于自定义操作方法调用维克斯的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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