Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #556  
Old 01-06-2013, 13:33
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by Smurf Stomper View Post
I have a question, posted in as part of a conversation w/ Peter, but if anyone has an answer they're welcome to post it

http://fileforums.com/showpost.php?p...9&postcount=56

Code:
[Setup]
AppName=MyApp
AppVerName=MyApp
DefaultDirname={pf}\MyApp

[files]
Source: Img2.bmp; DestDir: {tmp}; Flags: dontcopy

[ code ]
var
WelcomeLabel1, WelcomeLabel2, FinishedLabel, FinishedHeadingLabel: TLabel;

procedure InitializeWizard();
begin
ExtractTemporaryFile('img2.bmp');

WizardForm.WizardBitmapImage.Width:= ScaleX(497);
WizardForm.WizardBitmapImage2.Width:= ScaleX(497);
WizardForm.WizardBitmapImage2.Bitmap.LoadFromFile(ExpandConstant('{tmp}\img2.bmp'));

WelcomeLabel1:= TLabel.Create(WizardForm);
WelcomeLabel1.AutoSize:= False;
with WizardForm.WelcomeLabel1 do
WelcomeLabel1.SetBounds(Left, Top, Width, Height);
WelcomeLabel1.Font:= WizardForm.WelcomeLabel1.Font
WelcomeLabel1.Font.Color:= clWhite;
WelcomeLabel1.Transparent:= True;
WelcomeLabel1.WordWrap:= true;
WelcomeLabel1.Caption:= WizardForm.WelcomeLabel1.Caption;
WelcomeLabel1.Parent:= WizardForm.WelcomePage

WelcomeLabel2:= TLabel.Create(WizardForm);
WelcomeLabel2.AutoSize:= False;
with WizardForm.WelcomeLabel2 do
WelcomeLabel2.SetBounds(Left, Top, Width, Height);
WelcomeLabel2.Font:= WizardForm.WelcomeLabel2.Font
WelcomeLabel2.Font.Color:= clWhite;
WelcomeLabel2.Transparent:= True;
WelcomeLabel2.WordWrap:= true;
WelcomeLabel2.Caption:= WizardForm.WelcomeLabel2.Caption;
WelcomeLabel2.Parent:= WizardForm.WelcomePage

FinishedHeadingLabel:= TLabel.Create(WizardForm);
FinishedHeadingLabel.AutoSize:= False;
with WizardForm.FinishedHeadingLabel do
FinishedHeadingLabel.SetBounds(Left, Top, Width, Height);
FinishedHeadingLabel.Font:= WizardForm.FinishedHeadingLabel.Font
FinishedHeadingLabel.Font.Color:= clWhite;
FinishedHeadingLabel.Transparent:= True;
FinishedHeadingLabel.WordWrap:= true;
FinishedHeadingLabel.Caption:= WizardForm.FinishedHeadingLabel.Caption;
FinishedHeadingLabel.Parent:= WizardForm.FinishedPage

FinishedLabel:= TLabel.Create(WizardForm);
FinishedLabel.AutoSize:= False;
with WizardForm.FinishedLabel do
FinishedLabel.SetBounds(Left, Top, Width, Height);
FinishedLabel.Font:= WizardForm.FinishedLabel.Font
FinishedLabel.Font.Color:= clWhite;
FinishedLabel.Transparent:= True;
FinishedLabel.WordWrap:= true;
FinishedLabel.Caption:= WizardForm.FinishedLabel.Caption;
FinishedLabel.Parent:= WizardForm.FinishedPage

WizardForm.WelcomeLabel1.Hide;
WizardForm.WelcomeLabel2.Hide;
WizardForm.FinishedLabel.Hide;
WizardForm.FinishedHeadingLabel.Hide;
end;

procedure CurPageChanged(CurPageID: Integer);
begin
FinishedLabel.Caption:= WizardForm.FinishedLabel.Caption;
end;
@Smurf Stomper Try this script

@other members what is the best compression script for internal
Reply With Quote
Sponsored Links
  #557  
