我正在为我的安装程序编写 Inno Setup 脚本。我的问题是,如何才能使任务始终处于检查状态?也就是说,我希望任务出现,也许它已被选中并呈灰色,因此用户无法取消选中它。
谢谢。
最佳答案
您只能以编程方式禁用任务:
[Tasks]
Name: fixed; Description: "Fixed task"
Name: notfixed; Description: "Not fixed task"
[Code]
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpSelectTasks then
begin
{ Only now is the TasksList populated }
WizardForm.TasksList.ItemEnabled[0] := False;
end;
end;
关于inno-setup - Inno Setup 如何使任务始终处于检查状态?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41146226/