我希望用户在安装过程中选择许可证文件,如何创建这种对话框?谁能展示一些示例代码吗?
最佳答案
Inno Setup 文档中有一个代码示例(请参阅“Pascal Scripting”、“支持函数引用”、“对话框函数” - 您可以启动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;
关于installation - InnoSetup 中的文件选择,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19575109/