FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Blackbox Inno Setup Script (https://fileforums.com/showthread.php?t=94425)

assassin193 18-06-2013 21:11

Quote:

Originally Posted by pakrat2k2 (Post 419772)
edit main.iss and look for

[Languages]
Name: eng; MessagesFile: compiler ; default.isl ( without spaces to avoid emotion icons showing up )

change it to vietnamese, the isl chould be in placed is inno dir languages subfolder.
C:\Program Files (x86)\Inno Setup 5\Languages

i follow your instruction and ... :(
http://i.minus.com/ibx5wzbSDaUqVG.png
but i create folder Languges in folder Black_Box_Script_By_Kurutucu_V1.8 it actually works !!! but when i open setup.exe, font error :(

red01 18-06-2013 23:56

i run the script Main(Compact.Mode).iss

it gives me an error
Line 40:
column 1:
Identified Expected.

gamesbox796 19-06-2013 00:59

I had already use Inno setup unicode in which we can add files,folders,licence agreement directly but how to add folder of the game directly in this script which has to be extracted after installation is completed (for example in c: /program files/ubisof]

y_thelastknight 19-06-2013 01:18

Quote:

Originally Posted by red01 (Post 419776)
i run the script Main(Compact.Mode).iss

it gives me an error
Line 40:
column 1:
Identified Expected.

can you check the Error again Line 40 or 140?

what is your inno setup version ANSI or UNICODE?

red01 19-06-2013 01:31

Quote:

Originally Posted by y_thelastknight (Post 419778)
can you check the Error again Line 40 or 140?

what is your inno setup version ANSI or UNICODE?

my Bad
it was line 140..
sorry again

I am using Ansi version of Innoset up.

y_thelastknight 19-06-2013 01:40

Quote:

Originally Posted by red01 (Post 419779)
my Bad
it was line 140..
sorry again

I am using Ansi version of Innoset up.

i thought

find this line and change this to
Code:

type
#ifdef UNICODE
 PChar = PAnsiChar;
#endif

this
Code:

#ifdef UNICODE
type
 PChar = PAnsiChar;
#endif


kostaskaraivalis 19-06-2013 02:31

Quote:

Originally Posted by y_thelastknight (Post 419780)
find that line and change it into
Code:

#ifdef UNICODE
type
 PChar = PAnsiChar;
#endif


I was getting the exact same error, but I was waiting for someone else to make that question..
Many thanks y_thelastknight!

red01 19-06-2013 02:58

Quote:

Originally Posted by y_thelastknight (Post 419780)
i thought

find this line and change this to
Code:

type
#ifdef UNICODE
 PChar = PAnsiChar;
#endif

this
Code:

#ifdef UNICODE
type
 PChar = PAnsiChar;
#endif


Thanks @thelastknight,
this solved my problem.


I have a little question to ask again.

I use classical method of compression
i.e. freearc (-m0)>precomp>srep>freearc (-mx) >innosetup.

lets assume my data file is data1.arc (after final -mx compression).

What changes i have to make in archieves.ini for this method of compression.?

sentinelks 19-06-2013 05:43

Quote:

Originally Posted by assassin193 (Post 419783)
someone help me :(



you need to add the language file -> yourlanguage.isl

sentinelks 19-06-2013 05:57

Code:

[Languages]
Name: vtm; MessagesFile: Vietnamese.isl

you should edit some things that are not there (this is only for inno setup) no script mod

kostaskaraivalis 19-06-2013 10:07

Quote:

Originally Posted by red01 (Post 419782)
I have a little question to ask again.

I use classical method of compression
i.e. freearc (-m0)>precomp>srep>freearc (-mx) >innosetup.

lets assume my data file is data1.arc (after final -mx compression).

What changes i have to make in archieves.ini for this method of compression.?

Try this assuming your compressed files have the same name "data1"
Code:

if not ISArcExtract ( 0, 33, ExpandConstant('{src}\data1.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;
if not ISSRepExtract  ( 0, 33, ExpandConstant('{app}\data1.srep'),ExpandConstant('{app}\data1.arc'), true) then break;
if not ISArcExtract ( 0, 34, ExpandConstant('{app}\data1.arc'), ExpandConstant('{app}'), '', true, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;


y_thelastknight 19-06-2013 10:22

kostaskaraivalis You missed the Precomp part..
Code:

if not ISArcExtract ( 0, 25, ExpandConstant('{src}\data1.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;
if not ISPrecompExtract( 0, 25, ExpandConstant('{app}\data1.pcf'),    ExpandConstant('{app}\data1.srep'), true) then break;
if not ISSRepExtract ( 0, 25, ExpandConstant('{app}\data1.srep'),ExpandConstant('{app}\data1.arc'), true) then break;
if not ISArcExtract ( 0, 25, ExpandConstant('{app}\data1.arc'), ExpandConstant('{app}'), '', true, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;


red01 19-06-2013 20:28

Quote:

Originally Posted by y_thelastknight (Post 419791)
kostaskaraivalis You missed the Precomp part..
Code:

if not ISArcExtract ( 0, 25, ExpandConstant('{src}\data1.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;
if not ISPrecompExtract( 0, 25, ExpandConstant('{app}\data1.pcf'),    ExpandConstant('{app}\data1.srep'), true) then break;
if not ISSRepExtract ( 0, 25, ExpandConstant('{app}\data1.srep'),ExpandConstant('{app}\data1.arc'), true) then break;
if not ISArcExtract ( 0, 25, ExpandConstant('{app}\data1.arc'), ExpandConstant('{app}'), '', true, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;



@ y_thelastknight

you and kostaskaraivalis both used different variabales in archieve.ini i.e. 0,25 (your values) and 0,33 (kostaskaraivalis 's value).

what effect those variable (in archieves.ini) make in this file or game compression.?

BTW thanks for your reply.

red01 19-06-2013 21:49

Quote:

Originally Posted by red01 (Post 419801)
@ y_thelastknight

you and kostaskaraivalis both used different variabales in archieve.ini i.e. 0,25 (your values) and 0,33 (kostaskaraivalis 's value).

what effect those variable (in archieves.ini) make in this file or game compression.?

BTW thanks for your reply.


@ y_thelastknight
sorry for trouble
i read the tutorial by Razor12911 about this script and i find out about those variables.

kostaskaraivalis 19-06-2013 22:51

Quote:

Originally Posted by y_thelastknight (Post 419791)
kostaskaraivalis You missed the Precomp part..
Code:

if not ISArcExtract ( 0, 25, ExpandConstant('{src}\data1.arc'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;
if not ISPrecompExtract( 0, 25, ExpandConstant('{app}\data1.pcf'),    ExpandConstant('{app}\data1.srep'), true) then break;
if not ISSRepExtract ( 0, 25, ExpandConstant('{app}\data1.srep'),ExpandConstant('{app}\data1.arc'), true) then break;
if not ISArcExtract ( 0, 25, ExpandConstant('{app}\data1.arc'), ExpandConstant('{app}'), '', true, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;


He said he used only Arc -m0 --> srep --> arc -mx
there is method without using precomp as well.


All times are GMT -7. The time now is 10:57.

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