exe shrink tutorial.
|
Exe shrinker is a runtime style system for darkbasic pro exes. Dlls are not stored in the exe but instead sourced from an external location.
This allows many exes to share the same dlls freeing up disk space. Optionally md5 checksums can be used to ensure the sourced dlls are the same as the ones the exe was originally compiled with. When the exe runs it first looks for dlls in the exe directory then if dbpro is installed it checks in the dbpro compiler directory. |
![]() Start exe shrink and load a dbpro exe by clicking the Load button. Internal files are those that will be inculded in the shrunk exe. External files are those that will be sourced from the dbpro install dir when the shrunk exe is run. The program will attempt to guess which files should go where but will occasionally get it wrong. You can move files by right clicking on them and selecting Move to Internal/External. |
Next decide if you want to include checksums for external files.
If selected a md5 checksum of the file will be inculded in the shrunk exe. When this exe is run it will check the files it sources from the dbpro install dir match the md5 checksum. If the checksums do not match the user will be asked if they want to continue running the exe. |
Now you can create the shrunk exe. Click the build button and choose where to save it.
|
If you want to conver the shrunk exe back to a full size exe dark explorer
can be used.
Load the shrunk exe in dark explorer and select tools -> Decompress Exe. Dark explorer will then decompress the exe using the same method it uses to decompress exes compiled with the compress media option. |