Old 01-06-2013, 13:39
Smurf Stomper's Avatar
Smurf Stomper Smurf Stomper is offline
Registered User
 
Join Date: Feb 2007
Location: EU
Posts: 118
Thanks: 0
Thanked 10 Times in 8 Posts
Smurf Stomper is on a distinguished road
interesting - yours displays the text on the finished page just fine.

As for compression, I think lzma2/ultra64 is the tightest that inno can offer, without having to resort to using .arc files like some scripts around the forums.

EDIT: I messed with my original script I had pasted - turns out if I change this

Code:
procedure CurPageChanged(CurPageID: Integer);
var
FinishedLbl2: TLabel; 
begin
  if (CurPageID = wpFinished) then FinishedLbl2.Caption:= WizardForm.FinishedLabel.Caption; 
end;
to this:

Code:
procedure CurPageChanged(CurPageID: Integer);
var
FinishedLbl2: TLabel; 
begin
  FinishedLbl2.Caption:= WizardForm.FinishedLabel.Caption; 
end;
mine works just fine. ::sigh::

Last edited by Smurf Stomper; 01-06-2013 at 13:46.
Reply With Quote
The Following User Says Thank You to Smurf Stomper For This Useful Post:
y_thelastknight (01-06-2013)
  #558  
Old 01-06-2013, 14:01
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
Quote:
Originally Posted by Smurf Stomper View Post
EDIT: I messed with my original script I had pasted - turns out if I change this

Code:
procedure CurPageChanged(CurPageID: Integer);
var
FinishedLbl2: TLabel; 
begin
  if (CurPageID = wpFinished) then FinishedLbl2.Caption:= WizardForm.FinishedLabel.Caption; 
end;
to this:

Code:
procedure CurPageChanged(CurPageID: Integer);
var
FinishedLbl2: TLabel; 
begin
  FinishedLbl2.Caption:= WizardForm.FinishedLabel.Caption; 
end;
mine works just fine. ::sigh::
i think it wont works..try it..i just tried it and it didn't works
Reply With Quote
  #559  
Old 01-06-2013, 14:29
Smurf Stomper's Avatar
Smurf Stomper Smurf Stomper is offline
Registered User
 
Join Date: Feb 2007
Location: EU
Posts: 118
Thanks: 0
Thanked 10 Times in 8 Posts
Smurf Stomper is on a distinguished road
Full code section:

Code:
var
  bgImage : TBitmapImage;
  WelcomeLbl1,WelcomeLbl2,FinishedLbl1,FinishedLbl2: TLabel; 
  WelcomeLabel1,WelcomeLabel2,FinishedHeadingLabel,FinishedLabel: TLabel;

procedure InitializeWizard();  
begin
with wizardform do begin

  bgImage:= TBitmapImage.Create(MainForm);
  bgImage.Align:= alClient;
  bgImage.Stretch:= False;
  bgImage.Parent:= MainForm;
  bgImage.Center:= True;
  bgImage.BackColor:= $000000;

  WelcomeLabel1.Visible:= False
  WelcomeLabel2.Visible:= False
  FinishedLabel.Visible:= False
  FinishedHeadingLabel.Visible:= False

  WizardBitmapImage.Parent := WelcomePage;
  // the wizard.bmp images' dimensions specified here
  WizardBitmapImage.Width:= 497;
  WizardBitmapImage.height:= 313;
  WizardBitmapImage2.Width:= 497;
  WizardBitmapImage2.Height:= 313;
  
  WizardSmallBitmapImage.visible:=true;
  WizardSmallBitmapImage.Width:=220;
  WizardSmallBitmapImage.Height:=58;
  //use value of 0 for leftmost alignment
  WizardSmallBitmapImage.Left:=+0;
  
  //manipulate the small unbolded top text on wizard pages. 495 is the total width 
  //(subtract out the smallbitmapimage's width for the max text box width)
  
  PageDescriptionLabel.Visible:=true;
  PageDescriptionLabel.Width:=250;
  PageDescriptionLabel.Left:=+240;
  
  //manipulate the bold description text position
  PageNameLabel.Width:=275;
  PageNameLabel.Left:=+230;


