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

Reply
 
Thread Tools Display Modes
  #1351  
Old 28-12-2023, 11:10
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,270
Thanks: 1,071
Thanked 6,847 Times in 2,582 Posts
KaktoR is on a distinguished road
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.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
statics (28-12-2023)
Sponsored Links
  #1352  
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
  #1353  
Old 17-02-2024, 12:26
ozerune ozerune is offline
Registered User
 
Join Date: Feb 2024
Location: America
Posts: 30
Thanks: 12
Thanked 0 Times in 0 Posts
ozerune is on a distinguished road
Is it at all possible to use this in combination with DiskSpan in order to make an installer that is split across multiple disks that you can insert one at a time similar to old DOS games?
Reply With Quote
  #1354  
Old 17-02-2024, 12:48
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,270
Thanks: 1,071
Thanked 6,847 Times in 2,582 Posts
KaktoR is on a distinguished road
Yes
__________________
Haters gonna hate
Reply With Quote
  #1355  
Old 17-02-2024, 14:25
ozerune ozerune is offline
Registered User
 
Join Date: Feb 2024
Location: America
Posts: 30
Thanks: 12
Thanked 0 Times in 0 Posts
ozerune is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Yes
Would you be able to give me a rough idea of what I would need to do? I understand how to make an installer with the created bin, ini, and dll files when they are in the same directory as the exe, but am not so sure as to where I should start to get ASIS reading off of disc drives.
Reply With Quote
  #1356  
Old 17-02-2024, 14:39
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,270
Thanks: 1,071
Thanked 6,847 Times in 2,582 Posts
KaktoR is on a distinguished road
Set disk size in diskspan -> compress files -> create setup.exe -> copy setup.exe to the same folder where bin files are and install
__________________
Haters gonna hate
Reply With Quote
  #1357  
Old 17-02-2024, 15:29
ozerune ozerune is offline
Registered User
 
Join Date: Feb 2024
Location: America
Posts: 30
Thanks: 12
Thanked 0 Times in 0 Posts
ozerune is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Set disk size in diskspan -> compress files -> create setup.exe -> copy setup.exe to the same folder where bin files are and install
I understand that much, but I want to have all of the setup and bin files on separate DVDs inserted one at a time. Say for example I have portal 2 split up into 2 bin files. I want 1 bin file, Setup.dll, Records.ini, and Setup.exe on one DVD. The install process will start as usual, but when the first bin is done extracting, get prompted to remove the DVD and insert Disc 2. Hopefully that example gives a better idea of what I'm asking is possible
Reply With Quote
  #1358  
Old 17-02-2024, 16:00
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,270
Thanks: 1,071
Thanked 6,847 Times in 2,582 Posts
KaktoR is on a distinguished road
Then just move second bin file to another folder. Setup will ask for that file if first bin file is finished.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
ozerune (17-02-2024)
  #1359  
Old 17-02-2024, 19:37
ozerune ozerune is offline
Registered User
 
Join Date: Feb 2024
Location: America
Posts: 30
Thanks: 12
Thanked 0 Times in 0 Posts
ozerune is on a distinguished road
That did it, thank you so much!
Reply With Quote
  #1360  
Old 08-04-2024, 05:27
wareck wareck is offline
Registered User
 
Join Date: Dec 2017
Location: france
Posts: 14
Thanks: 4
Thanked 4 Times in 1 Post
wareck is on a distinguished road
execute command during decompress

Hello
Can you help me fo this :

I would like to start a command line during decompress
unpack data-1a-01.bin
execute commande like wemtool
continue to unpack data-1b-01.bin

with diskspan , it makes a file record.ini like this

Code:
[Record1]
Type=FreeArc_Original
Source={src}\Data1a-01.bin
Output={app}\
Disk=1
Size=4.005.985.165 bytes

[Record2]
Type=Exec_Command
Source={cmd}
Output=/C "patch.bat"
Disk=1

[Record3]
Type=FreeArc_Original
Source={src}\Data1b-01.bin
Output={app}\
Disk=1
Size=16.231.822 bytes

[InstallerSettings]
SingleDisk=1
ASIS can do this kind of things ?

Best regards
Reply With Quote
  #1361  
Old 08-04-2024, 05:31
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,270
Thanks: 1,071
Thanked 6,847 Times in 2,582 Posts
KaktoR is on a distinguished road
Use Settings.ini for this

Code:
[Batch]
Enable=1
BatchFile=Patch.bat
Setup\Patch.bat
Code:
@echo off
setlocal EnableDelayedExpansion EnableExtensions

"WemTool.exe" -d

endlocal
del "%~f0"
WemTool.exe has to be in game root folder. Patch.bat will be executed from there. Cmd will be executed on the end when all files are extracted.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Cesar82 (08-04-2024)
  #1362  
Old 13-05-2024, 10:59
Tigru Tigru is offline
Registered User
 
Join Date: Mar 2022
Location: NA
Posts: 12
Thanks: 13
Thanked 1 Time in 1 Post
Tigru is on a distinguished road
Hello, in Registry.iss what do I have to write in ValueType for the registry type REG_BINARY and REG_DWORD? Or is string the only ValueType that works?
Reply With Quote
  #1363  
Old 13-05-2024, 11:06
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,270
Thanks: 1,071
Thanked 6,847 Times in 2,582 Posts
KaktoR is on a distinguished road
Use InnoSetup help

Code:
ValueType
The data type of the value. This must be one of the following:

none
string
expandsz
multisz
dword
qword
binary

If none (the default setting) is specified, Setup will create the key but not a value. In this case the ValueData parameter is ignored.
If string is specified, Setup will create a string (REG_SZ) value.
If expandsz is specified, Setup will create an expand-string (REG_EXPAND_SZ) value.
If multisz is specified, Setup will create an multi-string (REG_MULTI_SZ) value.
If dword is specified, Setup will create a 32-bit integer (REG_DWORD) value.
If qword is specified, Setup will create a 64-bit integer (REG_QWORD) value.
If binary is specified, Setup will create a binary (REG_BINARY) value.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Tigru (14-05-2024)
  #1364  
Old 18-05-2024, 21:46
ROKA1969's Avatar
ROKA1969 ROKA1969 is offline
Registered User
 
Join Date: May 2017
Location: Poland
Posts: 27
Thanks: 6
Thanked 1 Time in 1 Post
ROKA1969 is on a distinguished road
A large number of users report this error:

RUNNING INSTALLER WITH SELECTED LANGUAGE FAILED. Code:5

What's the problem?
Reply With Quote
  #1365  
Old 18-05-2024, 23:24
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,135
Thanks: 284
Thanked 1,311 Times in 597 Posts
Masquerade is on a distinguished road
^^
The setup is blocked by windows defender / windows smartscreen. Click the unblock button in the properties of the setup.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Titeuf (19-05-2024)
Reply

Thread Tools
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 15:59.


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