我有一个像这样的安装程序脚本:
[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
[Tasks]
Name: group1; Description: "Check/uncheck all"; GroupDescription: "1. Group description"; Flags: unchecked
Name: group1\task1; Description: "1. Task"; Flags: unchecked
Name: group1\task2; Description: "2. Task"; Flags: unchecked
; Here should be visible an empty line in the UI Tasks page to separate groups
Name: group2; Description: "Check/uncheck all"; GroupDescription: "2. Group description"; Flags: unchecked
Name: group2\task1; Description: "1. Task"; Flags: unchecked
Name: group2\task2; Description: "2. Task"; Flags: unchecked
我想知道我是否可以在任务组之间添加一个空元素,只是为了制作一种"空行"生成的UI中的效果,我的意思是在任务组1和组2之间的任务页面中添加一些空白。
我怎么能这样做?
答案 0 :(得分:2)
我唯一可以提出的方法是在群组描述之前添加换行符。这可以做什么,例如像这样:
[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
[CustomMessages]
; %n here is a line break, so here we are inserting a line break before the text
TaskGroup2Descr=%n2. Group description
[Tasks]
Name: group1; Description: "Check/uncheck all"; GroupDescription: "1. Group description"; Flags: unchecked
Name: group1\task1; Description: "1. Task"; Flags: unchecked
Name: group1\task2; Description: "2. Task"; Flags: unchecked
Name: group2; Description: "Check/uncheck all"; GroupDescription: "{cm:TaskGroup2Descr}"; Flags: unchecked
Name: group2\task1; Description: "1. Task"; Flags: unchecked
Name: group2\task2; Description: "2. Task"; Flags: unchecked