FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Tutorial using CI 8.0.0 (https://fileforums.com/showthread.php?t=92805)

BAMsE 21-10-2012 14:37

1 Attachment(s)
Wait... you prepared cab with such commandline
Code:

arc a -ep1 -ed -r -w.\ Data\Data1.cab -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "PATH TO BE COMPRESSED"
and use
Code:

[InstallOptions]
PrecompVer=0.42

in setup.ini? It can't work! It's for old method data.arc ---> data.pcf ---> data.srep ---> data.cab
For one-step commandline compression you should use
Code:

[InstallOptions]
PrecompVer=inside

Any errors are result of absence/incorrect versions of files.

Here is a package containing all necessary files.
1. extract it anywhere
2. drag'n'drop the folder which content you want to compress to #compress.bat (use some small for testing)
3. put in your setup.ini
Code:

[InstallOptions]
PrecompVer=inside

4. don't use "PrecSrep:1" under [ExtractSettings]
5. pack arc.ini from this package to the root of your setup.cab

kassane 22-10-2012 08:14

The two methods, not out of 10.1%. but previously, I discovered that the problem of compression does not work, arc.exe was corrupted!

Only 10.1%:
http://imageshack.us/scaled/landing/821/semttuloisb.jpg
But unfortunately the problem this compression:
Code:

arc a -ep1 -ed -r -w.\ Data\Data1.cab -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "PATH TO BE COMPRESSED"
At the end data1.cab not appear, some completely...

Newbie 22-10-2012 10:07

What does this mean:
Could not get file size of file temp000000001.dat_

Why do I get that.

Any reason for that.

What I can see is that I get that message NOT at the same place of compression.

Sorry, don't know how to explain.

Bat code:
echo off
:start
cls
set choice1=
set arc=
set retry=
echo.
set /p choice1=Please type game folder path (e.g. c:\Game):
if "%choice1%"=="" goto start
echo.
echo Creating archive files, please wait...
:Data1
set arc=Data1.bin
arc a -ep1 -r -w.\ .\Disk1\%arc% -mprecomp:zl98:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc 1000:lc8 "%choice1%\Data\*"
if ERRORLEVEL 1 goto arcfail
echo.All done.
pause
goto EOF
:arcfail
echo.
echo.WARNING: FreeArc returns an error in archive %arc%!
set /p retry=Do you wish to retry [Y/N]:
if /I "%retry%"=="Y" goto %arc:~0,5%
pause
:EOF


Thank You

EDIT:

Forgot to mention, it is while using Packjpg.dll compression.

BAMsE 22-10-2012 12:41

kassane I really don't understand what you're saying :o
Did you got any error massage?
And I've told you to take some small piece of data for testing, not few GB :eek:

Newbie 22-10-2012 12:52

EDIT: Well, it looks like it all works fine.

kassane 22-10-2012 13:24

Quote:

Originally Posted by BAMsE (Post 408624)
kassane I really don't understand what you're saying :o
Did you got any error massage?
And I've told you to take some small piece of data for testing, not few GB :eek:

After ending the compression, the file Data.cab disappears ... understand?
You can create a batch code of arc+precomp038+srep+arc?

kumarvivek1990 23-10-2012 06:44

How can i convert Data1.arc to Data1.cab using freearc?

BAMsE 23-10-2012 10:28

kassane well... dozens of people haven't problem with this set of compressors, like with this commandline... so draw a conclusion

First:
Quote:

Originally Posted by kassane (Post 408585)
The two methods, not out of 10.1%. but previously, I discovered that the problem of compression does not work, arc.exe was corrupted!

Only 10.1%:
http://imageshack.us/scaled/landing/821/semttuloisb.jpg

It's not out of 10.1% because you are compressing a lot of GB of data. 10.1% is arc.exe progress, but look at your screen - there is 57.14% of precomp progress and the process still goes on!
I say it once again and last time: use a few MB of data for testing, don't compress whole game, because you're wasting time. Moreover not all files are eligible for precomping

Second:
Quote:

Originally Posted by kassane (Post 408629)
After ending the compression, the file Data.cab disappears ... understand?

Did you use my set of compressors and my commandline when your archive vanished? Did you look for it in both folders (with compressed data and with compressors)? Did you got any errors? Process goes to the end with ErrorLevel=0?

kassane 23-10-2012 12:03

BAMsE, I noticed better and saw this problem:
http://imageshack.us/a/img805/8982/semttulojaa.jpg
And also appears Errorlevel=2...
What do I do?

BAMsE 23-10-2012 12:18

ErrorLevel=2 means there is no streams that could be decompressed. Simplifying - there's no benefit using precomp.

But about access problem... hmmm it's first time I see this, I have no idea what's happened. Seems the tmp file is still on hdd (if not the ErrorLevel=4), so maybe it was inspected by your AV at this time :confused:

Did you found your output archive? Did you test it in CI?

kassane 23-10-2012 12:31

The problem is that with this error the cab file is not created, so I can not test it on CI!
I did some testing here on my computer, and realized that the precomp038 functioned normally, only precomp042 that give this error ... Then I try to test the precomp043 if error or not, talk to the developer precomp!

Edit:
I tested the precomp043 and it worked, but unfortunately the CI is not adapted for this precomp...

Precomp043:
http://imageshack.us/scaled/landing/27/precomp043.jpg

Arc.ini
Code:

[External compressor:precomp]
header = 0
packcmd  = precomp -intense0 -cb {options} -o$$arcpackedfile$$.tmp  $$arcdatafile$$.tmp
unpackcmd = precomp -o$$arcdatafile$$.tmp -r $$arcpackedfile$$.tmp


BAMsE 23-10-2012 14:30

If you experienced the file access problem always at the same position you can force precomp to avoid it. Just add to your compress definition
Code:

-mprecomp:v:i169529374+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
where 169529374 is position of last found stream before the problem occurs (see your scr).

Take some JPGs and try to compress them - they're well-precomped and shouldn't cause any error. If it worked, most likely cause of the error is data type you want to compress before. As I said: not all files are eligible for precomping

BTW: use -c- parameter instead of -cb for precomp. The first leaves output file non compressed (so it can be well-srepped), second compress output with bZip2 (poorly-srepped)

Joe Forster/STA 24-10-2012 04:02

@kassane: Oh, please, not red on black, it's completely unreadable!

kassane 24-10-2012 04:24

I'm sorry, the next show with color red....

Note: BAMsE, I just use the code, "-cb" in precomp043 in version 042 "-c-".

Edit:
I have two news, one good and one bad:

Good News: The new code that you showed me, solved the problem of errorlevel = 2 / errorlevel = 0 ... The Data.cab is created. :)
Code:

