Installation InnoSetup中的文件选择

Installation InnoSetup中的文件选择,installation,inno-setup,pascal,Installation,Inno Setup,Pascal,我希望用户在安装过程中选择许可证文件,如何创建此类对话框?有人可以展示一些示例代码吗?Inno安装文档中有一个代码示例(请参阅“Pascal脚本”、“支持函数参考”、“对话框函数”-您可以启动): 那正是我要找的!感谢您的贡献,这为我节省了几个小时:) var FileName: string; begin // Set the initial filename FileName := ''; if GetOpenFileName('', FileName, '',

我希望用户在安装过程中选择许可证文件,如何创建此类对话框?有人可以展示一些示例代码吗?

Inno安装文档中有一个代码示例(请参阅“Pascal脚本”、“支持函数参考”、“对话框函数”-您可以启动):


那正是我要找的!感谢您的贡献,这为我节省了几个小时:)
var
  FileName: string;
begin
  // Set the initial filename
  FileName := '';
  if GetOpenFileName('', FileName, '', 
     'Text Documents (*.txt)|*.txt|All Files|*.*', 'txt') then
  begin
    // Successful; user clicked OK
    // Filename contains the selected filename
  end;
end;