yes i got it. I just changed my script as follows :
[Code] procedure CurStepChanged(CurStep: TSetupStep); var logfilepathname, logfilename, newfilepathname: string; begin logfilepathname := expandconstant(''); // logfilename := ExtractFileName(logfilepathname); // RenameFile(logfilename,'Setup_Log.log'); newfilepathname := expandconstant('\') +'Setup_Log.log' if CurStep = ssDone then begin filecopy(logfilepathname, newfilepathname, false); end; end;