【问题标题】:File selection within InnoSetupInnoSetup 中的文件选择
【发布时间】:2013-11-03 16:51:04
【问题描述】:

我希望用户在安装过程中选择一个许可文件,我该如何创建这种对话框?谁能展示一些示例代码?

【问题讨论】:

    标签: installation inno-setup pascal


    【解决方案1】:

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

    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;
    

    【讨论】:

    • 这正是我想要的!感谢您的贡献,这为我节省了几个小时 :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-02-13
    • 1970-01-01
    • 1970-01-01
    • 2011-03-30
    • 1970-01-01
    相关资源
    最近更新 更多