从MSI - Installshield将参数传递给MSM中的自定义操作

时间:2021-07-14 02:49:26

Screenshot of custom action

自定义操作的屏幕截图

edit: where should I mention the property as attribute? and how will the property created in MSM be exposed by the exe and how should it be set?

编辑:我应该在哪里提到属性作为属性?以及如何在exe中公开在MSM中创建的属性以及如何设置它?

I am using an Basic MSI project to install a Merge Module, which internally invokes an .exe using custom action in differed mode. I would like to pass arguments to the custom action while invoking the exe. How can I pass arguments dynamically to the custom action?

我正在使用Basic MSI项目来安装合并模块,该模块在内部使用不同模式下的自定义操作调用.exe。我想在调用exe时将参数传递给自定义操作。如何将参数动态传递给自定义操作?

1 个解决方案

#1


0  

You cannot do that directly. You're only hope is that the custom action uses public properties as input parameters and pass the updated value for those properties when you call the MSM.

你不能直接这样做。您只希望自定义操作使用公共属性作为输入参数,并在调用MSM时传递这些属性的更新值。

#1


0  

You cannot do that directly. You're only hope is that the custom action uses public properties as input parameters and pass the updated value for those properties when you call the MSM.

你不能直接这样做。您只希望自定义操作使用公共属性作为输入参数,并在调用MSM时传递这些属性的更新值。