这是 Inno Setup 中显示文件选择对话框的两种方法,
向导页方法:
[Code]
Var
PageFileDialog: TInputFileWizardPage;
procedure InitializeWizard;
begin
PageFileDialog:= CreateInputFilePage(
wpWelcome,
'Title 1',
'Title 2',
'Title 3');
PageFileDialog:= PageFileDialog.Edits[PageFileDialog.Add('', 'Text file (*.txt)|*.txt', '.txt')];
end;
直接打开对话框,
[Code]
procedure InitializeWizard;
var
FileName: string;
begin
FileName := '';
if GetOpenFileName('', FileName, '',
'Text Documents (*.txt)|*.txt|All Files|*.*', 'txt') then
begin
{ Filename contains the selected filename }
end;
end;
但是这些不允许在打开的对话框中选择多个文件,它只选择一个文件。如何选择多个文件?
具有三个目标文件夹的 Inno Setup方法在 这里不起作用。它应该是一个可以选择多个文件的文本框和浏览按钮。