Inno Setup: Disable components page on upgrade

前端 未结 3 600
盖世英雄少女心
盖世英雄少女心 2020-12-06 13:21

Is there a way to disable the Components Page for Upgrades? I would like to enable upgrades of my software but I don\'t want to allow the users to change the selection of co

3条回答
  •  我在风中等你
    2020-12-06 13:51

    Something like that:

    if CurPageID=wpSelectComponents then
     begin
      if ExtraOptionAvailable() then
      begin
        Wizardform.ComponentsList.Checked[6] := true;
        Wizardform.ComponentsList.ItemEnabled[6] := true;
      end else begin
        Wizardform.ComponentsList.Checked[6] := false;
        Wizardform.ComponentsList.ItemEnabled[6] := false;
      end;
    end;
    

提交回复
热议问题