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
  #406  
Old 22-04-2013, 13:02
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,752
Thanks: 2,187
Thanked 11,212 Times in 2,310 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)
Sponsored Links
  #407  
Old 22-04-2013, 13:04
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,752
Thanks: 2,187
Thanked 11,212 Times in 2,310 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)
  #408  
Old 22-04-2013, 15:03
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
Is it possible to not specify the data.cab name and put the total number of cabs per disk?
something like dataX.cab and X is the cab batch replacement.
Reply With Quote
  #409  
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
  #410  
Old 22-04-2013, 21:38
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,752
Thanks: 2,187
Thanked 11,212 Times in 2,310 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by danswano View Post
Is it possible to not specify the data.cab name and put the total number of cabs per disk?
something like dataX.cab and X is the cab batch replacement.
yep, it is possible, been working with inno setup for quite a while, anything was possible for me, make a converter, an internet browser like internet explorer and etc, Want to create an Installer Designer or something like that for my source using Inno setup
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
danswano (23-04-2013)
  #411  
Old 22-04-2013, 21:47
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,752
Thanks: 2,187
Thanked 11,212 Times in 2,310 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
  #412  
Old 23-04-2013, 08:04
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
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)
Can you verify what is wrong?
Setup.zip
Reply With Quote
  #413  
Old 23-04-2013, 08:18
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,752
Thanks: 2,187
Thanked 11,212 Times in 2,310 Posts
Razor12911 is on a distinguished road
@Andre Jesus

Done man, check it out.
Attached Files
File Type: 7z Setup.7z (536 Bytes, 45 views)

Last edited by Razor12911; 23-04-2013 at 08:38.
Reply With Quote
  #414  
Old 23-04-2013, 08:49
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
yep, it is possible, been working with inno setup for quite a while, anything was possible for me, make a converter, an internet browser like internet explorer and etc, Want to create an Installer Designer or something like that for my source using Inno setup
Nice method, i will try it right now.
Reply With Quote
  #415  
Old 23-04-2013, 09:24
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
@Andre Jesus

Done man, check it out.
Thanks, but I thought the inno setup do the calculation automatically.
Note that if I change the value [MB] to [KB], it does the calculation automatically.

Example 1 - size MB.
Code:
[Setup]
AppName=Setup                  
AppVerName=Setup
OutputDir=.
DefaultDirName={pf}\Setup
Compression=none

[Files]
Source: Install\*; DestDir: "{app}";

[Messages]
DiskSpaceMBLabel=At least [mb] MB of free disk space is required.
Sem título.jpg

Example 2 - size kb
Code:
[Setup]
AppName=Setup                  
AppVerName=Setup
OutputDir=.
DefaultDirName={pf}\Setup
Compression=none

[Files]
Source: Install\*; DestDir: "{app}";
;The folder Install have 88,9 MB

[Messages]
DiskSpaceMBLabel=At least [kb] MB of free disk space is required.
Sem título14.jpg

Following the example above, believed that by entering [gb] he would do the calculation automatically for GB, however, he considers as text.

Code:
[Setup]
AppName=Setup                  
AppVerName=Setup
OutputDir=.
DefaultDirName={pf}\Setup
Compression=none

[Files]
Source: Install\*; DestDir: "{app}";
;The folder Install have 88,9 MB

[Messages]
DiskSpaceMBLabel=At least [gb] GB of free disk space is required.
Sem títulod.jpg

So, Inno Setup does not recognize the value in GB?
Reply With Quote
  #416  
Old 23-04-2013, 13:55
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,752
Thanks: 2,187
Thanked 11,212 Times in 2,310 Posts
Razor12911 is on a distinguished road
hmm, yeah, maybe, to me? I don't know, that's why I create custom forms.
Reply With Quote
  #417  
Old 23-04-2013, 14:55
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
hmm, yeah, maybe, to me? I don't know, that's why I create custom forms.
Well, anyway I will change the information in the [Messages]. Knowing the size of the game without compacting, just enter the size as shown below:

Code:
[Messages]
DiskSpaceMBLabel=At least 7,8 GB of free disk space is required.
Thank you very much again for your helo Razor12911.
Reply With Quote
  #418  
Old 23-04-2013, 14:56
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
How can i put a effect song when the mouse cursor pass on the button?
Reply With Quote
  #419  
Old 24-04-2013, 01:48
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,752
Thanks: 2,187
Thanked 11,212 Times in 2,310 Posts
Razor12911 is on a distinguished road
you use this

function sndPlaySound(lpszSoundName: String; uFlags: cardinal):integer; external '[email protected] stdcall';

example

sndPlaySound(ExpandConstant('{tmp}\ButtonSoundSele cted.wav'),$0001);

use these on default buttons

OnClick:=;
OnDblClick:=;
OnMouseDown:=;

use these for custom buttons (botva2 buttons)

BtnSetEvent(,BtnClickEventID,WrapBtnCallback(sndPl aySound(ExpandConstant('{tmp}\ButtonSoundSelected. wav'),$0001);,1));
BtnSetEvent(,BtnMouseEnterEventID,WrapBtnCallback( sndPlaySound(ExpandConstant('{tmp}\ButtonSoundSele cted.wav'),$0001);,1));
Reply With Quote
  #420  
Old 24-04-2013, 12:18
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
you use this

function sndPlaySound(lpszSoundName: String; uFlags: cardinal):integer; external '[email protected] stdcall';

example

sndPlaySound(ExpandConstant('{tmp}\ButtonSoundSele cted.wav'),$0001);

use these on default buttons

OnClick:=;
OnDblClick:=;
OnMouseDown:=;

use these for custom buttons (botva2 buttons)

BtnSetEvent(,BtnClickEventID,WrapBtnCallback(sndPl aySound(ExpandConstant('{tmp}\ButtonSoundSelected. wav'),$0001);,1));
BtnSetEvent(,BtnMouseEnterEventID,WrapBtnCallback( sndPlaySound(ExpandConstant('{tmp}\ButtonSoundSele cted.wav'),$0001);,1));
Hi.
Can you please verify?

The error is:
Line 191:
Column 109:
comma (',') expected.

Code:
with WizardForm.NextButton do begin
hNextBtn:=BtnCreate(WizardForm.Handle,Left-8,Top-8,Width+10,Height+10,ExpandConstant('{tmp}\button.png'),18,False);
BtnSetEvent(hNextBtn,BtnClickEventID,WrapBtnCallback(@WizardFormBtnClick,1));
BtnSetFontColor(hNextBtn,$FFFFFF,$00FFFF,$0000FF,$000000);
BtnSetFont(hNextBtn,ButtonFont.Handle);
//The error is the line below.
BtnSetEvent(hNextBtn,BtnClickEventID,WrapBtnCallback(sndPlaySound(ExpandConstant('{tmp}\soundfx.wav'),$0001);,1));
BtnSetEvent(hNextBtn,BtnMouseEnterEventID,WrapBtnCallback(sndPlaySound(ExpandConstant('{tmp}\soundfx.wav'),$0001);,1));
Width:=0;
Height:=0;
end;
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 12:42.


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