开发者

Specify performance category name from property in WIx

I'm trying to create a performance category as part of the WIX installation but trying to pass in a property to the category's name just r开发者_运维百科esults in the performance category taking the name literally.

<util:PerformanceCategory Id="PerformanceCounter" Name="[PERFORMANCE_CATEGORY_NAME]" DefaultLanguage="english">

Is it possible for it to get the name from a property?


According to the sources of the WiX toolset, the Name column value of PerformanceCategory MSI table is read using WcaGetRecordString function, which doesn't consider formatted values and passes the value as it is written in @Name attribute. I don't know whether it was an intention or just a simple oversight, but if it uses WcaGetRecordFormattedString for the same purpose one day, it will work the way you expect it to now.


PERFORMANCE_CATEGORY_NAME variable must be defined in Product.wxs(main wix file) file. Once it is defined then you can have the value of the variable

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