PDA

View Full Version : Blackbox Inno Setup Script


Pages : [1] 2 3 4 5

Kurutucu
03-04-2013, 21:26
BlackBox Script V2 By y_thelastknight HERE (http://www.fileforums.com/showthread.php?t=95595)

jackstuff
04-04-2013, 01:32
This script based on Ansi OR Unicode?

Razor12911
04-04-2013, 01:45
this script needs some work and some permissions.

Kurutucu
04-04-2013, 03:48
this script needs some work and some permissions.

No. Don't need anything. Working...

KING2012
05-04-2013, 00:28
why in time remaining : Test Run ?

Adhays
05-04-2013, 08:44
are u have tutorial for use this conversion... sorry i'm newbie :)

Razor12911
05-04-2013, 09:02
why in time remaining : Test Run ?
because you didn't specify the progress for each archive you want to extract.

huavancuong098
06-04-2013, 07:54
can you explain to me how to compress game, i don't known how to compress with arc file in inno setup!

y_thelastknight
06-04-2013, 08:20
Updated to V1.1 (http://fileforums.com/attachment.php?attachmentid=6014&d=1365205666)


Your ISSkinex.dll doesnt support ANSI version of inno setup

Replace with attach file

Kurutucu
06-04-2013, 08:21
Your ISSkinex.dll doesnt support ANSI version of inno setup

Replace with attach file

Your ISSkinex.dll not suppport Windows 8!

pakrat2k2
06-04-2013, 08:23
can you explain to me how to compress game, i don't known how to compress with arc file in inno setup!

you use freearc to create them
www.freearc.org

Your ISSkinex.dll not suppport Windows 8!

this version was modified 6 months later ( 2011 ), y_thelastknight's file was 2010. see if it works in win8

huavancuong098
06-04-2013, 09:02
thank, Can i use funtion or value arc compress in inno setup?

altef_4
06-04-2013, 09:04
there are two versions of isskinex, one for ansi and unicode versions.

Kurutucu
06-04-2013, 09:33
there are two versions of isskinex, one for ansi and unicode versions.

Yes. I'm used for Unicode version.

huavancuong098
06-04-2013, 09:37
I want to ask about this script. This script create setup preview or create my repack with bin file? Can i create file compress.bat?

Kurutucu
06-04-2013, 16:17
I want to ask about this script. This script create setup preview or create my repack with bin file? Can i create file compress.bat?

Of course. But change ExpandConstant('{src}\arc.arc') to your bin file name. For example: ExpandConstant('{src}\data1.bin')

huavancuong098
06-04-2013, 16:42
thank, but i don't known what it mean of thí scrip. Create file bin or use compress.bat to create file. Game have many file. How can i create file bin? Use Inno to create? Sorry for my question, i'm new!

Kurutucu
06-04-2013, 17:15
You must look here: INNO TROUBLESHOOT (http://fileforums.com/showthread.php?t=93191) Because my English bad.

adiga
09-04-2013, 03:54
hi Friends
help me pliz i have some Problem
i have thes error

compiler error
file: ISDone.iss
Line 91:
Column: 94
UnKnown identifier 'PAnsiChar'

altef_4
09-04-2013, 04:59
hi Friends
help me pliz i have some Problem
i have thes error

compiler error
file: ISDone.iss
Line 91:
Column: 94
UnKnown identifier 'PAnsiChar'

i think you use ansi version of inno setup, then in [code] section find type and add this
#ifdef UNICODE
PChar = PAnsiChar;
#else
PAnsiChar = PChar;
#endif

or just rename PAnsiChar to PChar in line with error ;)

TsubasaHP
15-04-2013, 01:17
Hi, when I press Compile, The Program gave me This Error
------------------------------------------
Compiler Error

Line 44:
Couldn't open include file " C:\Program Files\Inno Setup
5\Languages\English.isl": The system cannot find the file specified.
------------------------------------------------------------------

what's the Problem?

altef_4
15-04-2013, 04:52
Hi, when I press Compile, The Program gave me This Error
------------------------------------------
Compiler Error

Line 44:
Couldn't open include file " C:\Program Files\Inno Setup
5\Languages\English.isl": The system cannot find the file specified.
------------------------------------------------------------------

what's the Problem?
this error means that you don't have file english.isl in your inno setup languages folder.

pakrat2k2
15-04-2013, 05:00
because its usually called default.isl not english.isl

TsubasaHP
15-04-2013, 08:42
this error means that you don't have file english.isl in your inno setup languages folder.

Thanks for Answers , But, No, english.isl is exist in languages folder .


because its usually called default.isl not english.isl

no, its Called English.isl

Here is Script for languages :

[Languages]
Name: eng; MessagesFile: compiler:Languages\English.isl


I'don't now What's the Problem . Everythings is Ok . But when I Press Compile, I Gave That Error .

altef_4
15-04-2013, 09:08
Thanks for Answers , But, No, english.isl is exist in languages folder .




no, its Called English.isl

Here is Script for languages :

[Languages]
Name: eng; MessagesFile: compiler:Languages\English.isl


I'don't now What's the Problem . Everythings is Ok . But when I Press Compile, I Gave That Error .

try reinstall inno setup

amgad_800
15-04-2013, 10:29
thanks buddy but i'm new to this
how to add the game image on the top please ?

Kurutucu
15-04-2013, 11:05
thanks buddy but i'm new to this
how to add the game image on the top please ?

Open Style folder. You can edit images here. Top image size 654x90. Start and finish pages image size 650x330.

Kurutucu
15-04-2013, 11:28
Updated 1.2

-Fixed some bugs and extraction problems.

pakrat2k2
15-04-2013, 16:07
Thanks for Answers , But, No, english.isl is exist in languages folder .




no, its Called English.isl

Here is Script for languages :

[Languages]
Name: eng; MessagesFile: compiler:Languages\English.isl


I'don't now What's the Problem . Everythings is Ok . But when I Press Compile, I Gave That Error .

try believing someone who speaks ENGLISH !!! the OP wrote it wrong he wrote english.isl which is WRONG ! Its supposed to be default.isl. But NOT in Languages subfolder, in root folder..

see screenshot.

it should be written:

[Languages]
Name: eng; MessagesFile: compiler\Default.isl

then it would be correct for english!

Pein46
17-04-2013, 02:30
Copy "Black_Box_Script_By_Kurutucu\Languages\English.isl" and paste to "C:\Program Files (x86)\Inno Setup 5\Languages\"

pakrat2k2
17-04-2013, 16:34
why ?

its already in its default location, just that OP didnt know what it was properly called, and wrote it wrong in the script.

mikey26
21-04-2013, 03:33
what if u just wanna use the normal compression internal compression from inno?

Razor12911
22-04-2013, 08:23
@mikey26
hopeless and hopeful at the same time.

He must upgrade script so that feature can work.

Pein46
22-04-2013, 18:28
Can you give me script for "compact view"..
http://s21.postimg.org/467zd6tlj/isdonedll.png

Razor12911
22-04-2013, 22:00
@Pein46

example:

[Code]
var
NewCheckBox: TCheckBox;

procedure WizardFormResizer(Sender: TObject);
begin
if NewCheckBox.Checked = True then
begin
WizardForm.Width:=NewWizardFormSizeX
WizardForm.Height:=NewWizardFormSizeY
end else begin
WizardForm.Width:=OldWizardFormSizeX
WizardForm.Height:=OldWizardFormSizeY
end;
end;

procedure InitializeWizard;
begin
NewCheckBox:= TCheckBox.Create(WizardForm);
with NewCheckBox do
begin
Parent:= WizardForm.InstallingPage;
Left:= SetPositionX;
Top:= SetPositionY;
Width:= SetSizeX;
Height:= SetSizeY;
Checked:= False;
OnClick:= @WizardFormResizer;
Caption := 'Compact View';
end;
end;

but you'll have to resize progressbar and lables :D

Pein46
22-04-2013, 22:54
@Razor12911

Can you modify it with my script
http://rghost.net/45490901

Razor12911
23-04-2013, 00:23
I just showed you what to do.

Post #37

felix1788
23-04-2013, 01:00
excusme sir , i'am newbie want to ask, i have error on final extract show me notice like this " It Is Not Found Any File Specified For IsarcExtract "

i dont change compres method just like this Compression=none
and i have file "setup-1a.bin"

and use default method :

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\data.arc'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

what should must i do sir ?

thx

*sorry my bad english :(

Pein46
23-04-2013, 01:11
If your arc data = "setup-1a.bin"

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\setup-1a.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

felix1788
23-04-2013, 01:34
@pein46
thx for help,
i have "setup-1a.bin - setup-1c.bin" and "setup-2a.bin - setup-2c.bin"
so,must add new code for setup-b,c too ?

have error like this when i change what you said before..
http://s23.postimg.org/yp4poaxd7/Untitled.png

Razor12911
23-04-2013, 01:36
hmm, those files must be created using freearc

Pein46
23-04-2013, 01:50
@Razor12911

[Code]
var
NewCheckBox: TCheckBox;

procedure WizardFormResizer(Sender: TObject);
begin
if NewCheckBox.Checked = True then
begin
WizardForm.Width:=NewWizardFormSizeX
WizardForm.Height:=NewWizardFormSizeY
end else begin
WizardForm.Width:=OldWizardFormSizeX
WizardForm.Height:=OldWizardFormSizeY
end;
end;

procedure InitializeWizard;
begin
NewCheckBox:= TCheckBox.Create(WizardForm);
with NewCheckBox do
begin
Parent:= WizardForm.InstallingPage;
Left:= SetPositionX;
Top:= SetPositionY;
Width:= SetSizeX;
Height:= SetSizeY;
Checked:= False;
OnClick:= @WizardFormResizer;
Caption := 'Compact View';
end;
end;

I'm still didn't know how to resize progressbar and lables..
can you?.. please..
This is my script (http://rghost.net/45490901)..

Razor12911
23-04-2013, 02:41
script with all files?

felix1788
23-04-2013, 02:46
@ Razor12911
how to keep the file can be successfully extracted, whether the script should replace ? Which part should I replace?

Razor12911
23-04-2013, 02:55
don't understand what you are asking but if you are asking how to set up archives, read base post, if asking how to remove setup-1a.bin then disable diskspanning in [Setup] but if asking how to keep file after extracting then

use this line, changes are bolded

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\setup-1a.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY) then break;

not to keep

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\setup-1a.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), PCFonFLY) then break;

Pein46
23-04-2013, 03:00
@Razor12911
This is my script (with files) (http://rghost.net/45492965)..

felix1788
23-04-2013, 03:07
@Razor12911
hmm i mean ..why always get error like this
http://s12.postimg.org/ye0egwzgt/Untitled2.png
and how to fix it ?
thx...

Pein46
23-04-2013, 03:16
@felix1788

setup-1a.bin must be packed using freearc (http://freearc.org)..

Razor12911
23-04-2013, 03:55
@Pein46

Kinda busy with a script, will your update script later on.

jksengko
23-04-2013, 07:52
Error in this (Caption:=' Shortcut will be created in following «Start?;)

pakrat2k2
23-04-2013, 10:06
should read Start Menu

Kurutucu
24-04-2013, 07:05
Updated 1.3

-Changed interface.

-Fixed text grounds.

-Added splash and logo.

-You can create images in PSD files folder with *.psd.

Kurutucu
24-04-2013, 07:19
@Razor12911
hmm i mean ..why always get error like this
http://s12.postimg.org/ye0egwzgt/Untitled2.png
and how to fix it ?
thx...

Data.cab missing. Compress your game files with freearc. For no compression use freearc -m0 method. And don't use archive password.

Razor12911
24-04-2013, 08:35
Here is Unicode

Tweaked the Script a bit.

Razor12911
24-04-2013, 08:57
@Kurutucu

Note 2:

I don't think using setup-1.bin or setup-1a.bin is a good example, Inno Setup can delete those files when you compile script because it thinks those files are created by it.

Kurutucu
24-04-2013, 08:58
@Razor12911

I know. First compile script. Then create setup-1.bin ;)

elnesr
24-04-2013, 19:43
i compress files with this method
-mprecomp+srep+lzma:a1:mfbt4:d200m:fb128:mc1000:lc8
what should i change in script to extract files ? , and how to extract more than 1 file ?
Thx :o

pakrat2k2
24-04-2013, 21:02
i compress files with this method
-mprecomp+srep+lzma:a1:mfbt4:d200m:fb128:mc1000:lc8
what should i change in script to extract files ? , and how to extract more than 1 file ?
Thx :o

find in script


if not ISArcExtract ( 0, 0, ExpandConstant('{src}\setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;

add another line for additional filenames, ALSO change ( 0, 0, ) for each additional file IE 2 files then each would be 50 ( must add up to 100 ( 0, 50,)) and so on for each additional file added.

Razor'

in script section

With GroupLbl do begin
//Transparent:=true;
Parent:=WizardForm;
//Alignment:=taCenter;
Caption:='Setup will create shortcuts in the following Start';
missing (space) Menu';

Caption:='Setup will create shortcuts in the following Start Menu';

Razor12911
24-04-2013, 21:28
@Pakrat2k2

add arc.ini :D

if not ISArcExtract ( 0, 0, ExpandConstant('{src}\setup-1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

@Kurutucu

How can you have two of
#define NeedSize "6666"
#define PrecompInside
#define SrepInside
#define precomp "0.42"
#define unrar
#define XDelta
#define PackZIP
these in the same script? you are now confusing inno.

One in main.iss and one in ISDone\ISDone.iss and both are different.

huanvip_1994
24-04-2013, 22:00
her.....
var
NewCheckBox: TCheckBox;

procedure WizardFormResizer(Sender: TObject);
begin
if NewCheckBox.Checked = True then
begin
WizardForm.Width:=NewWizardFormSizeX
WizardForm.Height:=NewWizardFormSizeY
end else begin
WizardForm.Width:=OldWizardFormSizeX
WizardForm.Height:=OldWizardFormSizeY
end;
end;

procedure InitializeWizard;
begin
NewCheckBox:= TCheckBox.Create(WizardForm);
with NewCheckBox do
begin
Parent:= WizardForm.InstallingPage;
Left:= SetPositionX;
Top:= SetPositionY;
Width:= SetSizeX;
Height:= SetSizeY;
Checked:= False;
OnClick:= @WizardFormResizer;
Caption := 'Compact View';
end;
end;

y_thelastknight
24-04-2013, 22:22
@Kurutucu

There is 2 include dir and both dir files are adding to setup
check files section both scripts isdone.iss and main.iss

Kurutucu
25-04-2013, 07:11
@y_thelastknight

Don't touch ISDone.iss. Use Main.iss for compile.

y_thelastknight
27-04-2013, 07:13
What should I do

Razor12911
27-04-2013, 07:15
hmm, I thought I fixed this bugs.

Hotfix Uploaded

y_thelastknight
27-04-2013, 07:48
ansi script is ok
but unicode have this error

jackstuff
27-04-2013, 08:04
no its works fine for me

Razor12911
27-04-2013, 08:14
@y_thelastknight

maybe you must update your ISPP Script

Copy to inno setup directory, replace if you have to.

y_thelastknight
27-04-2013, 08:50
@y_thelastknight

maybe you must update your ISPP Script

Copy to inno setup directory, replace if you have to.

works fine
thank you :)

mrmustatza1
29-04-2013, 08:41
@Kurutucu
This BlackBox script support video durring installation or pictures slideshow?(like peterf's script)

Kurutucu
29-04-2013, 08:45
@mrmustatza1

No sorry.

y_thelastknight
01-05-2013, 11:35
Black_Box_Script_By_Kurutucu_V1.4_Unicode

Support Pictures slideshow background

Replace jpg filed from Slides Folder

Recommended Resolution 1366*768

Kurutucu
01-05-2013, 15:28
@y_thelastknight

Next time:

1. Contact me.

2. Send me script.

Razor12911
03-05-2013, 03:55
Black_Box_Script_By_Kurutucu_V1.4_Unicode

Support Pictures slideshow background

Replace jpg filed from Slides Folder

Recommended Resolution 1366*768
thanks man, will show you a way to load up unlimited slides. Notify me via pm if you want that.

thedarkman
03-05-2013, 04:15
support internal compresion?

Kurutucu
03-05-2013, 07:48
@thedarkman

Not support internal compression. Because giving some problems.

adiga
04-05-2013, 05:56
Thank you Kurutucu for update inno script 1.3
but i have some problem in script
Everything is ok
i copy directx in folder Redist\directx
and c++
i want after finish Installe .. setup directx and c++
i setup game
but directx and c++ after finish don't installer
He tell me installe but it is not installe :(
any buddy can be help me ??

Kurutucu
04-05-2013, 06:47
@adiga

1. Check DirectX and Visual C++ boxes.

http://i38.tinypic.com/14wshms.jpg

2. Open main.iss. Go line 737. Check folder and filenames.

if CurStep=ssPostInstall then begin
if DirectXCB.Checked then begin
Status.Caption:='Installing DirectX...';
Status.Left := 200;
Status.Top := 200;
Status.Width := 223;
Status.Height := 20;
Exec2(ExpandConstant('{src}\Redist\DirectX\DXSETUP .exe'),'/silent',false);
end;
if NvidiaPhysx.Checked then begin
Status.Caption:='Installing Nvidia Physx...';
Status.Left := 200;
Status.Top := 200;
Status.Width := 227;
Status.Height := 20;
Exec2(ExpandConstant('{src}\Redist\PhysX.msi'),'/q',false);
end;
if VisualCCB.Checked then begin
Status.Caption:='Installing Visual C++...';
Status.Left := 200;
Status.Top := 200;
Status.Width := 227;
Status.Height := 20;
Exec2(ExpandConstant('{src}\Redist\vcredist_x86.ex e'),'/q',false);

If problem still, check commands.

Exec2(ExpandConstant('{src}\Redist\DirectX\DXSETUP .exe'),'/silent',false);

adiga
04-05-2013, 07:22
oh it work thanx man .. :D
hmmmm how can i setup (2) file
like
setup-1.bin and setup-2.bin
Where i put "setup-2.bin"
in the script pliiiiiz ^__^

Kurutucu
04-05-2013, 07:28
@adiga

Go line 699. Change it ExpandConstant('{src}\setup-1.bin') to ExpandConstant('{src}\*.bin') :)

adiga
05-05-2013, 02:48
thanx man
1-i wanna make 2 dvd's
setup-1.bin in dvd1
and setup-2.bin in dvd2
how can i edit that in script !!
........
2- how can i make logo.bmp Button in setup
when i click for logo open my website ^__^

y_thelastknight
05-05-2013, 04:10
1-i wanna make 2 dvd's
setup-1.bin in dvd1
and setup-2.bin in dvd2
how can i edit that in script !!


find this line and

if not ISArcExtract ( 0, 0, ExpandConstant('{src}\setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;

change like this

if not ISArcExtract ( 0, 50, ExpandConstant('{src}\setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ShowChangeDiskWindow ('Please Insert Next Disk To Continue..', ExpandConstant('{src}'),'Setup-2.bin') then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\setup-2.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;

2- how can i make logo.bmp Button in setup
when i click for logo open my website ^__^

in the script find this line
procedure InitializeWizard1();


and add this script under InitializeWizard1()
WizardForm.WizardBitmapImage2.Cursor:=crHand;
WizardForm.WizardBitmapImage2.OnClick:=@LogoLabelO nClick;

and add this script above InitializeWizard1()
procedure LogoLabelOnClick(Sender: TObject);
var
ErrorCode: Integer;
begin
ShellExec('open', 'https://www.google.lk/', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode)
end;

its should be like this
procedure LogoLabelOnClick(Sender: TObject);
var
ErrorCode: Integer;
begin
ShellExec('open', 'https://www.google.lk/', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode)
end;

procedure InitializeWizard1();
begin
WizardForm.WizardBitmapImage2.Cursor:=crHand;
WizardForm.WizardBitmapImage2.OnClick:=@LogoLabelO nClick;

sidelee72
05-05-2013, 06:03
problem solved!

Igor007
17-05-2013, 16:12
Hi. How to edit where the main game exe is located, because it's in Bin32 folder, not in main game folder, so desktop shortcut is not working?

Kurutucu
17-05-2013, 16:25
You can edit in Main.iss . Change Kurutucu.exe to your game exe and directory.

Shanilka
19-05-2013, 01:20
How to add Compact View Option to my setup :cool:

PinHeaDi
20-05-2013, 03:08
Can i use The Inno comprison ? With Freearc it show me errors every time, or can anyone explain for noobs like me ;(

Kurutucu
20-05-2013, 07:44
@Shanilka

I don't know. Sorry :(

@PinHeaDi

With inno compression giving errors. This Freearc, 7zip, Rar etc. only.

PinHeaDi
20-05-2013, 08:46
Ok. I finally figured it, my other qeustion is there a way to maker only .exe file. I mean all the file to be in one exe file and not in a .bin

Razor12911
20-05-2013, 09:40
Instructions on blackbox script

Ok, First things first.

This blackbox script/installer doesn't support internal compression therefore, I will show you how to use the freearc, 7zip, srep, precomp, winrar, diskchange unpacking.

Now here is an example and a few explainations.

if not ISArcExtract (Component, Progress, ArchiveSource, Destination, '', false, Password, ExpandConstant('{tmp}\arc.ini'), True/False) then break;

if not IS7ZipExtract (Component, Progress, ArchiveSource, Destination, True/False, Password) then break;

if not ISRarExtract (Component, Progress, ArchiveSource, Destination, True/False, Password) then break;

if not ISSRepExtract (Component, Progress, ArchiveSource, Destination, True/False) then break;

if not ISPrecompExtract(Component, Progress, ArchiveSource, Destination, True/False) then break;

e.g.

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

Component > Allows unpacking when the component is selected. Ask for more info about this.

e.g

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

Progress > The progressbar taken up by the unpacking progress of archive. Take NOTE, 100 is the total, therefore is it's one archive, set 100, if two, set 50 and the other 50

if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Data2.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

ArchiveSource > Now as you can see, the example, ExpandConstant('{src}\Data1.bin'). The expandconstant is for the constant expansion for never mind it but you should take it for granted. {src} which means source of the setup, {pf} means the folder program files, for other constants, click here (http://jrsoftware.org/ishelp/topic_consts.htm).

e.g.

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

Destination > it acts the same way as the source of files but now you are directing the files in the archive to be unpacked in a folder, take note, this can only work if you are unpacking freearc, 7z or rar archive because they can contain a lot of files in one and as for precomp and srep, specify the destination file.

e.g.

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

if not ISPrecompExtract( 0, 0, ExpandConstant('{src}\data.pcf'), ExpandConstant('{app}\data.arc'), true) then break;

Password > The archive password set by you.

e.g.

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

True/False > aka. notPCFonFLY {PCFonFLY} It's an option to delete file after unpacking process, True means, file must be deleted and False means file mustn't be deleted.

e.g.

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

Now, here are a few examples.

The Password feature is only available for 7z, rar and arc.

Freearc

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

7zip

if not IS7ZipExtract ( 0, 75, ExpandConstant('{src}\data1.7z'), ExpandConstant('{app}'), false, '1234') then break;

rar

if not ISRarExtract ( 0, 25, ExpandConstant('{src}\data.rar'), ExpandConstant('{app}'), false, '4321') then break;

srep

if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\data.srep'),ExpandConstant(' {app}\data.pcf'), true) then break;

precomp

if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\data.pcf'), ExpandConstant('{app}\data.arc'), true) then break;


Now comes to the diskchange

if not ShowChangeDiskWindow (Text, ExpandConstant('{src}'),Archive) then break;

Text > The text which should be written to notify the user of the setup on what to do.

Archive > The archive the setup can use for verification.

e.g.

if not ShowChangeDiskWindow ('Insert the next disk...', ExpandConstant('{src}'),'Data7.cab') then break;

skakmatch
20-05-2013, 12:38
Thanks for blackbox inno setup script

Default installation folder
C:\Program Files\Name of Game

how to change default script to Publisher folder
C:\Program Files\Publisher\Name Of Game

Ex :
C:\Program Files\UbiSoft\FarCry 3

Kurutucu
20-05-2013, 12:47
@skakmatch

Open Main.iss.

1. Add this under #defines:

#define Publisher "Ubisoft"

2. Find DefaultDirName={{#Dir}}\{#AppName} then change with this

DefaultDirName={{#Dir}}\{#Publisher}\{#AppName}

Razor12911
20-05-2013, 12:48
@skakmatch
{pf}\UbiSoft\FarCry 3

How to add Compact View Option to my setup :cool:
[Types]
Name: full; Description: Full installation; Flags: iscustom

D4rkSp4wn
21-05-2013, 04:20
Hi, iam compressing my game with -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8

using Freearc 0.67 alpha, i have included the arc.ini in the script and theres only one file called Data-1.bin

The decompressionj line is if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data-1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;

all seems to be normal but when it starts the extraction i got the following errors

http://imageshack.us/a/img819/3221/error1i.png

when i press ok i get

http://img199.imageshack.us/img199/7880/error2g.png

i am kinda stuck, any help will be much appreciated.

Razor12911
21-05-2013, 04:32
@D4rksp4wn

Use this unarc.dll

download and extract attachment, copy and replace the unarc.dll in include folder

D4rkSp4wn
21-05-2013, 13:20
@D4rksp4wn

Use this unarc.dll

download and extract attachment, copy and replace the unarc.dll in include folder

Thank you very much for the fast reply but unfortunately it didnt worked for me, i am still getting the same error.

Thank you in advance.

Razor12911
21-05-2013, 13:26
by the way. What method did you use?

y_thelastknight
21-05-2013, 13:39
i think its precomp error..try without precomp..

D4rkSp4wn
21-05-2013, 16:47
by the way. What method did you use?


The compression method i used is -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8

i have also tried copying the unarc.exe and arc.exe from my Freearc bin folder to the include folder but unfortunately it did not helped.

they way i am doing it is:

i browse the main game folder, select all files and folders by pressing Alt+A then right clicking it and cascade menu Freearc===> Add to Archive

during the compression process i have noticed that the precomp version used by Freearc is the 0.42 so i have defined it in the decompression script header as 0.42.

Weird thing is that if i extract the file using the right click options==>Freearc==>Extract Here all works fine and the file get extracted with no error.

Also noticed that selecting all files and folders and using the -m0 then srep (default settings) then Freearc -mx works if i define the decompression lines in the script but the compression ratio is not good as if i use the -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 compression chain.

Also if i use the precomp(default settings) before srep compressing manually it seems srep cant do anything with the precomp file so looks like doing it manually is not an option for me.

i am used to scripting but this one is really cracking my head with this error, i have been compressing games since 2001 and i have experience with a lot of compression algorithms (like darkcomp paq*,uha etc) i still use the setup.bat thingy but since it can get some users in trouble because of windows user permissions and UAC and bla bla bla i am moving to Inno and the best stuff i got till now is this script (Faster,Easier etc.).

Anyway, the game i am doing final size is 15gb and compressed i got it to 2.12gb using audio conversion and file injection so i am happy with the size itself hehe, i just need to get rid of this damn error lol.

Best Regards

Zocky
22-05-2013, 05:09
Problem Decompress :confused:


if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\Setup-1.srep'),ExpandConstant(' {app}\Setup-1.pcf'), true) then break;
if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\Setup-1.pcf'), ExpandConstant('{app}\Setup-1.bin'), true) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-2.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\Setup-2.srep'),ExpandConstant(' {app}\Setup-2.pcf'), true) then break;
if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\Setup-2.pcf'), ExpandConstant('{app}\Setup-2.bin'), true) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-2.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-3.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\Setup-3.srep'),ExpandConstant(' {app}\Setup-3.pcf'), true) then break;
if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\Setup-3.pcf'), ExpandConstant('{app}\Setup-3.bin'), true) then break;
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-3.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;

Razor12911
22-05-2013, 07:16
@D4rkSp4wn

i see, this script has a lot of bugs which i can fix and make them disappear but my hands are tied.

Try that method using the converter, program i created. If it fails, then there's nothing i can do.

Razor12911
22-05-2013, 07:19
@Zocky,

first error is the progress, read up the tutorials i did on the previous page.

D4rkSp4wn
22-05-2013, 07:28
@D4rkSp4wn

i see, this script has a lot of bugs which i can fix and make them disappear but my hands are tied.

Try that method using the converter, program i created. If it fails, then there's nothing i can do.

what converter? can you please link me to it?

Razor12911
22-05-2013, 09:43
fileforums.com/showthread.php?t=94435 there. And almost forgot, the problem might be arc.ini too.

D4rkSp4wn
22-05-2013, 14:45
thank you very much, downloading and testing your code right now, once tested will let you know my thoughts.

all the best from Brazil.

foo8088
23-05-2013, 00:46
ops sry i found the answer

D4rkSp4wn
24-05-2013, 07:53
ops sry i found the answer

Could you please share it with us?

Kurutucu
25-05-2013, 15:44
Updated 1.4

-Added Publisher.

-Fixed all extraction problems and bugs.

goku1205
26-05-2013, 09:14
Is not work :/ Problem in ISDone

Razor12911
26-05-2013, 09:49
Instructions (http://fileforums.com/showpost.php?p=418281&postcount=89)

D4rkSp4wn
26-05-2013, 10:29
i still have the same problem extracting precomp+srep+freearc

Razor12911
26-05-2013, 10:35
ok wait... uploading v1.4 update for unicode :D

D4rkSpa4wn will fix the bug just wait a few minutes

y_thelastknight
26-05-2013, 10:56
i still have the same problem extracting precomp+srep+freearc

dude can you post your compressing file like arc.ini compress.bat precomp.exe srep.exe

D4rkSp4wn
26-05-2013, 11:16
Using freearc 0.67

i select the all content of the main game folder, right click it, freearc add to archive

in the compression method in the gui i use

-mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8

my arc.ini for decompression is


[External compressor:srep]
;options = l%d (minimal match length, default=512)
header = 0
packcmd = srep {options} -m3f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

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

decompression line in the script is

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\*.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;


the errors i get are:

http://imageshack.us/a/img819/3221/error1i.png

when i press ok i get

http://img199.imageshack.us/img199/7880/error2g.png

i have included the arc.ini into the script with the line

Source: Include\arc.ini; DestDir: {tmp}; Flags: dontcopy

i have no idea about what i am doing wrong lol

y_thelastknight
26-05-2013, 11:25
Using freearc 0.67

i select the all content of the main game folder, right click it, freearc add to archive

in the compression method in the gui i use

-mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8

my arc.ini for decompression is


[External compressor:srep]
;options = l%d (minimal match length, default=512)
header = 0
packcmd = srep {options} -m3f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

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

decompression line in the script is

if not ISArcExtract ( 0, 100, ExpandConstant('{src}\*.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;


the errors i get are:

http://imageshack.us/a/img819/3221/error1i.png

when i press ok i get

http://img199.imageshack.us/img199/7880/error2g.png

i have included the arc.ini into the script with the line

Source: Include\arc.ini; DestDir: {tmp}; Flags: dontcopy

i have no idea about what i am doing wrong lol

what is ur precomp and srep version?

Razor12911
26-05-2013, 11:28
BlackBox Inno Setup Script Unicode

Update v1.4

Changes
-Fixed Splash Screen
-Fixed Bug in data unpacking
-Added Srepx64 and Lzmax64 Support
-Now Set up archives in archive.ini
-Freearc 0.67 Alpha Support added

D4rkSp4wn
26-05-2013, 11:35
what is ur precomp and srep version?

precomp 043
srep 3.2

both copied to include folder

i had no luck with precomp 042

and the older srep versions

Razor12911
26-05-2013, 11:39
use precomp 038-042
use any srep version

I used this method in v1.4 Unicode Script and it worked

-mprecomp:t-jnf:zl31,34,39,44,55,64,67,68,73,74,75,84,85,94,97 ,99:d0+srep64+delta+lzma64:a1:mfbt4:d158m:fb273:mc 1000:lc8

D4rkSp4wn
26-05-2013, 12:42
looks like the ansi version is messed up, unicode version working fine here, even with precomp043 (If you change it on arc.ini and include it on the precompinside folder)

Razor12911
26-05-2013, 12:49
hmm, I didn't even know that precomp043 is supported in isdone, will add support to my source.

D4rkSp4wn
26-05-2013, 13:35
Found the solution for my problem with the ansi version.

Open the arc.ini and find the line:
unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

Change to:
unpackcmd = srep {options} -d -s - - <stdin> <stdout>

all working fine now.

D4rkSp4wn
26-05-2013, 14:21
hmm, I didn't even know that precomp043 is supported in isdone, will add support to my source.

it is supported if you tell the isdone that its the 0.42 and in the arc.ini u change the -c- to -cn

have fun

PinHeaDi
27-05-2013, 05:38
How to make it when i click on the logo (logo.bmp) to open a site ?

MartinezPL
27-05-2013, 06:07
http://i39.tinypic.com/2rzzb7n.jpg
http://img199.imageshack.us/img199/7880/error2g.png
Replaced unarc.dll with that posted couple pages back
and arc.ini
My compresion method is:
-msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8

My compresion lines in script looks like this:
if not ISArcExtract ( 0, 10, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{tmp}\arc.ini'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 25, ExpandConstant('{src}\Data2.bin'), ExpandConstant('{app}\Terrains'), '', false, '', '', ExpandConstant('{tmp}\arc.ini'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 45, ExpandConstant('{src}\Data3.bin'), ExpandConstant('{app}\Terrains'), '', false, '', '', ExpandConstant('{tmp}\arc.ini'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 65, ExpandConstant('{src}\Data4.bin'), ExpandConstant('{app}\Terrains'), '', false, '', '', ExpandConstant('{tmp}\arc.ini'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 85, ExpandConstant('{src}\Data5.bin'), ExpandConstant('{app}\Terrains'), '', false, '', '', ExpandConstant('{tmp}\arc.ini'), notPCFonFLY {PCFonFLY}) then break;
if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data6.bin'), ExpandConstant('{app}\Terrains'), '', false, '', '', ExpandConstant('{tmp}\arc.ini'), notPCFonFLY {PCFonFLY}) then break;

It wille be great if someone help me :)

Razor12911
27-05-2013, 06:39
use v1.4 unicode

MartinezPL
27-05-2013, 06:49
http://fileforums.com/attachment.php?attachmentid=6319&d=1369521540
this one ?
Try already
When using Inno unicode can't compile some error pop up
when ansi no error pop-up and compile can be completed :)

Razor12911
27-05-2013, 06:54
this one martinez
http://fileforums.com/showpost.php?p=418639&postcount=115

Razor12911
27-05-2013, 07:09
Help :{
Click here (http://fileforums.com/showpost.php?p=417847&postcount=81)

MartinezPL
27-05-2013, 07:34
@Razor12911
Again the same error :D
Gonna try it a diffrent method ;)

Razor12911
27-05-2013, 07:42
well, it works fine here, make sure you have updated your inno setup.

I tested it using Inno Setup Unicode and Unicode Enhanced.

MartinezPL
27-05-2013, 08:08
Hmm i got the Inno Setup Unicode from official site
if you can pls post Unicode Enhanced maybe this version gonna work :P

Razor12911
27-05-2013, 08:11
@martinez
Download (http://fileforums.com/showpost.php?p=418194&postcount=16)

@D4rkSp4wn
hmm, nah, will not use it anyways but thanks, will stick to precomp038 and precomp040 as for they work in compression better than 042 from my point of view.

D4rkSp4wn
27-05-2013, 10:43
@martinez
Download (http://fileforums.com/showpost.php?p=418194&postcount=16)

@D4rkSp4wn
hmm, nah, will not use it anyways but thanks, will stick to precomp038 and precomp040 as for they work in compression better than 042 from my point of view.

they work fine for me too but the older versions cause random crashes on me while compressing drives me mad lol

cheers man

nicola16
27-05-2013, 18:47
Would it be possible to just have the template to use the internal engine.
I just want to put logos.

PinHeaDi
28-05-2013, 01:48
Can i Remove the DirectX,Visual C++ and Nvidia Psysx insall from here http://i.imgur.com/likEzgD.png and put a custom text there?

skakmatch
28-05-2013, 03:45
@PinHeaDi

Find all text DirectX,Visualc,Psysx from Main.iss

PinHeaDi
28-05-2013, 03:52
@PinHeaDi

Find all text DirectX,Visualc,Psysx from Main.iss

Yes i know, but how to actually i edit them to make them as normal text?

y_thelastknight
28-05-2013, 04:56
Yes i know, but how to actually i edit them to make them as normal text?

what you mean normal text?

PinHeaDi
28-05-2013, 05:23
what you mean normal text?

Well remove those : Install XXXX and the Checkbox and put a normal text

Exmple: remove Install Direct X and its checkbox, and put a text there for example: Test text

nicola16
28-05-2013, 11:35
I want to use only the template image eliminate DirectX, VisualC, Psysx

and small tablets arc.

I want to take advantage of the engine anthem so I can also create small corrective patches and mods without using uninstall.

Is it possible??.

Sorry my english.

thedarkman
28-05-2013, 14:19
How can I make the box in the list of components checked by default?

MartinezPL
05-06-2013, 05:17
Still the same shitty error
"Not an SREP compressed file"
Then what? RAR? Damn

Razor12911
05-06-2013, 05:22
@MartinezPL
add arc.ini to unpacking line.

MartinezPL
05-06-2013, 05:30
Unpacking line hmm where is it?
I'm rookie :D

Razor12911
05-06-2013, 05:38
if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break;

Plus here are the instructions
Link (http://fileforums.com/showpost.php?p=418281&postcount=89)

MartinezPL
05-06-2013, 06:06
http://i43.tinypic.com/2nvq7f7.jpg
Now I getting this error when try to compile

Razor12911
05-06-2013, 06:26
use the unicode edition.

MartinezPL
05-06-2013, 06:39
It is unicode version :)

Razor12911
05-06-2013, 06:49
this one

Link (http://fileforums.com/showpost.php?p=418639&postcount=115)

MartinezPL
05-06-2013, 07:01
Already have
My archive.ini looks like this:
if not ISArcExtract ( 0, 20, ExpandConstant('{src}\Data-1.bin'), ExpandConstant('{app}\ExampleGame'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;
if not ISArcExtract ( 0, 45, ExpandConstant('{src}\Data-2.bin'), ExpandConstant('{app}\ExampleGame'), '', false, '',ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;
if not ISArcExtract ( 0, 85, ExpandConstant('{src}\Data-3.bin'), ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;
if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data-4.bin'), ExpandConstant('{app}\ExampleGame'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), False) then break;

And have that god damn error with "no a SREP file" :D

Razor12911
05-06-2013, 07:08
what method did you use?

MartinezPL
05-06-2013, 07:14
-msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
:)

Kurutucu
05-06-2013, 08:27
:)

TESTED. Method working. Use srep 3.0 version.

Thang
06-06-2013, 06:58
I want create 2 process bar looks like the picture
http://s21.postimg.org/467zd6tlj/isdonedll.png

my script

taporocrufeljan
06-06-2013, 19:52
Good day Sir, Im New here and also a newbie . .
im having same problem as MR. MartinezPL
I've got the same Error all over again. I'm using

-msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
this method also.

Another thing. . .
How can i compress with Freearc with .bin extension?
is it renaming the Data.arc to DATA.bin?

Help :) Sry for my Bad English.

pakrat2k2
06-06-2013, 20:01
yes, just choose the filename you want + extension. Doesnt have to be arc file, could be data.xyz if you really wanted to.

Kurutucu
09-06-2013, 12:06
Update 1.5

-Added music and music button (Thanks for sentinelks).

AHRIMANSEFID
10-06-2013, 00:36
Hi.
Thanks Code But Me Need Help In protect or lock setup file in disable extract ?
plz help me.

Razor12911
10-06-2013, 01:01
@AHRIMANSEFID
use inno setup enhanced edition to disable that.

AHRIMANSEFID
10-06-2013, 03:29
inno setup enhanced edition 5.5.1 does not work ,plz help me how can i protect my setup source.
if this program works explain something about it or give an example thanks........

ashyamsundar
10-06-2013, 04:08
i got this error in v1.5

kostaskaraivalis
10-06-2013, 05:50
Hi, I keep getting this error everytime ISPrecompExtract tries to extract any .pcf file

for instance:
http://i.imgur.com/Wn1rE2x.jpg

Everything works fine till the moment to begin extracting .pcf
I even went to installation path and I confirmed that last extracted file was .pcf unable to extract it

My Extraction code is: if not ISArcExtract ( 0, 0, ExpandConstant('{src}\Element4l.arc'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;
if not ISSRepExtract ( 0, 0, ExpandConstant('{app}\Element4l.pcf.srep'), ExpandConstant('{app}\'), true ) then break;
if not ISPrecompExtract( 0, 0, ExpandConstant('{app}\Element4l.pcf'), ExpandConstant('{app}\'), true) then break;
if not ISArcExtract ( 0, 0, ExpandConstant('{src}\Element4l.arc'), ExpandConstant('{app}\'), '', true, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;

I would appreciate if you could help me out with this issue.

Compressing sequence I used:
1) Arc -m0 -dm0
2) precomp -cn (as none compression, I used 0.4.3 version)
3) srep -m3f
4) Arc -mlzma:a1:mfbt4:d256m:fb128:mc1000:lc8

Thanks in advance!

y_thelastknight
10-06-2013, 06:39
@kostaskaraivalis
try with precomp v0.42

Kurutucu
10-06-2013, 07:20
i got this error in v1.5

Your compression method precomp04. Open in my script include and ISDone/include folder. Open arc.ini. Change precomp to precomp04. Then try.

Kurutucu
10-06-2013, 07:22
@kostaskaraivalis

My script don't support precomp 0.43 version. Use precomp 0.42 version.

Razor12911
10-06-2013, 07:52
Your compression method precomp04. Open in my script include and ISDone/include folder. Open arc.ini. Change precomp to precomp04. Then try.
And also replace precomp.exe with the 0.4 version exe

I want create 2 process bar looks like the picture
http://s21.postimg.org/467zd6tlj/isdonedll.png

my script
Will add this function for v2 unicode.

inno setup enhanced edition 5.5.1 does not work ,plz help me how can i protect my setup source.
if this program works explain something about it or give an example thanks........
IS Enhanced disallows this from happening , unless you are talking about something else.

kostaskaraivalis
10-06-2013, 07:56
@kostaskaraivalis

My script don't support precomp 0.43 version. Use precomp 0.42 version.

Okay, it worked! One last question, But I know that in 0.43 version for 0 compression is -cn. What option should I use in precomp042?

Kurutucu
10-06-2013, 09:11
@kostaskaraivalis

Change to -c

kostaskaraivalis
10-06-2013, 09:49
@kostaskaraivalis

Change to -c

I tried precomp042 -c test.arc
But it doesn't work either.

Kurutucu
10-06-2013, 10:02
@kostaskaraivalis

Download and extract it somewhere. Open compress.bat with notepad. Change C:/* to your files directory. Close and save then open compress.bat.

Use this:

ashyamsundar
10-06-2013, 10:04
Your compression method precomp04. Open in my script include and ISDone/include folder. Open arc.ini. Change precomp to precomp04. Then try.
not woking bro

compressed by this cmd line

c:\window\system32>arc.exe a -ep1 -r -ed -lc- -s; -w.\ "Output\setup-1.bin" -mprecomp+srep+lzma:a1:mfbt4:d158m:fb273:mc1000:lc8 "Folder\*"

freearc 0.67
precomp042
srep 3.0

now two error

Kurutucu
10-06-2013, 10:09
I sended to you message. Add me on Facebook. I will help ashyamsundar and kostaskaraivalis with Team Viewer.

kostaskaraivalis
10-06-2013, 10:12
@kostaskaraivalis

Download and extract it somewhere. Open compress.bat with notepad. Change C:/* to your files directory. Close and save then open compress.bat.

Use this:

Thank you! I've figured out, none compression:
for precomp040 is -c1
for precomp042 is -c-

thanks again!

Kurutucu
10-06-2013, 10:13
@ashyamsundar

Kurutucu Compressor. (http://fileforums.com/showpost.php?p=419426&postcount=170)

Kurutucu
10-06-2013, 10:16
@kostaskaraivalis

Nice. For more question look at message.

AHRIMANSEFID
10-06-2013, 10:20
guide add for me.
thanks

Razor12911
10-06-2013, 10:39
not woking bro

compressed by this cmd line

c:\window\system32>arc.exe a -ep1 -r -ed -lc- -s; -w.\ "Output\setup-1.bin" -mprecomp+srep+lzma:a1:mfbt4:d158m:fb273:mc1000:lc8 "Folder\*"

freearc 0.67
precomp042
srep 3.0

now two error

attach arc.ini file.

ashyamsundar
10-06-2013, 10:49
attach arc.ini file.

now working with Kurutucu Compressor

Kurutucu
10-06-2013, 11:31
Compressor added.

Razor12911
10-06-2013, 11:39
how do you packzip?

Kurutucu
10-06-2013, 12:00
I don't add packzip.

y_thelastknight
10-06-2013, 12:09
im going to update the script with

Internal
Picture Slideshow
Video Background
Music
Compact Mode
Logo URL

@Razor12911 how do i add multiple pic to slideshow..

Kurutucu
10-06-2013, 12:22
@y_thelastknight

What you say Internal or Internal Compression?

Razor12911
10-06-2013, 13:06
I don't add packzip.

but base post reads, tested the following methods. Blah, blah, blah and there was packzip and i'm asking how do you use it.

@y_thelastknight will send a pm on how to do it.

Kurutucu
10-06-2013, 13:08
but base post reads, tested the following methods. Blah, blah, blah and there was packzip and i'm asking how do you use it.

I used KaOs repack files for packzip extraction test.

Kurutucu
10-06-2013, 17:32
Update 1.6

-Changed music button position.

-Added Logo+URL.

-Included Kurutucu Compressor(precomp 0.42+srep 3.0).

Riddle_R
10-06-2013, 22:40
Can anybody help me in making an installer with a video embedded in it ?:D Such an installer was made by blackbox for Assassins Creed - Revaltions

AHRIMANSEFID
10-06-2013, 22:42
We want to do something to prevent extract the setup file. to do something to not allow anybody to see the scripts,and files. Can we do this with inno setup enhanced edition??

Newbie
11-06-2013, 01:39
EDITED.

I had some question but I decided Not to use Inno.

So, I'm back to program I'm using for a while.

Cheers

hydefromt70s
11-06-2013, 08:07
Hi there,

Thanks for a great gaming setup - well done!
But I have one question - how to add NEW components of the installation, such as NET Framework 4?

Ok, I handle it already! :D

sentinelks
11-06-2013, 13:53
just duplicate entries and the code that brings with it another component and change the name of the new copy
ex: VisualCCB in NetF4CB etc.

kostaskaraivalis
12-06-2013, 03:33
Also the script would be pretty awesome if supported latest version of freearc http://freearc.org/download/0.666/FreeArc-console-0.666-win32.exe as well as precomp043 http://schnaader.info/precomp.zip. Keep in mind for a future update. Thanks again for this script!

nicola16
12-06-2013, 07:46
Code that opens the link at the end of installation

should be placed at the end of the file iss


procedure CurStepChanged(CurStep: TSetupStep);
var
ErrCode: integer;
begin
if (CurStep=ssDone) then
begin
ShellExec('open', 'http://fileforums.com/', '', '', SW_SHOW, ewNoWait, ErrCode);
end;
end;

Kurutucu
12-06-2013, 07:57
@nicola16

I added this already!

@kostaskaraivalis

Use precomp 0.42 or use my compressor.

sentinelks
12-06-2013, 13:35
Kurutucu check your versions unicode .. are not operating at 100%
only 1.4 razor script works perfectly on all versions unicode

Kurutucu
12-06-2013, 16:12
I will update later.

Kurutucu
12-06-2013, 18:43
Update 1.7

-Converted for Unicode.

-Fixed extraction problems.

-Added precomp 0.43 and srep 3.2.

-ISDone.iss included to Main.iss.

-Added Precomp Versions folder for replace precomp.exe in include folder.

-You can edit archives in Archives.ini.

sentinelks
13-06-2013, 00:24
Update 1.7

Unicode perfect :)

MartinezPL
13-06-2013, 03:14
Can someone post a compression comparison
between packzip and free arc+srep+precomp? :D

nicola16
13-06-2013, 06:03
nice thanks for unicode.

Riddle_R
13-06-2013, 06:55
How can one make an installer like this, with a video embed in it ????

http://www.freeimagehosting.net/newuploads/pyy4m.jpg


Be VERY careful what you post, this forum does NOT toleate WAREZ of any kind !!!
you have BOTH warez group & website name in your Image !!

Razor12911
13-06-2013, 08:07
that's easy, learn more on delphi programming, :D.

PM me the setup.exe so that I can make one like it.

sentinelks
13-06-2013, 08:50
that's easy, learn more on delphi programming, :D.

PM me the setup.exe so that I can make one like it.



which program do you use to open a setup razor .. common ways not read the code delphi and pascal

Razor12911
13-06-2013, 09:08
I don't, I create it from scratch. :D

sentinelks
13-06-2013, 09:30
I don't, I create it from scratch. :D



I know you're good razor
but you said that you need the setup of the game to know .. then what you need the setup my friend
That was what I was saying :rolleyes::D

Razor12911
13-06-2013, 09:43
hmm, yeah I know. I just need to see all the pages so that I can create something similar.

Riddle_R
13-06-2013, 11:01
Razor..can u make one such installer ???

Razor12911
13-06-2013, 11:17
yep. private message me the setup.exe download link.

will do it after I release my designer project.

ashyamsundar
14-06-2013, 03:15
How to change music on and off to image

how to add image slideshow or video during installation

in v1.7

sentinelks
14-06-2013, 05:52
How to change music on and off to image

how to add image slideshow or video during installation

in v1.7

trial studying this code :)

ashyamsundar
14-06-2013, 06:13
trial studying this code :)

what about music on & off
to image ?

sentinelks
14-06-2013, 07:41
what about music on & off
to image ?

erxample:

MartinezPL
14-06-2013, 08:44
Firts i want thank you now evrything works great ,installer unpacks evrything nicely
2nd guys don't add any videos etc ,cuz this installer was supposed to be a simple one
this installer is what i was looking for for long time :)

sentinelks
14-06-2013, 09:15
is a great script but it's always better .. razor will make a version with videos etc. or we will not use more than its patch for GTA4 :D :D :D

MartinezPL
14-06-2013, 09:35
I got question
My .exe from game is located in Binaries\Win32

Name: {group}\Uninstall Remember Me; Filename: {app}\unins000.exe; WorkingDir: {app}; Check: CheckError
Name: {group}\Remember Me; Filename: RememberMe.exe; WorkingDir: {app}Binaries\Win32; Check: CheckError
Name: {commondesktop}\Remember Me; Filename: RememberMe.exe; WorkingDir: {app}Binaries\Win32; Check: CheckError
Did i do something wrong ? After finished installtion Dektop shortcut is invalid :(

Kurutucu
14-06-2013, 09:45
@MartinezPL

Don't change anything.

Name: {group}\Uninstall {#AppName}; Filename: {app}\unins000.exe; WorkingDir: {app}; Check: CheckError
Name: {group}\{#AppName}; Filename: {app}\{#AppExec}; WorkingDir: {app}; Check: CheckError
Name: {commondesktop}\{#AppName}; Filename: {app}\{#AppExec}; WorkingDir: {app}; Check: CheckError

#define AppExec "Binaries\Win32\RememberMe.exe"

assassin193
15-06-2013, 05:50
hello, i'm from vietnam
i'm a newbie with Inno
and i have just practice with Inno
now i need how to create skin for setup.exe and found this thread
but i don't understand how the code work
so can you teach me how to use Inno and create skin carefully and clearly ???
thank you so much

Pein46
15-06-2013, 06:26
@assassin193

check here (http://isskin.codejock.com/gettingstarted.asp)..

Don't forget to change "Office2007.cjstyles" with your own filename..
Eg: skin.cjstyles

kr0m
15-06-2013, 09:20
I'm testing this inno script, change as describe on first step, compile with success but when I execute the setup, forms and text are mess up and I dint change nothing there.
Please, some one now what's happening.

pakrat2k2
15-06-2013, 10:03
which script are you using ??

just changing line in script ( to match installed game dir is fine ) BUT
you also must make changes in setup.ini to match game information.

y_thelastknight
15-06-2013, 10:11
Black_Box_Script_By_Kurutucu_V1.8 Based on Black_Box_Script_By_Kurutucu_V1.4_Unicode (http://fileforums.com/showpost.php?p=418639&postcount=115) By Razor12911 (http://fileforums.com/member.php?u=196265)

Changes
-Changed music button position for better place
-Added Logo+URL.
-Added Unlimited Picture Slideshow
-Added Video Background
-Added Compact Mode
-Added Task Progressbar
-Fixed Bug in Task Installation

Put your video file in the same directory where is main.iss
Support Mp4, avi, mpg, or wmv


For Internal Compression Change this to
;#define Internal "C:\Program Files\Fileforums\Blackbox Inno Setup Script\"
This
#define Internal "yourgameinstallationpath\"

Thank to Razor12911 for The Help

http://img826.imageshack.us/img826/9263/kozh.jpg
http://img405.imageshack.us/img405/1166/pb3w.jpg
http://img43.imageshack.us/img43/3817/nyj2.jpg
http://imageshack.us/a/img854/7771/k7x.jpg
http://imageshack.us/a/img856/7953/dki.jpg

Kurutucu
15-06-2013, 12:00
@y_thelastknight

It's my work. but you change logo with your name. Reported.

y_thelastknight
15-06-2013, 12:17
@y_thelastknight

It's my work. but you change logo with your name. Reported.

lol..only logo dude..i just improve ur script :p (i dont want any credit)
there is a psd file in psd folder..it has a gradient like that so everybody can change it..
it just a example no body is going to use my logo or your logo..that is the real fact :)

i will Reupload.

Kurutucu
15-06-2013, 12:21
@y_thelastknight

I say to you 2 times. When you editing this script send me with message. Then I will test and share in main post. Sorry but you don't understand this.

sentinelks
15-06-2013, 12:24
error:
isdoneprogressbar1.Position:=isdoneprogressbar1.Po sition + 10;


better precompile scripts or someone you can not go wrong :)

y_thelastknight
15-06-2013, 12:24
@y_thelastknight

I say to you 2 times. When you editing this script send me with message. Then I will test and share in main post. Sorry but kids don't understand this.

sorry dude my mistake..:/

Kurutucu
15-06-2013, 12:27
@y_thelastknight

I'm testing v1.8. When test finished I will upload and add your name in credit. However, good job. Thanks.

Kurutucu
15-06-2013, 12:27
@sentinelks

I'm testing now. I will upload fixed v1.8.

y_thelastknight
15-06-2013, 12:34
@sentinelks

I'm testing now. I will upload fixed v1.8.

there is nothing to fix i think :p

error:
isdoneprogressbar1.Position:=isdoneprogressbar1.Po sition + 10;

what was the error? Po sition??

Kurutucu
15-06-2013, 12:39
@y_thelastknight

if isdoneprogressbar1.Position = 100 then
isdoneprogressbar1.Position:=0
isdoneprogressbar1.Position:=isdoneprogressbar1.Po sition + 10;
if WizardForm.ProgressGauge.Position = 100 then
WizardForm.ProgressGauge.Position:=0
WizardForm.ProgressGauge.Position:=WizardForm.Prog ressGauge.Position + 10;

to

if isdoneprogressbar1.Position = 100 then
isdoneprogressbar1.Position:=0;
isdoneprogressbar1.Position:=isdoneprogressbar1.Po sition + 10;
if WizardForm.ProgressGauge.Position = 100 then
WizardForm.ProgressGauge.Position:=0;
WizardForm.ProgressGauge.Position:=WizardForm.Prog ressGauge.Position + 10;

And splash not work.

sentinelks
15-06-2013, 12:46
#ifexist "Video.avi"
ExtractTemporaryFile('Video.avi');
#endif
#ifexist "Video.mp4"
ExtractTemporaryFile('Video.MP4');
#endif
#ifexist "Video.mpeg"
ExtractTemporaryFile('Video.mpeg');
#endif
#ifexist "Video.mpg"
ExtractTemporaryFile('Video.mpg');
#endif
#ifexist "Video.wmv"
ExtractTemporaryFile('Video.wmv');
#endif
#ifexist "Video.wmv"
ExtractTemporaryFile('Video.wmv');
#endif
#ifexist "Video.swf"
ExtractTemporaryFile('Video.swf');
#endif

procedure ISFlash_init(Handle:HWND; Ffile: PAnsiChar); external 'isflash_init@files:ISFlash.dll stdcall';
procedure ISFlash_free; external 'isflash_free@files:ISFlash.dll stdcall';

procedure InitializeWizard();
var
FlashPanel: TPanel;
begin
RedesignWizardForm;
FlashPanel := TPanel.Create(WizardForm);
FlashPanel.Parent := WizardForm;
FlashPanel.Top := WizardForm.OuterNotebook.Height + 1;
FlashPanel.Left := -xxx;
FlashPanel.Height := xxx;
FlashPanel.Width := xxx;
ExtractTemporaryFile('video.swf')

ISFlash_init(FlashPanel.Handle, ExpandConstant('{tmp}\video.swf'));
end;

procedure DeinitializeSetup();
begin
ISFlash_free;
end;

also swf file very useful

y_thelastknight
15-06-2013, 12:46
And splash not work.

oh yeah
find this line
procedure ShowSplashScreen(p1:HWND;p2:string;p3,p4,p5,p6,p7: integer;p8:boolean;p9:Cardinal;p10:integer); external 'ShowSplashScreen@files:isgsg.dll stdcall delayload';

and change string into AnsiString
simple but forget to change :p

Kurutucu
15-06-2013, 13:48
@y_thelastknight

Your edited script need fixes.

1. Slideshow seen only 1.jpg and 2.jpg.

2. Setup giving this error with no setup-1.bin.

http://i44.tinypic.com/317fvad.jpg

Here fixed some bugs. But you need to fix 1 and 2. When you fixed send me with message.

y_thelastknight
15-06-2013, 13:54
01. there is no 3.jpg in the slide folder :D :(

will chk the error 02 :)

Kurutucu
15-06-2013, 14:00
Look at Slides folder. There is 1-8.jpg.

sentinelks
15-06-2013, 14:44
just create a small file data1.bin 1mb and place it in the directory where it will load and the problem is solved ...
and give the extraction directory in [source]
not having a file compress.bat is + very fluid to try that code

Kurutucu
15-06-2013, 14:47
@sentinelks

Then run uninstall. You can give this error again.

pakrat2k2
15-06-2013, 20:58
I'm testing now. I will upload fixed v1.8.

update post #1 with the updated, complete 'fixed' version 1.8 ?
you posted some other errors in inno troubleshoot thread .. ??

Kurutucu
15-06-2013, 21:05
@pakrat2k2

I will upload. Changed some Instructions :)

pakrat2k2
15-06-2013, 21:33
thanks for keeping updated :D

Kurutucu
15-06-2013, 21:50
Update 1.8

-Added 4 version [Main.iss, Main(precomp.0.43).iss, Main(Compact.Mode).iss, Main(Compact.Mode-precomp.0.43).iss]

-Added original Blackbox Logo font.

-Fixed buttons.

-Fixed font colors.

-Added compact mode.

-Fixed finish page.

-Fixed Kurutucu Compressor.

-Added Framework redist.

-Skin change fixed. You can change with any skin.

-Disabled Nvidia Physx Checkbox. But you can enable it.

-Other checkboxs selected automatic.

-Watch Dogs Original Soundtrack added. ;)

pakrat2k2
15-06-2013, 22:14
thanks for update again... V1.8

You can edit redist files line 835 (Exec2)

hopefully you can have more then just the 3 that are there now ? Some games have 4-5 requisites that they want to install. ( yes DX is always one of them & shouldnt be counted, same goes for physx drivers ( video card drivers should install latest version anyways )).

if @y_thelastknight is doing V1.9 for slideshow & video ( that version should be posted seperately at bottom of first post
the whole blackbox script initially was for a slick looking installer ( that didnt need a bunch of fancy work done to display images etc.)
some people just want a simple installer ( maybe display a game background during install, & thats all, much like compact mode )

Kurutucu
15-06-2013, 22:17
@pakrat2k2

For more Redists they use Winrar. For example 4 redists need. DX, VC and Physx included. For 4. redist using winrar. For example disaplay driver and physx compressed with winrar sfx type. And they will edit sfx for silent and opening physx.msi and disaplaydriver.exe. Then open main.iss. Find Exec2(ExpandConstant('{src}\Redist\physx.exe'),'/q',false) change to Exec2(ExpandConstant('{src}\Redist\redists.exe'),'/q',false).

or

They can add [Run] section for other redists. :)

pakrat2k2
15-06-2013, 22:20
thanks for the added info, didnt see that far into script.

Kurutucu
15-06-2013, 22:47
the whole blackbox script initially was for a slick looking installer ( that didnt need a bunch of fancy work done to display images etc.)
some people just want a simple installer ( maybe display a game background during install, & thats all, much like compact mode )

In fact, a good idea. I will add this one week later. Because I have final exams :D

assassin193
16-06-2013, 01:37
excuse me, up to now i still use Inno Setup Complier to repack soft, just few days ago i've known i can change skin setup.exe through InnoIDE ..... :)
and this is the first time i use InnoIDE for repacking game, i open the main.iss and i don't know which i can and have to change to repack, so anyone can help me, please ???

i'm from viet nam and if i say anything hard to understand, please forgive me :)

thank you so much :)

and does anyone have instruction about InnoIDE for newbie like me ???
i want to use this app but dont know how to create code :(

Kurutucu
16-06-2013, 09:43
Instructions on blackbox script (Thanks Razor12911) (http://fileforums.com/showpost.php?p=418281&postcount=89)

sentinelks
16-06-2013, 10:24
even something so it would not hurt to include
example:

sentinelks
16-06-2013, 22:00
toggle pause
or you had to click for each archive :)

gamesbox796
17-06-2013, 03:35
I am not getting this particular point 2. Compress files with your method (Look at tested compression methods ). Then open Archives.ini . Edit for your compression method.
Examples: Code: i f n o t I S A r c E x t r a c t ( 0 , 1 0 0 , E x p a n d C o n s t a n t ( ' { s r c } \ S e t u p - i f n o t I S 7 Z i p E x t r a c t ( 0 , 1 0 0 , E x p a n d C o n s t a n t ( ' { s r c } \ S e t i f n o t I S R a r E x t r a c t ( 0 , 1 0 0 , E x p a n d C o n s t a n t ( ' { s r c } \ S e t For more files copy and paste
line. If files more CD or DVD: Code: i f n o t I S A r c E x t r a c t ( 0 , 5 0 , E x p a n d C o n s t a n t ( ' { s r c } \ S e t u p - 1 i f n o t S h owC h a n g e D i s kW i n d ow ( ' P l e a s e I n s e r t D i s k 2 T o C o n t i f n o t I S A r c E x t r a c t ( 0 , 5 0 , E x p a n d C o n s t a n t ( ' { s r c } \ S e t u p - 2 i had already used Inno setup for repacking games will you please explain me in brief or short video to be attached how did you do that.

mikey26
17-06-2013, 04:34
i put my directx folder in the redist folder but i get a Invalid command line switch.