Inno Setup 如何更改 TInputFileWizardPage 上标签的字体颜色或样式

Inno Setup how to change the font color or style of label on TInputFileWizardPage

我有一个输入文件向导页面,我在其中 select 一个文件并继续下一页。代码如下

[Code]
var
    PageFileSelect: TInputFileWizardPage;

function CreateFileSelectPage(): String;
begin
    PageFileSelect := CreateInputFilePage(PagePreviousPage.ID,
        'Select File',
        'Select File Location',
        'Additional comments...');

    PageFileSelect.Add('Font color or style change required...',
        'test.exe',
        '*.exe');

    PageFileSelect.Values[0] := FileLocation;
end;

是否可以更改向导页面中 "Font color or style change required..." 行的字体颜色或样式(粗体、斜体)?

提前致谢!

使用TInputFileWizardPage.PromptLabels访问表示标签的TNewStaticText实例:

PageFileSelect.PromptLabels[0].Font.Color := clRed;
PageFileSelect.PromptLabels[0].Font.Style := [fsBold, fsItalic];