From 49a923ba9554bd32dcc8aec0ab54c6817cfc3c98 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 1 Sep 2021 08:08:03 +0200 Subject: [PATCH] Copy instead of renaming creds file during install if its missing --- exe_builder.iss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exe_builder.iss b/exe_builder.iss index 34a40936c..02254cb71 100644 --- a/exe_builder.iss +++ b/exe_builder.iss @@ -69,7 +69,6 @@ procedure CurStepChanged(CurStep: TSetupStep); begin if (CurStep = ssPostInstall) then begin - if FileExists(GetFileName('creds_example.yml')) and not FileExists(GetFileName('creds.yml')) then - RenameFile(GetFileName('creds_example.yml'), GetFileName('creds.yml')); + FileCopy(GetFileName('creds_example.yml'), GetFileName('creds.yml'), True); end; end; \ No newline at end of file