如何使用inno脚本动态复制文件?
我对 inno 脚本很陌生。我使用 inno 脚本创建了一个安装文件,并在该脚本中包含了一个文本文件。每当我运行安装程序时,文本文件都会被复制到 目标文件夹。我的问题是我必须在安装之前编辑文本文件。根据文本文件值,我需要配置我的安装文件。我的设置能够将文件从源复制到目标(我在脚本文件中手动给出路径),但如何编辑文件以及我的设置如何识别文本文件位置以及它将如何 复制到目标文件夹?
在安装之前,我将文本文件复制到安装位置。现在设置 file 必须找到 .txt 文件的位置并且必须复制到目标。
有人知道这个概念吗?
Source: "D:\Projects\Sample\Release\Install.exe"; DestDir: "{app}"; Flags: ignoreversion
这是我的源文件 .exe 位置。
I'm very new to inno script. I have created a setup file using inno script and I have included one text file in that script. Whenever I run the setup, the text file is copied to
destination folder. My problem is that I have to edit the text file before installation. Based on the text file values, I need to configure my setup file. My setup is able to copy the file from source to destination (I'm giving the path manually in the script file) but how to edit the file and how can my setup identify the text file location and how it will
copy to destination folder?
I copy the text file to the setup location before doing installation. Now the setup
file has to find the location of the .txt file and has to copy to destination.
Anyone know this concept?
Source: "D:\Projects\Sample\Release\Install.exe"; DestDir: "{app}"; Flags: ignoreversion
This is my source file .exe location.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看普通
[Files]
条目上的{src}
常量和external
标志。Look at the
{src}
constant and theexternal
flag on a normal[Files]
entry.