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)

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

y_thelastknight 05-05-2013 04:10

Quote:

Originally Posted by adiga (Post 417846)
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
Code:

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

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;

Quote:

2- how can i make logo.bmp Button in setup
when i click for logo open my website ^__^
in the script find this line
Code:

procedure InitializeWizard1();
and add this script under InitializeWizard1()
Code:

WizardForm.WizardBitmapImage2.Cursor:=crHand;
WizardForm.WizardBitmapImage2.OnClick:=@LogoLabelOnClick;

and add this script above InitializeWizard1()
Code:

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

its should be like this
Code:

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:=@LogoLabelOnClick;


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

Plz Help Me Guys
 
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.

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

C:\Program Files\Name of Game 

how to change default script to Publisher folder
PHP Code:

C:\Program Files\Publisher\Name Of Game 

Ex :
PHP Code:

C:\Program Files\UbiSoft\FarCry 3 



All times are GMT -7. The time now is 08:24.

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