【发布时间】:2013-11-03 16:51:04
【问题描述】:
我希望用户在安装过程中选择一个许可文件,我该如何创建这种对话框?谁能展示一些示例代码?
【问题讨论】:
标签: installation inno-setup pascal
我希望用户在安装过程中选择一个许可文件,我该如何创建这种对话框?谁能展示一些示例代码?
【问题讨论】:
标签: installation inno-setup pascal
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;
【讨论】: