InstallShield、.msi、自定义操作和全局变量
我想在 InstallShield、基本 msi 项目(2011)中实现全局变量。我知道根据手动引擎在每个自定义操作启动期间都会被初始化,因此全局变量也会被初始化。目前,我使用 MsiSetProperty 和 MsiGetProperty 来在自定义操作调用之间传递值(有关安装成功的信息/从配置文件收集的一些数据等)。有没有更快的方法来传递这些值?
I want to implement global variable in InstallShield, basic msi project (2011). I know that according to manual engine is being initialized during start of every custom action so global variables are initialized too. Currently I use MsiSetProperty and MsiGetProperty in order to pass values between custom actions calls (information about success of installation / some data gathered from configuration files etc). is there some faster way of passing these values ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
属性是在自定义操作之间传递值的正确方法。但请注意,延迟的自定义操作在这个意义上受到限制,并且它们可以访问的唯一通用属性是 CustomActionData(每个 CA 都有自己的实例)。
Properties are the correct way to pass values between custom actions. Note, however, that deferred custom actions are limited in that sense, and the only general purpose property they can access is CustomActionData (each CA gets its own instance).