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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17-04-2021, 20:19
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
code change is neccessary for this



In latest version asis will use whatever you put inside setup.dll.

asis itself doesn't have any compressor settings anymore.
Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it
Reply With Quote
Sponsored Links
  #2  
Old 17-04-2021, 21:16
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by L33THAK0R View Post
Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it
Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.

In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.

The standard INI file names are:
Code:
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.
and
Code:
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.
P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
L33THAK0R (18-04-2021), pratikpatel8982 (29-04-2021)
  #3  
Old 18-04-2021, 02:57
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.

In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.

The standard INI file names are:
Code:
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.
and
Code:
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.
P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.
I understand all this but what I mean is where physically should "setup.dll" be present when making the .exe with ASIS, or is it not included inside of the .exe generated by ASIS?
Reply With Quote
  #4  
Old 18-04-2021, 05:17
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by L33THAK0R View Post
I understand all this but what I mean is where physically should "setup.dll" be present when making the .exe with ASIS, or is it not included inside of the .exe generated by ASIS?
I had already answered before...
Setup.dll must be next to Setup.exe (Same folder) when starting the decompression using ASIS.

Complementing the answer, for those who did not understand:
Setup.dll is not needed before build Setup.exe.
ASIS will check if there is a file with the same name as the executable, but with a .dll extension and will extract it using UnArc.dll/IsDone.dll.
Only these 2 libraries are included in ASIS and are required prior to build Setup.exe.
Nothing else is needed inside Setup.exe during the build of Setup.exe.
Reply With Quote
  #5  
Old 18-04-2021, 16:39
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
I had already answered before...
Setup.dll must be next to Setup.exe (Same folder) when starting the decompression using ASIS.

Complementing the answer, for those who did not understand:
Setup.dll is not needed before build Setup.exe.
ASIS will check if there is a file with the same name as the executable, but with a .dll extension and will extract it using UnArc.dll/IsDone.dll.
Only these 2 libraries are included in ASIS and are required prior to build Setup.exe.
Nothing else is needed inside Setup.exe during the build of Setup.exe.
Ah alright, sorry was just hoping that'd it'd be possible to put the needed resources inside of the ASIS generated .exe, as was possible with v7.2.0.0, guess I won't be using v7.2.2.0+ lol
Reply With Quote
  #6  
Old 19-04-2021, 04:01
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by L33THAK0R View Post
Ah alright, sorry was just hoping that'd it'd be possible to put the needed resources inside of the ASIS generated .exe, as was possible with v7.2.0.0, guess I won't be using v7.2.2.0+ lol
If version 7.2.0.0 is working well for you, great ...
Older versions may contain a bug that may have been fixed in the newer version.

If you want you can include the Setup.dll file internally from Setup.exe just by adding 4 lines to the script (red lines below). But you must first create Setup.dll and include it with scritp.iss before compiling Setup.exe. To do this, change it in the script:
In the [Files] section add.
Code:
[Files]
....
///////////////////////////////////////////////////////////////////////////////////////////
//////////////// FreeArc/ISDone Files /////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
Source: "{#SetupSetting("OutputBaseFilename")}.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy nocompression

Source: "Resources\Includes\UnArc.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
Source: "Resources\Includes\ISDone.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
In the [Code] section, locate for "procedure UltraARC_Process;" and add the line:
Code:
procedure UltraARC_Process;
var
  Data: Array of TData;
  I, MsgResult: Integer;
  SourceDir, DataFile: String;
  #if UseComponents == "1"
  ComponentFile: String;
  #endif
  SysInfo: TSystemInfo;
  Threads: Integer;
begin
  ExtractTemporaryFile('{#SetupSetting("OutputBaseFilename")}.dll');
  if CompareText('{#SetupSetting("OutputBaseFilename")}.dll', ExtractFileName(ChangeFileExt(ExpandConstant('{srcexe}'), '.dll'))) <> 0 then
    FileCopy(ExpandConstant('{tmp}\{#SetupSetting("OutputBaseFilename")}.dll'), ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{srcexe}'), '.dll')), False);

  //BEGIN - DISK SPAN GUI CHANGES
  I := 1;
  ISDoneError := False;
  ExtractTemporaryFile('UnArc.dll');
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
Flzzy (19-05-2021), L33THAK0R (19-04-2021), pratikpatel8982 (28-04-2021)
  #7  
Old 19-04-2021, 06:23
L33THAK0R's Avatar
L33THAK0R L33THAK0R is offline
Registered User
 
Join Date: Feb 2021
Location: Saudi Arabia
Posts: 406
Thanks: 137
Thanked 117 Times in 70 Posts
L33THAK0R is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
If version 7.2.0.0 is working well for you, great ...
Older versions may contain a bug that may have been fixed in the newer version.

If you want you can include the Setup.dll file internally from Setup.exe just by adding 4 lines to the script (red lines below). But you must first create Setup.dll and include it with scritp.iss before compiling Setup.exe. To do this, change it in the script:
In the [Files] section add.
Code:
[Files]
....
///////////////////////////////////////////////////////////////////////////////////////////
//////////////// FreeArc/ISDone Files /////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
Source: "{#SetupSetting("OutputBaseFilename")}.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy nocompression

Source: "Resources\Includes\UnArc.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
Source: "Resources\Includes\ISDone.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
In the [Code] section, locate for "procedure UltraARC_Process;" and add the line:
Code:
procedure UltraARC_Process;
var
  Data: Array of TData;
  I, MsgResult: Integer;
  SourceDir, DataFile: String;
  #if UseComponents == "1"
  ComponentFile: String;
  #endif
  SysInfo: TSystemInfo;
  Threads: Integer;
begin
  ExtractTemporaryFile('{#SetupSetting("OutputBaseFilename")}.dll');
  if CompareText('{#SetupSetting("OutputBaseFilename")}.dll', ExtractFileName(ChangeFileExt(ExpandConstant('{srcexe}'), '.dll'))) <> 0 then
    FileCopy(ExpandConstant('{tmp}\{#SetupSetting("OutputBaseFilename")}.dll'), ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{srcexe}'), '.dll')), False);

  //BEGIN - DISK SPAN GUI CHANGES
  I := 1;
  ISDoneError := False;
  ExtractTemporaryFile('UnArc.dll');

Thank you for being so patient with me man, really appreciate this, I wish I was more competent with python or whatever the script is written in, so that I could save you the trouble of doing this, thanks once again man, you're a hero!
Reply With Quote
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 10:45.


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