inno-setup - 设置完成后将变量写入 .txt

标签 inno-setup

有没有办法在设置完成后将变量写入 DestDir?

我想将一个变量存储到一个文本文件中:

SaveStringToFile('c:\filename.txt', #13#10 + 'the string' + #13#10, True);

有没有像function InitializeSetup(): Boolean;这样的函数设置过程结束?

我想将这个文本文件保存到 DestDir 目录

最佳答案

您可以从 CurStepChanged 调用您的代码CurStep 参数等于 ssDone 时的事件方法.在伪代码中它看起来像这样:

[Code]    
procedure CurStepChanged(CurStep: TSetupStep);
begin
  if CurStep = ssDone then
    SaveStringToFile('c:\filename.txt', #13#10 + 'the string' + #13#10, True);
end;

关于inno-setup - 设置完成后将变量写入 .txt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16582749/

相关文章:

windows - Inno 安装程序 : Control panel icon does not show

installation - 当您两次列出同一文件时,Inno Setup 中会发生什么?

c++ - 具有依赖项的 Inno Setup 驱动程序

return-value - 从命令行应用程序将字符串值传递给 Inno Setup

inno-setup - UninstallRun 中的检查参数功能无法正常工作

通过监听端口发现 LAN 上的 MySQL 服务器(Inno Setup)

inno-setup - 如何使用Inno Setup进行静默安装?

c# - 判断是否有任何登录用户正在运行要安装/卸载的应用程序

inno-setup - Inno 设置 : How to modify long running script so it will not freeze GUI?

.net - 使用 Inno Setup 在 Windows 8 上安装 .Net 3.5