1
[Components]
Name: "Slasher"; Description: "Dagon Slasher"; Types: Slasher Full
Name: "Frankenstein"; Description: "Dagon Frankenstein"; Types: Frankenstein Full
[Types]
Name: "Full"; Description: "Dagon Video Tools"
Name: "Slasher"; Description: "Dagon Slasher"
Name: "Frankenstein"; Description: "Dagon FrankenStein"
[Tasks]
Name: "Debug"; Description: "Nothing"; Components: not Slasher
Name: "Vid"; Description: "Install Extra Codecs for Frankenstein"; Flags: unchecked; Components: not Slasher
[Code]
var
Warning: TNewStaticText;
procedure InitializeWizard;
begin
Warning := TNewStaticText.Create(WizardForm);
Warning.Parent := WizardForm.SelectTasksPage;
Warning.Visible := False;
Warning.AutoSize := False;
Warning.SetBounds(
WizardForm.TasksList.Left,
WizardForm.TasksList.Top + WizardForm.TasksList.Height,
WizardForm.TasksList.Width,
50
);
Warning.Font.Color := clRed;
Warning.Caption := 'Warning: This will result in a non-functional "Join in FrankenStein" button in the Tools Menu.';
end;
我還使用了另一個驚人的code by TLama。問題是我需要在用戶選擇任務時顯示註釋,否則將隱藏(同一頁面上)。Inno Setup - 根據任務選擇有條件地隱藏/顯示靜態文本
是的!非常感謝。在最後一次編輯之後,它可以工作(第一個,顯然也影響了其他組件組合)。這似乎很愚蠢,解決方案非常簡單,我對所有數字/組合和內容感到困惑。我發誓,那天我可以在腦海裏完成這一切,把它寫入腳本會容易得多。 –