如何在我的 inno 设置文件中使用 SaveStringToFile()
我不太熟悉 inno (或 pascal 脚本),但我假设我想做的事情非常简单。
我想在安装开始时编辑特定的文本文件。 [代码] 部分中是否有一个地方可以插入它,以便它首先执行此操作,然后像往常一样继续?我并不是真的要求提供代码示例,因为我认为我可以弄清楚这一点,但我只是想知道将代码放在哪里。
I'm not that familiar with inno (or pascal scripting), but I am assuming what I want to do is pretty simple.
I want to edit a particular text file at the very beginning of the install. Is there a place in the [Code] section were I could just plug this in so that it does this first and then just continues as usual? I'm not really asking for a code example because I think I could figure that out, but I just wanted to know where to put the code.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
安装是在
CurStepChanged(ssInstall)
和CurStepChanged(ssPostInstall)
事件函数调用之间完成的。 ssInstall 是在安装开始时运行代码的正确点。The install is done between the
CurStepChanged(ssInstall)
andCurStepChanged(ssPostInstall)
event function calls. ssInstall is the correct point to run code for the beginning of the install.