This repository contains the code for the CODEX installer and the tools required to build it
-
tooling/: Contains necessary tools and dependencies.
InnoSetupEE/
: Enhanced edition of Inno Setup with additional features.UltraARC/
: Tool used for compressing files to bin files.InnoUnp/
: Tool that lets you unpack other InnoSetup installers.
-
installer/: Inno Setup scripts for creating custom installers.
src/
: Contains the source code for the installer.
-
Using Inno Setup Enhanced Edition:
- Navigate to
tooling/InnoSetupEE/
. - Run
Compil32.exe
to open the enhanced edition of Inno Setup. - Go to
File -> Open
and navigateinstaller/src
. - Open
setup.iss
and now you can modify the installer.
- Navigate to
-
Testing and Compiling:
- To test your changes you can press
F9
or click the Run button. - To compile the installer, you can press
CTRL+F9
or press the Compile button. - If you want to modify one of the styles in
src/installer/Include/Style
, you need RAD Studio.
- To test your changes you can press
-
Adding the Game Files:
- In the code, change the defines like Game, GameExe, NeedSize and so on.
- Compile the Setup, it will show up in
DISTRIBUTABLE
. - Add additional crack files to
DISTRIBUTABLE/CODEX
if needed. - Otherwise delete it or make it empty.
- Navigate to
tooling/UltraARC/
and runUltraARC.exe
. - Select the game folder as Source folder.
- Select
DISTRIBUTABLE
as First Volume Content. - Choose some Output folder where the finilized bundle will go.
- Switch to the
Options
tab and underMethods
, checkLZMA
. - Switch to the
Output
tab and change Archive Prefix tosetup-
and Extension tobin
. - You can play with some options here and there to achieve better compression.
- If you select CD Image to bundle into
.iso
, you can add an icon inOptions -> CD Image
. - The icon can be found in the root of the project.
-
IMPORTANT:
UltraARC
may split one of the bins into two or more parts akasetup-2a
andsetup-2b
for example.- If this happens, you have to fiddle with the
Thershold Percent
option underOutput
tab. - The installer doesn't know how to deal with parted archives.
-
Additional Information:
- You can easily switch between different group graphics.
- In
setup.iss
changeStyle
toPLAZA/RUNE
. - There are more styles to choose from in
src/installer/Include/Style
. - Change
GroupName
to the same. - Don't forget to change the crack direcotry name.
- Set
LogoGroup
to 7 andIconGroup
to 2 for PLAZA. - Set logo to 8 and icon to 3 for RUNE.
- You can also change the music to PLAZA/RUNE by changin
MusicGroup
.
Feel free to contribute by submitting pull requests or reporting issues in the repository.
All credits goes to the amazing guys from FileForums
- Rinaldo: Original Code
- Jiva: Fixed CODEX version used in this repo
- Razor12911 Fixed the Enhanced Edition and added several features