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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28-12-2023, 12:51
statics statics is offline
Registered User
 
Join Date: Dec 2023
Location: Brazil
Posts: 3
Thanks: 4
Thanked 1 Time in 1 Post
statics is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Not supported this way.

However you could save all actions for different games in a single bat file and use
Code:
if
command.

Open CMD.exe and type
Code:
if /?
to get additional help there.
I did a "Frankenstein" in the script, and I managed to make it work, in a pretty horrible way hahaha
Then I will try to improve the code...
Code:
      
if IsComponentChecked(2) and not IsDoneError then
      begin
        PercentLabel.Hide;
        ElapsedLabel.Hide;
        RemainingLabel.Hide;
        if FileExists(ExpandConstant('{tmp}\xdelta3.exe')) then
        begin
          FileCopy(ExpandConstant('{tmp}\xdelta3.exe'), ExpandConstant('{app}\xdelta3.exe'), False);
          WizardForm.FilenameLabel.Caption := ExpandConstant('{cm:BatchExecution}');
          WizardForm.FilenameLabel.Font.Size := 12;
          WizardForm.FilenameLabel.Left := WizardForm.ProgressGauge.Left;
          WizardForm.FilenameLabel.Top := WizardForm.ProgressGauge.Top;
          WizardForm.FilenameLabel.Width := WizardForm.ProgressGauge.Width;
          WizardForm.FilenameLabel.Height := WizardForm.ProgressGauge.Height;
          WizardForm.ProgressGauge.Hide;
          if FileExists(ExpandConstant('{app}\english.pak.xdelta')) then
          begin
            RenameFile(ExpandConstant('{app}\Game\Localized\english.pak'), ExpandConstant('{app}\Game\Localized\english.pak.tmp'));
            Exec(ExpandConstant('{app}\xdelta3.exe'), ' -d -B536870912 -qfs "Game\Localized\english.pak.tmp" "english.pak.xdelta" "Game\Localized\english.pak"', '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
            DeleteFile(ExpandConstant('{app}\xdelta3.exe'));
            DeleteFile(ExpandConstant('{app}\english.pak.xdelta'));
          end;
        end;
      end;
Reply With Quote
Sponsored Links
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
[Help] need Advanced Installer script with Razor1911's UltraArc module rez3vil Conversion Tutorials 3 15-04-2024 02:24
Portable Installer Inno Setup Script y_thelastknight Conversion Tutorials 59 23-10-2020 00:02
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
Simple Arc Installer 78372 Conversion Tutorials 1 15-06-2017 15:37
MSC+Srep+lzma Simple Script Example gozarck Conversion Tutorials 10 07-09-2015 16:31



All times are GMT -7. The time now is 23:18.


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