解析wix自定义操作中的格式化表值
我创建了证书 wix 扩展(IisExtension 的扩展)。这包括一个自定义表,该表由自定义操作使用。
列定义如下:
<columnDefinition name="Account" type="string" length="72"
primaryKey="yes" modularize="property" category="formatted"
description="..." />
该列包含类似“[Property]”的值。当自定义操作像这样读取此列时:
hr = WcaGetRecordString(hRecCertificate, vcpqAccount, &pwzTemp);
它得到字符串“[Property]”。但我需要“财产价值”。如何解析这个字符串?
问候迈克尔
I've created certificate wix extension (extension of IisExtension). This includes a custom table, which is consumed by a custom action.
A column is defined as follows:
<columnDefinition name="Account" type="string" length="72"
primaryKey="yes" modularize="property" category="formatted"
description="..." />
This column contains values like "[Property]". When the custom action reads this column like this:
hr = WcaGetRecordString(hRecCertificate, vcpqAccount, &pwzTemp);
it get's the string "[Property]". But I need "PropertyValue". How can this string be resolved?
Regards Michael
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
WcaGetRecordFormattedString 就是您要寻找的。
WcaGetRecordFormattedString is what you're looking for.
我还没有真正使用过 WcaGetRecrodString。查看 MsiFormatRecord 函数。检查返回代码并阅读 MSDN 上的所有陷阱,以获取有关可能出现问题的提示。
I've not really used WcaGetRecrodString. Take a look at the MsiFormatRecord function. Check the return code and read all the gotchas on MSDN for tips on what might be going wrong.