I'm using Inno Setup with InnoTools Downloader and after the download completed I want to copy the downloaded file to the selected directory.
if CurStep=ssPostInstall then begin
FileCopy('Test.exe', ExpandConstant('{app}\Test.exe'), False);
It don't do anything, but if I restart the installer and I install again to the same folder, then it's copy the file. How is it possible or what I'm doing wrong? If I just do this, then it works properly each time:
if CurStep=ssPostInstall then begin
FileCopy('Test.exe', 'Test1.exe', False);
ExistingFile
) as well. Give it the full path where you downloaded your file. Otherwise you are expecting your source file to be placed in the current directory (path returned e.g. by theGetCurrentDir
function). – TLama