在 WTP(Windows 故障排除包)中将文本更改为粗体 - 故障排除清单

Change text to BOLD in WTP(Windows Troubleshooting Pack) - Troubleshooting Manifest

我正在尝试创建一个 Windows 疑难解答包并希望在疑难解答向导中的 BOLD.

中显示某些文本

我的故障排除清单的一小段 (XML)

<?xml version="1.0" encoding="utf-8"?>

<dcmPS:DiagnosticPackage SchemaVersion="1.0" Localized="false" 
 xmlns:dcmPS="http://www.microsoft.com/schemas/dcm/package/2007" 
  xmlns:dcmRS="http://www.microsoft.com/schemas/dcm/resource/2007">

    <DiagnosticIdentification>
        <ID>TESTID1</ID>
        <Version>1.0</Version>
    </DiagnosticIdentification>

    <DisplayInformation>
        <Parameters />
        <Name>
            <dcmRS:LocalizeResourceElement comment="Comment" 
            index="100">Test HelpWizard to fixconflicts</dcmRS:LocalizeResourceElement>
        </Name>

        <Description>
            <dcmRS:LocalizeResourceElement comment="This is a comment" index="0">
This wizard will help configure your computer so that you have the necessary tools to start your work.    
     </dcmRS:LocalizeResourceElement>
        </Description>
    </DisplayInformation>
</dcmPS:DiagnosticPackage>

输出:


有没有办法在 <name> 中以粗体突出显示文本 "Test Help-Wizard to fix conflicts"?

我试过使用

包装文本

但是 XML 不验证并抛出错误 “元素“http://www.microsoft.com/schemas/dcm/resource/2007:LocalizeResourceElement”不能包含子元素 b,因为父元素内容模型仅为文本

我也阅读了有关创建故障排除包、编写清单、资源架构的官方文档,但找不到解决方案

https://msdn.microsoft.com/en-us/library/windows/desktop/dd323761(v=vs.85).aspx https://msdn.microsoft.com/en-us/library/windows/desktop/dd323708(v=vs.85).aspx

经过一些研究,我发现可以通过在 <ExtensionPoint> </ExtensionPoint>

中使用 <RTFDescription> 标签来更改字体属性

首先,<ExtensionPoint> 将允许您进一步自定义用户界面。

什么是<RTFDescription>

Allows you to add Rich text format to your Interactions. The RTFDescription element can contain an RTF string or a localized resource string (for example, "@diag.dll,-123" or "@diag.dll,RESOURCE.RTF")

我修改字体的代码片段

<ExtensionPoint>                       
 <RTFDescription>
     <dcmRS:LocalizeResourceElement comment="This is a comment" index="10">

# Text in RTF Syntax
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fprq2\fcharset0 Calibri;}{\f1\fnil\fcharset0 Calibri;}}
{\colortbl ;\red112\green48\blue160;}
{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\sa160\sl252\slmult1\cf1\f0\fs24 Step 1: Enter Profile name\par
Step 2: Enter Email address\par
\pard\sa200\sl276\slmult1\cf0\lang9\f1\fs22\par
}

     </dcmRS:LocalizeResourceElement>
 </RTFDescription>
</ExtensionPoint>

输出 :


这里提供官方文档:

https://msdn.microsoft.com/en-us/library/dd776530.aspx