Quote:
Originally Posted by AHMED SAMI
How i can Compression file used Compress Srep or Compress Precomp BY INNO SETUP
How can I use Inno Setup to Compression file using Srep or Precomp ?
|
you need a folder that contains the files for compression
Step 1
1) compress.bat
2) arc.exe
3) arc.ini
4) precomp.exe
5) Srep.exe
6) Data.lst (used to add files depending on the size, exclusion etc..
content in the forum are almost always shared in the conversions
Fabioddq, Revo etc..
-----------------------------------------------------------
Step2
compress.bat mode arc+precompress+srep+lzma 1XDVD5
Code:
echo off
:start
cls
color 1e
set choice1=
set arc=
set retry=
echo.================================================================================
echo. Select your GAME directory.
echo.
echo.================================================================================
echo.
echo.
set /p choice1= (e.g. C:\Program Files (x86)\gamedirectory):
if "%choice1%"=="" goto start
cls
echo.
echo Creating Data.cab, please wait...
echo.
:Data1
set arc=Data1.cab
if exist .\DVD_1\%arc% goto end
arc a -ep1 -r -w.\ -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 [email protected] -dp"%choice1%" .\DVD_1\%arc%
if ERRORLEVEL 1 goto arcfail
:end
echo.Finished!
C:\Program Files (x86)\gamedirectory): paste your game directory EX:
C:\Program Files (x86)\Dusty Revenge
if exist .\DVD_1\%arc% goto end =create a folder
DVD_1 and add the file conversion (
if exist = is the command to skip if the file is already in the folder.
[email protected] = excludes fle of the game that you enter in the
Data1.lst (the files to add important are the uninstall
unins000.exe and
unins000.dat).
Data1.cab = will create a file with the
.cab, but you can change it
.arc or
.bin
arc a -ep1 -r -w.\ -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 = is the compression algorithm
precompress+SREP+FreeArc+lzma (among the most powerful).
---------------------------------------------------------
end step