View Single Post
  #8  
Old 05-10-2019, 05:50
ZAZA4EVER ZAZA4EVER is offline
Registered User
 
Join Date: Oct 2016
Location: egypt
Posts: 179
Thanks: 615
Thanked 200 Times in 72 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)