//Manipulate text on welcome page - this is the top bold "Welcome..." text
  
WelcomeLbl1 := TLabel.Create(WizardForm);
  with WelcomeLbl1 do
  begin
    Parent := WizardForm.WelcomePage;
    WordWrap := True;
    AutoSize := False;
    Caption := WizardForm.WelcomeLabel1.Caption;
    Transparent:= True;
    Left := WelcomeLabel1.Left+50;
    Top := WelcomeLabel1.Top-10;
    Width:= 350;   
    Height := WelcomeLabel1.Height;
    Font.Color := ClBlack;
    Font.Size := 12;
    Font.Style := [fsBold];
  end;

WelcomeLbl2 := TLabel.Create(WizardForm);
  with WelcomeLbl2 do
  begin
    Parent := WizardForm.WelcomePage;
    WordWrap:= True;
    AutoSize:=False;
    Caption := WizardForm.WelcomeLabel2.Caption;
    Left := WelcomeLabel2.Left+90;
    Top := WelcomeLabel2.Top-10;
    Width := 230;    //this is the width of the text 'box'
    Height := WelcomeLabel2.Height;
    Transparent:= True;
    Font.Color:= ClBlack;

  end;

  //Manipulate text on finished page - this is the top bold "Completing..." text

FinishedLbl1 := TLabel.Create(WizardForm);
  with FinishedLbl1 do
  begin
    Parent := WizardForm.FinishedPage;
    WordWrap := True;
    AutoSize:=False;
    Caption := WizardForm.FinishedHeadingLabel.Caption;
    Transparent:=True;
    Left := WelcomeLbl1.Left;
    Top := WelcomeLbl1.Top;
    Width := WelcomeLbl1.Width;
    Height := WelcomeLbl1.Height;
    Transparent := True;
    Font.Color := ClBlack;
    Font.Size := 12;
    Font.Style := [fsBold];

  end;

FinishedLbl2 := TLabel.Create(WizardForm);
  with FinishedLbl2 do
  begin
    Parent := WizardForm.FinishedPage;
    WordWrap := True;
    AutoSize:=False;
    Caption := WizardForm.FinishedLabel.Caption ;
    Transparent := True;
    Left := WelcomeLbl2.Left;
    Top := WelcomeLbl2.Top;
    Width := WelcomeLbl2.Width ;
    Height := WelcomeLbl2.Height;
    Transparent := True;
    Font.Color := ClBlack;
  end;
  end;
end;

procedure CurPageChanged(CurPageID: Integer);
begin
  FinishedLbl2.Caption:= WizardForm.FinishedLabel.Caption; 
end;
Reply With Quote
The Following User Says Thank You to Smurf Stomper For This Useful Post:
y_thelastknight (01-06-2013)
  #560  
Old 01-06-2013, 15:49
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
depends on they types of files trying to compress. some compress better then others. look at any of the scripts posted that use peter's method ( bat file ).
Reply With Quote
The Following User Says Thank You to pakrat2k2 For This Useful Post:
y_thelastknight (02-06-2013)
  #561  
Old 03-06-2013, 08:15
Compiler Compiler is offline
Registered User
 
Join Date: Aug 2012
Location: A Planet called Earth.
Posts: 38
Thanks: 10
Thanked 7 Times in 7 Posts
Compiler is on a distinguished road
If I compress few parts of a game with Srep only and rest with Srep and Precomp,then how to use ISDONE[i.e; srep for one files and srep+precomp for other] ?

Last edited by Compiler; 03-06-2013 at 08:29.
Reply With Quote
  #562  
Old 03-06-2013, 11:27
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
@compiler
leave it as is, the arc.ini will solve your little problem.
Reply With Quote
  #563  
Old 04-06-2013, 06:04
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
Hello,
I have an issue with ISDone, let's say i have 2 arc archives
one to unpack to {app}\ and the second to {userdocs}\
When i uninstall the game it will remove the {app}\ data and leaves the docs.

