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)

Razor12911 23-04-2013 01:36

hmm, those files must be created using freearc

Pein46 23-04-2013 01:50

@Razor12911

Quote:

[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..

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)..

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..

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

Quote:

Originally Posted by felix1788 (Post 417432)
@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

1 Attachment(s)
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

Quote:

Originally Posted by elnesr (Post 417508)
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

Code:

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
Code:

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.....
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;


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

1 Attachment(s)
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

1 Attachment(s)
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

1 Attachment(s)
@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

Quote:

Originally Posted by Razor12911 (Post 417636)
@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

1 Attachment(s)
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

Quote:

Originally Posted by y_thelastknight (Post 417762)
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.

Code:

  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.exe'),'/q',false);

If problem still, check commands.

Code:

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 ^__^


All times are GMT -7. The time now is 15:01.

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