Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-10-2019, 03:35
ZAZA4EVER ZAZA4EVER is offline
Registered User
 
Join Date: Oct 2016
Location: egypt
Posts: 179
Thanks: 615
Thanked 201 Times in 73 Posts
ZAZA4EVER is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
function FileCopy(const '{app}\openingmovie.bk2', '{app}\openingmovie_hi.bk2': String; const FailIfExists: Boolean): Boolean;

How i use it ,, in isdone script or original script i a can not appy it
Reply With Quote
Sponsored Links
  #2  
Old 05-10-2019, 04:51
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,731
Thanks: 1,111
Thanked 7,396 Times in 2,866 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by ZAZA4EVER View Post
function FileCopy(const '{app}\openingmovie.bk2', '{app}\openingmovie_hi.bk2': String; const FailIfExists: Boolean): Boolean;

How i use it ,, in isdone script or original script i a can not appy it

Code:
FileCopy(ExpandConstant('{app}\openingmovie.bk2'), ExpandConstant('{app}\openingmovie_hi.bk2'), False);
Boolean is always 'True' or '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);
In this example inno setup use cmd.exe from windows os and use it to copy a file with parameters /c /y


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.
Reply With Quote
  #3  
Old 05-10-2019, 05:50
ZAZA4EVER ZAZA4EVER is offline
Registered User
 
Join Date: Oct 2016
Location: egypt
Posts: 179
Thanks: 615
Thanked 201 Times in 73 Posts
ZAZA4EVER is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Code:
FileCopy(ExpandConstant('{app}\openingmovie.bk2'), ExpandConstant('{app}\openingmovie_hi.bk2'), False);
Boolean is always 'True' or '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);
In this example inno setup use cmd.exe from windows os and use it to copy a file with parameters /c /y


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).
can you tell me ,, where i can add this lines in script
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
Reply With Quote
The Following User Says Thank You to ZAZA4EVER For This Useful Post:
mubbii (06-10-2019)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 03:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com