gpt4 book ai didi

inno-setup - InnoSetup : How to add line break into component description

转载 作者:行者123 更新时间:2023-12-04 02:55:38 24 4
gpt4 key购买 nike

我试图在我的组件描述中间添加一个换行符。但我似乎找不到合适的语法。

[Components]
Name: Component A; Description: "This is component A:" + NewLine + "My component A has this stuff";

最佳答案

[Components] 不支持换行符部分条目,但您可以从代码修改您的组件项目描述(不幸的是,对存储描述的属性的访问被编入索引,并且无法通过组件名称找到索引)。

此示例显示如何修改第一个组件项的描述(索引从 0 开始),以及如何为其添加换行符:

[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program

[Components]
Name: "app"; Description: "Description is changed in [Code] section"
Name: "readme"; Description: "Readme File"

[Code]
procedure InitializeWizard;
begin
WizardForm.ComponentsList.ItemCaption[0] :=
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed id venenatis' + #13#10 +
'erat, ac vehicula sapien. Etiam convallis ligula eros, in ullamcorper turpis' + #13#10 +
'pulvinar sit amet.';
end;

关于inno-setup - InnoSetup : How to add line break into component description,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24661916/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com