如何将参数传递给用C#编写的托管代码dll的自定义操作? [英] How to pass parameters to custom action for a managed code dll written in C#?

查看:162
本文介绍了如何将参数传递给用C#编写的托管代码dll的自定义操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我必须将3个参数传递给c#代码以在installshield中进行托管代码自定义操作.不能给出代码.请有人即使有基本的方式也帮助我.预先感谢.

I have a requirement where I have to pass 3 parameters to the c# code for managed code custom action in installshield. Cant give the code. Please someone help me out even with basic way of doing so. Thanks in advance.

推荐答案

由于您提到了自定义操作,因此请参考在程序集自定义操作中指定托管方法的签名.指定需要传递给函数中的参数的值或存储值的属性.请注意,如果这是延迟的自定义操作,则您将需要将它们通过CustomActionData传递,如第三段为延迟,提交或回滚自定义操作使用自定义方法签名"所述.

Since you mention a custom action, refer to Specifying the Signature for a Managed Method in an Assembly Custom Action. Specify values, or properties that store the values, that you need to pass to the parameters in the function. Note that if this is a deferred custom action, you will need to pass them through CustomActionData as mentioned in the third paragraph "Using a Custom Method Signature for a Deferred, Commit, or Rollback Custom Action."

这篇关于如何将参数传递给用C#编写的托管代码dll的自定义操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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