#1
|
|||
|
|||
How make Copy Function in InnoSetup
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 |
Sponsored Links |
#2
|
||||
|
||||
Quote:
Make a batch file for required function and run it post installation... |
The Following User Says Thank You to bunti_o4u For This Useful Post: | ||
oltjon (05-10-2019) |
#3
|
|||
|
|||
Afair ,innosetup have a builtin copy command.
I used it once before. Or im getting old ?! |
#4
|
||||
|
||||
__________________
Haters gonna hate
|
#5
|
|||
|
|||
Quote:
How i use it ,, in isdone script or original script i a can not appy it |
#6
|
|||
|
|||
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 ? Last edited by ZAZA4EVER; 05-10-2019 at 04:44. |
#7
|
||||
|
||||
Quote:
Code:
FileCopy(ExpandConstant('{app}\openingmovie.bk2'), ExpandConstant('{app}\openingmovie_hi.bk2'), False); You can also use something like this Code:
[ Code] var ResultCode: Integer; ShellExec('open', 'cmd.exe', '/c copy /Y "' + ExpandConstant('{app}\openingmovie.bk2') + '" "' + ExpandConstant('{app}\openingmovie_hi.bk2') + '"', '', SW_Hide, ewWaitUntilTerminated, ResultCode); 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).
__________________
Haters gonna hate
Last edited by KaktoR; 05-10-2019 at 04:59. |
#8
|
|||
|
|||
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 |
The Following User Says Thank You to ZAZA4EVER For This Useful Post: | ||
mubbii (06-10-2019) |
#9
|
||||
|
||||
Both of the codes you have to use in [Code] section.
__________________
Haters gonna hate
|
The Following User Says Thank You to KaktoR For This Useful Post: | ||
ZAZA4EVER (05-10-2019) |
#10
|
|||
|
|||
can you write code for me in script and upload it.. cause i try and fail
|
#11
|
||||
|
||||
[Code]
procedure CurStepChanged(CurStep: TSetupStep); begin if CurStep = ssDone then FileCopy(ExpandConstant('{app}\openingmovie.bk2'), ExpandConstant('{app}\openingmovie_hi.bk2'), False); end; |
The Following 5 Users Say Thank You to Razor12911 For This Useful Post: | ||
Harsh ojha (08-10-2019), mubbii (06-10-2019), ShivShubh (23-11-2019), y_thelastknight (07-10-2019), ZAZA4EVER (06-10-2019) |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |
Please explain to me how to make a copy PLEASE!! | AlexMcCallum | PSX Games | 8 | 03-02-2002 13:28 |
Is it possble to make a copy of a copy? | nuhnya | DC Games | 1 | 19-06-2001 18:34 |
Is it possible to make a Copy of a Copy? | DYnamo | PSX Games | 3 | 10-06-2001 07:18 |
How to make perfect copy of Project IGI UK version | Raks55 | PC Games | 2 | 18-12-2000 05:39 |