Copy instead of renaming creds file during install if its missing

This commit is contained in:
Kwoth
2021-09-01 08:08:03 +02:00
parent bbb8d191ab
commit 49a923ba95

View File

@@ -69,7 +69,6 @@ procedure CurStepChanged(CurStep: TSetupStep);
begin begin
if (CurStep = ssPostInstall) then if (CurStep = ssPostInstall) then
begin begin
if FileExists(GetFileName('creds_example.yml')) and not FileExists(GetFileName('creds.yml')) then FileCopy(GetFileName('creds_example.yml'), GetFileName('creds.yml'), True);
RenameFile(GetFileName('creds_example.yml'), GetFileName('creds.yml'));
end; end;
end; end;