Inno设置错误结尾的参数数量无效;?

时间:2015-03-29 20:16:49

标签: inno-setup pascalscript

我不知道为什么要显示错误。 对不起我的英语,我来自波兰语。

[Tasks]
Name: czysto; Description: "Instalacja na CZYSTO (Kasuje zawartosc RES_MODS - ZALECANE!)"; Components: Dictionaries; Flags: exclusive
Name: normalna; Description: "Normalna Instalacja (dla zaawansowanych użytkowników)"; Components: Dictionaries; Flags: exclusive unchecked
Name: cache; Description: "Wyczysc pliki CACHE"; GroupDescription: "Dodatki:"; Components: Dictionaries; Flags: unchecked

[Code]
function NextButtonClick(CurPageID: Integer): Boolean;
begin
  Result := True;
  if (CurPageID = wpSelectTasks) and IsTaskSelected('czysto') then
  DelTree(ExpandConstant('{app}\test*'))
end; ERROR HERE!!!!!!!!!!!!!!!!!!!!!!!

文字错误:参数数量无效。

...帮助

1 个答案:

答案 0 :(得分:3)

DelTree比您提供的参数多出几个参数。

function DelTree(const Path: String; 
  const IsDir, DeleteFiles, DeleteSubdirsAlso: Boolean): Boolean;

您应该将Inno Setup documentation加入书签以供将来参考。