-mprecomp:v:i169529374+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
Bad news: The CI does not accept, and is giving error: :(
http://imageshack.us/scaled/landing/145/semttuloumx.jpg

BAMsE 24-10-2012 12:21

kassane maybe it's silly question, because I've said it dozens of times, but... did you set PrecompVer=inside in your setup.ini?

kassane 24-10-2012 12:48

Code:

PrecompVer=0.42

BAMsE 24-10-2012 12:51

So, please, set it to PrecompVer=inside

kassane 24-10-2012 13:11

Code:

PrecompVer=inside
Code:

-mprecomp:v:i169529374+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
Thx :D Problem Solved!!
Sorry for disturbing your time...

BAMsE 24-10-2012 13:30

Well. Let me recap:
Quote:

Originally Posted by BAMsE (21-10-2012, 16:59) (Post 408521)
Probably wrong version of some compressor file or absence of arc.ini. You need arc.exe (0.67), precomp.exe plus its files (0.4.2), srep.exe (3.0) and arc.ini included in yener90's setup.cab. This ini must be placed in the root of your setup.cab too

Quote:

Originally Posted by BAMsE (21-10-2012, 22:19) (Post 408546)
kassane

First: don't quote previous post

Second: you need to add to your setup.ini the following line
Code:

[InstallOptions]
PrecompVer=inside

Should be OK

Everything was sad 3 days earlier and 2 pages ago. Next time you'll need help please read answers carefully and follow instructions exactly.

kassane 24-10-2012 14:21

Code:

arc a -ep1 -ed -r -w.\ Data\Data1.cab -mprecomp:v+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
Doubt: The old code stopped above gives error, after I put this code below: I tested the CI and it worked...
Code:

if ERRORLEVEL 2 goto arcfail
Did it change anything? That has nothing to do?

Brazilica 27-10-2012 03:58

Is there a way to modify the time for the background images ?

BAMsE 27-10-2012 04:56

kassane in my opinion if you got an error whole process can't be done properly. To avoid precomp errors look here once again

REV0 27-10-2012 05:03

Quote:

Originally Posted by Brazilica (Post 408991)
Is there a way to modify the time for the background images ?

nope

REV0 30-10-2012 00:58

Sorry for dumb question but...

'' -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 '' can someone tell me what's the problem with this ?

no precomp, only srep,


[InstallOptions]
PrecompVer=inside

[ExtractSettings]
FreeArcFile1={src}\Data1.bin;DestDir:{app};Disk:1; PrecSrep:1

These values in setup.ini, also tried without PrecSrep value above, same:

-2, Unsupported compression method, blabla

Actually it's the same error with kassane's but tried the methods Bamse said, no go.

I'm trying to figure this out since couple of days and it started to pissing me off http://swngz.com/images/smilies/smilies%20v3/die.gif

BAMsE 30-10-2012 12:28

I've just tested it with CI 8.5.7.4 and it works. Didn't you forget to include arc.ini in your setup.cab?

And btw not Bamse but BAMsE :p

REV0 30-10-2012 14:29

Quote:

Originally Posted by BAMsE (Post 409162)
I've just tested it with CI 8.5.7.4 and it works. Didn't you forget to include arc.ini in your setup.cab?

And btw not Bamse but BAMsE :p

ok, BAMsE :D

Tried it as well, didnt work

Did you try this code ?:

arc a -ep1 -r -w.\ .\Disk1\Data1.cab -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%"

and no precsrep value in extractsettings like you said

BAMsE 30-10-2012 15:08

Yes, it works for me.
I'm using compressors package from here, also including arc.ini from this package into root of setup.cab. In setup.ini
Code:

[InstallOptions]
PrecompVer=inside

[ExtractSettings]
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1


REV0 30-10-2012 16:10

Quote:

Originally Posted by BAMsE (Post 409174)
Yes, it works for me.
I'm using compressors package from here, also including arc.ini from this package into root of setup.cab. In setup.ini
Code:

[InstallOptions]
PrecompVer=inside

[ExtractSettings]
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1


That's incredible, i even downloaded yener's sherlock holmes 2 setup directly, put ini file in the cab, added the values you gave above, and yet same error...

Your compression archive in one folder, along the bat i made, in second folder thare are setup components, ico etc. It creates the cab file, but when it comes to installation got the same

http://i.imgur.com/hoTNR.png

Compiler 31-10-2012 01:24

Is it possible to compress a game and put it inside/include with SETUP1.bin(so that there is no need of data.cab in setup folder) ?

#define Internal is not working for me,I edited it on both the .iss files and I have "Setup" folder with all required files,but still no luck.Help.

kassane 31-10-2012 10:28

Quote:

Originally Posted by REV0 (Post 409176)
That's incredible, i even downloaded yener's sherlock holmes 2 setup directly, put ini file in the cab, added the values you gave above, and yet same error...

Your compression archive in one folder, along the bat i made, in second folder thare are setup components, ico etc. It creates the cab file, but when it comes to installation got the same

http://i.imgur.com/hoTNR.png

Have you ever tried to fix ISDone.dll?
When I was having this problem, I also checked it and fix...
http://www.dll-files.com/dllindex/dl...s.shtml?isdone

BAMsE 31-10-2012 10:57

1 Attachment(s)
REV0 I have no clue why you get this error. See attached video

REV0 31-10-2012 13:21

Quote:

Originally Posted by BAMsE (Post 409229)
REV0 I have no clue why you get this error. See attached video

Did it, finally. You'll never believe where i was copying PrecompVer value. EPIC FAIL of the year, obviously.

Thank you very much friend

Brazilica 07-11-2012 07:51

Can i make my installer contain only the "Default Installation", "Custom Installation", "Music On/Off" and "Cancel" buttons without the text " Welcome to xxx Setup Wizard" "This will install xxx on your Computer..." ?

Gorki 07-11-2012 09:01

Is it possible to suppress tray notification icon when launching setup? I'm still learning so please forgive my ignorance. :o

Newbie 07-11-2012 09:18

I have the same question as Brazilica.

I would like to have "chose install path" Screen only.

Is that possible and how.

Thank You

shanrq 16-11-2012 11:51

can some one tell me what meaning of this word: arc a -ep1 -r -w
need info for this thing "-ep1", "-r" "-w" "-ed" "m3"
or maybe you can just give me where i can get any documentation about it.

-thx

Onizuka87k 16-11-2012 16:18

Quote:

Originally Posted by shanrq (Post 410077)
can some one tell me what meaning of this word: arc a -ep1 -r -w
need info for this thing "-ep1", "-r" "-w" "-ed" "m3"
or maybe you can just give me where i can get any documentation about it.

-thx

Arc (Arc.exe) is the compressor executable, the other words are just the parameters for its commands and options.
Quote:

Usage: Arc command [options...] archive [files... @listfiles...]
If you run arc (from command line) you can see the help file, specifically:
Quote:

  • a: add files to archive
  • -ed: don't add empty dirs to archive
  • -epMODE: Exclude/expand path MODE
  • -mMETHOD: compression METHOD (-m0..-m9, -m1x..-m9x)
  • -r: recursively collect files
  • -wDIRECTORY: DIRECTORY for temporary files


shanrq 17-11-2012 01:27

unfortunately documentation on freearc.org is in russian language... can you give me where freearc documentation manual in english..
more question :p
what best tools for registry catcher beside regshot and regmapp and tools for exporting capturing reg to inno setup
-thx again..

pakrat2k2 17-11-2012 07:28

Quote:

Originally Posted by shanrq (Post 410106)
unfortunately documentation on freearc.org is in russian language... can you give me where freearc documentation manual in english..
more question :p
what best tools for registry catcher beside regshot and regmapp and tools for exporting capturing reg to inno setup
-thx again..


see useful programs topic for reg to inno converter
http://fileforums.com/showthread.php?t=92995

You still need to have the registry entry(s) exported into file for the converter to change them into reg entries for inno script.

GKP0888 26-11-2012 10:44

can anybody give me a detail about system check in setup.ini file...
about it's values.. which one is for XP, Vista, 7,or even for win 8 ?
thx. still a little confuse about them....


All times are GMT -7. The time now is 06:27.

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