![]() |
How make Copy Function in InnoSetup
1 Attachment(s)
i want to copy file to another folder after install repack
how i can do it in inno script i use this script https://fileforums.com/showthread.php?t=102463 Example I want To Make CopyFile "Resume_1_A4.docx" And Rename it to "Resume_1_Letter.docx" After Install Repack |
Quote:
Make a batch file for required function and run it post installation... |
Afair ,innosetup have a builtin copy command.
I used it once before. Or im getting old ?! |
|
Quote:
How i use it ,, in isdone script or original script i a can not appy it |
Quote:
@echo off COPY /-y "{app}\openingmovie.bk2" "{app}\openingmovie_hi.bk2" but {app} dont work with installation can you tell me how do it ? |
Quote:
Code:
FileCopy(ExpandConstant('{app}\openingmovie.bk2'), ExpandConstant('{app}\openingmovie_hi.bk2'), False);You can also use something like this Code:
[ Code]You have to use one of the the above codes somewhere after install procedure (at the time when the game is installed, like on finish page). |
Quote:
cause i use first as [Run] Filename: FileCopy(ExpandConstant('{app}\openingmovie.bk2'), ExpandConstant('{app}\openingmovie_hi.bk2'), False); and dont work ,,, thanks for your replay and help |
Both of the codes you have to use in [Code] section.
|
Quote:
|
[Code]
procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssDone then FileCopy(ExpandConstant('{app}\openingmovie.bk2'), ExpandConstant('{app}\openingmovie_hi.bk2'), False); end; |
| All times are GMT -7. The time now is 10:55. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com