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
  #1  
Old 27-04-2013, 03:17
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,223 Times in 2,312 Posts
Razor12911 is on a distinguished road
BlackBox Inno Setup Script:

Creator:

RaZoR12911

Credits:

Bulat Ziganshin
Victor Dobrov
SotM
CTACKo
Shegorat

Instructions:

Graphics:

You can change all graphics which are in Graphics Folder inside attachment.

Installer Only Support:
Latest Freearc 0.67 Alpha Archives with/without precomp and srep compression.

Uses Inno Setup ANSI or Inno Setup Enhanced Edition ANSI or Inno Setup Unicode or Inno Setup Enhanced Edition Unicode

Check up inno setup documentation for other functions, like shortcuts, tasks, compoents but for now you need to know this.

New Directives

[ArcFiles]

how to set it up for freearc archive extracting process:

Section directives:

Source - Name of the archive
DestDir - Destination directory for unpacking archives
Components - Names of components that need for unpacking archive
Tasks - Names of tasks that need for unpacking archive
Disk - Number of the disk that contains the archive
Password - Acrhive password, if archive is encrypted
FilesList - Path to textfile with filenames which need to unpack from archives (!not tested)

Example:

[ArcFiles]
Source: {src}\Data1.cab; DestDir: {app}; Disk: 1;
Source: {src}\Data2.cab; DestDir: {app}; Disk: 2;
Source: {src}\Data3.cab; DestDir: {app}; Disk: 2; Password: 1234

Preview and Download
Attached Images
File Type: png Capture4.PNG (360.3 KB, 207 views)
File Type: png Capture5.PNG (46.9 KB, 195 views)
File Type: png Capture2.PNG (35.0 KB, 199 views)
Attached Files
File Type: 7z BlackBox_Script_RaZoR12911.7z (1.35 MB, 215 views)

Last edited by Razor12911; 27-04-2013 at 03:56.
Reply With Quote
The Following 5 Users Say Thank You to Razor12911 For This Useful Post:
-XCX- (11-12-2016), amgad_800 (05-05-2013), danswano (27-04-2013), Sony091090 (07-10-2016), y_thelastknight (28-04-2013)
Sponsored Links
  #2  
Old 22-04-2013, 08:47
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,223 Times in 2,312 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by danswano View Post
How do i dynamically make the installer asks for the next cab if it was missing on the disc without specifying which .cab is one the next disc?
you can use booleans and msgboxes.
Reply With Quote
  #3  
Old 22-04-2013, 12:54
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
Quote:
Originally Posted by Razor12911 View Post
you can use booleans and msgboxes.
How to display the "insert next disk message upon next missing data.cab from disc?
Reply With Quote
  #4  
Old 18-04-2013, 04:12
huavancuong098 huavancuong098 is offline
Registered User
 
Join Date: Mar 2013
Location: viet nam
Posts: 40
Thanks: 26
Thanked 5 Times in 5 Posts
huavancuong098 is on a distinguished road
how uniform the installer icon. When I change the commands in CI's project Inno yener90 it retains the old icon. Is there any way to change this icon in my icon!
Reply With Quote
  #5  
Old 18-04-2013, 04:40
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
In case no body saw my reply:
How do i dynamically make the installer asks for the next cab if it was missing on the disc without specifying which .cab is one the next disc?
Reply With Quote
  #6  
Old 20-04-2013, 11:52
Andre Jesus's Avatar
Andre Jesus Andre Jesus is offline
Registered User
 
Join Date: Jun 2012
Location: Brazil
Posts: 70
Thanks: 11
Thanked 0 Times in 0 Posts
Andre Jesus is on a distinguished road
Hello.

How can i change the value [mb] to gb?

Code:
DiskSpaceMBLabel=At least [mb] MB of free disk space is required.
Thanks in advance.
Reply With Quote
  #7  
Old 22-04-2013, 07:26
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,223 Times in 2,312 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by Andre Jesus View Post
Hello.

How can i change the value [mb] to gb?

Code:
DiskSpaceMBLabel=At least [mb] MB of free disk space is required.
Thanks in advance.
it's easy to do that just by using pos, check IS documentation
Reply With Quote
  #8  
Old 22-04-2013, 15:30
Andre Jesus's Avatar
Andre Jesus Andre Jesus is offline
Registered User
 
Join Date: Jun 2012
Location: Brazil
Posts: 70
Thanks: 11
Thanked 0 Times in 0 Posts
Andre Jesus is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
it's easy to do that just by using pos, check IS documentation
I really tried find any reference about how to make the script, but i don´t find.
Can you give me an example?

Last edited by Andre Jesus; 22-04-2013 at 15:34.
Reply With Quote
  #9  
Old 22-04-2013, 21:47
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,223 Times in 2,312 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by Andre Jesus View Post
I really tried find any reference about how to make the script, but i don´t find.
Can you give me an example?
example

sorry didn't also mention length

function MBToGB(MB : Integer): String;
begin
if Length(IntToStr(MB)) > 3 then
Result := Copy(IntToStr(MB), 0, Length(IntToStr(MB))-3) + '.' + Copy(IntToStr(MB), Length(IntToStr(MB))-2, 1) + ' GB'
else
Result := IntToStr(MB) + ' MB'
end;

how to use

Legend:
i = integer, a number to convert from MB to GB

MBToGB(i)
Reply With Quote
  #10  
Old 20-04-2013, 11:59
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
I would like to know that as well, but if the size is under 999 MB i think it should show up as MB not 0.x GB
Reply With Quote
  #11  
Old 20-04-2013, 19:33
spawniectes's Avatar
spawniectes spawniectes is offline
Senior Member
 
Join Date: Sep 2010
Location: Argentina
Posts: 202
Thanks: 52
Thanked 401 Times in 76 Posts
spawniectes is on a distinguished road
Quote:
Originally Posted by danswano View Post
I would like to know that as well, but if the size is under 999 MB i think it should show up as MB not 0.x GB
Actually if size is under 1024 MB (1024 MB = 1GB)
__________________
always above all, keep in mind that some day you will die. Bushido.
Reply With Quote
  #12  
Old 21-04-2013, 05:25
huavancuong098 huavancuong098 is offline
Registered User
 
Join Date: Mar 2013
Location: viet nam
Posts: 40
Thanks: 26
Thanked 5 Times in 5 Posts
huavancuong098 is on a distinguished road
CIU why when I use it to not show up the setup menu interface. Although I was rather png and bmp. You can help me!
Reply With Quote
  #13  
Old 22-04-2013, 10:51
kassane's Avatar
kassane kassane is offline
Registered User
 
Join Date: Nov 2011
Location: Somewhere in the World
Posts: 174
Thanks: 578
Thanked 117 Times in 47 Posts
kassane is on a distinguished road
I can not understand why the compression is giving this error:


Where did I go wrong?
Reply With Quote
  #14  
Old 22-04-2013, 13:02
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,223 Times in 2,312 Posts
Razor12911 is on a distinguished road
@danswano

for example

You can use this approach.

if not FileExist(ExpandConstant('{src}\DVD2\data7.bin')) then
begin
repeat

MsgBox('Insert Disk: 2', mbInformation, MB_OK);
until
FileExist(ExpandConstant('{src}\DVD2\data7.bin')) = True
end;
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
danswano (22-04-2013)
  #15  
Old 22-04-2013, 13:04
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,754
Thanks: 2,191
Thanked 11,223 Times in 2,312 Posts
Razor12911 is on a distinguished road
@kassane

maybe its disk space, check System Drive Hard Disk.
or method has a problem.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
kassane (23-04-2013)
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 15:19.


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