解析wix自定义操作中的格式化表值

发布于 2024-10-09 15:29:46 字数 457 浏览 0 评论 0原文

我创建了证书 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风铃鹿 2024-10-16 15:29:46

WcaGetRecordFormattedString 就是您要寻找的。

WcaGetRecordFormattedString is what you're looking for.

醉梦枕江山 2024-10-16 15:29:46

我还没有真正使用过 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文