CODEX-Installer
CODEX-Installer copied to clipboard
The original code for CODEX installer
CODEX Installer + build tools
This repository contains the code for the CODEX installer and the tools required to build it
Directory Structure
-
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.
Getting Started
-
Using Inno Setup Enhanced Edition:
- Navigate to
tooling/InnoSetupEE/. - Run
Compil32.exeto open the enhanced edition of Inno Setup. - Go to
File -> Openand navigateinstaller/src. - Open
setup.issand now you can modify the installer.
- Navigate to
-
Testing and Compiling:
- To test your changes you can press
F9or click the Run button. - To compile the installer, you can press
CTRL+F9or 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/CODEXif needed. - Otherwise delete it or make it empty.
- Navigate to
tooling/UltraARC/and runUltraARC.exe. - Select the game folder as Source folder.
- Select
DISTRIBUTABLEas First Volume Content. - Choose some Output folder where the finilized bundle will go.
- Switch to the
Optionstab and underMethods, checkLZMA. - Switch to the
Outputtab 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:
UltraARCmay split one of the bins into two or more parts akasetup-2aandsetup-2bfor example.- If this happens, you have to fiddle with the
Thershold Percentoption underOutputtab. - The installer doesn't know how to deal with parted archives.
-
Additional Information:
- You can easily switch between different group graphics.
- In
setup.isschangeStyletoPLAZA/RUNE. - There are more styles to choose from in
src/installer/Include/Style. - Change
GroupNameto the same. - Don't forget to change the crack direcotry name.
- Set
LogoGroupto 7 andIconGroupto 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.
Contributing
Feel free to contribute by submitting pull requests or reporting issues in the repository.
Credits
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