Is there a solution so the files that copied to docs folder gets removed too?
Reply With Quote
  #564  
Old 04-06-2013, 12:03
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
hmm, try deltree, but it's doesn't make sense.
Reply With Quote
  #565  
Old 04-06-2013, 12:11
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
all files that are not copied to {pf} folder are not registered in the uninstall script, how to register them?
Reply With Quote
  #566  
Old 04-06-2013, 13:53
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
ask altef_4, he knows this. he did it with a filelist thingy.
but this is how you set it up.
DelTree(ExpandConstant('{userdocs}\Criterion Games'), True, True, True);

or something like this, now listen, I have a feeling that it's not a good idea of using deltree, so best to ask him.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
danswano (04-06-2013)
  #567  
Old 04-06-2013, 14:33
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
hehe, will wait a little bit before PMing him, he might see it and reply.
Reply With Quote
  #568  
Old 04-06-2013, 23:01
3rabGamers 3rabGamers is offline
Registered User
 
Join Date: Jun 2013
Location: Cairo
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
3rabGamers is on a distinguished road
Hi,
I have some points please :

1- what is the dif. between CI_Converted_To_CIU and CI 8.5.7.4 and CIU 1.0.0.6
in source projects ?

................

2-what is the best best command in Free arc for the highest compression ratio ?

................

3-How to compress videos and audio of games ?


................

4- What is the GDFBinary=GDF.dll

Quote:
good tool for making custom binary/GDF dlls for games.
Quote:
GDFMaker.7z

What is that ?

................

5 -

Quote:
[LauncherSettings]
InstallRedist=1

Launch1=DirectX
Launch164=0
Launch1BeforeInstall=1
LaunchCom1={src}\Support\directX9c\DXSETUP.exe
LaunchArg1=/silent

Launch2=Nvidia PhysX
Launch264=0
Launch2BeforeInstall=1
LaunchCom2={sys}\msiexec.exe
LaunchArg2=/qn /i "{src}\Support\PhysX-9.12.0613-SystemSoftware.msi"

This is means when the setup finished these programs will launched right ?
How to attach these programs ? + How to add more programs like that ?
I mean especially in these lines :

Quote:
Launch264=0
Launch2BeforeInstall=1
LaunchCom2={sys}\msiexec.exe
LaunchArg2=/qn /i "{src}\Support\PhysX-9.12.0613-SystemSoftware.msi"
................

6-How to less the files In the result
it make this :



------>




I mean when I get finished from all setting and compressing..etc
What should I do ?

Last edited by 3rabGamers; 04-06-2013 at 23:08.
Reply With Quote
  #569  
Old 05-06-2013, 05:20
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
1 - CI is a custom installer created by yener90, CIU is the advanced custom installer created by yener90, CI Conv CIU is CI Converted to CIU

2 - it depends on the files you are compressing.

3 - rather use srep compression or resample them

4 - gdf is the game binary, it shows and adds details of a the game in the registries and game explorer, gdf maker makes gmae binaries.

5 - it's the tasks the installer/setup should do.

6 - final files are autorun/setup.dll, setup.ini, setup.exe and setup.cab but you can use internal to make it autorun/setup.dll and setup.exe
Reply With Quote
  #570  
Old 05-06-2013, 05:57
3rabGamers 3rabGamers is offline
Registered User
 
Join Date: Jun 2013
Location: Cairo
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
3rabGamers is on a distinguished road
THANK YOU VERY MUCH

Quote:
2 - it depends on the files you are compressing.U

How ? Can you explain more with examples of games sizes and types please ?


Quote:
4 - gdf is the game binary, it shows and adds details of a the game in the registries and game explorer, gdf maker makes gmae binaries.
Is this important to use it when I repack a game ?

Quote:
6 - final files are autorun/setup.dll, setup.ini, setup.exe and setup.cab but you can use internal to make it autorun/setup.dll and setup.exe
Yeeeeees HOW ? compile using innoscript ? or ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



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


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