|
#406
|
||||
|
||||
|
@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; |
| The Following User Says Thank You to Razor12911 For This Useful Post: | ||
danswano (22-04-2013) | ||
| Sponsored Links |
|
#408
|
|||
|
|||
|
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. |
|
#409
|
||||
|
||||
|
Quote:
Can you give me an example? Last edited by Andre Jesus; 22-04-2013 at 15:34. |
|
#410
|
||||
|
||||
|
Quote:
|
| The Following User Says Thank You to Razor12911 For This Useful Post: | ||
danswano (23-04-2013) | ||
|
#411
|
||||
|
||||
|
Quote:
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) |
|
#412
|
||||
|
||||
|
Quote:
Setup.zip |
|
#413
|
||||
|
||||
|
@Andre Jesus
Done man, check it out. Last edited by Razor12911; 23-04-2013 at 08:38. |
|
#414
|
|||
|
|||
|
Quote:
|
|
#415
|
||||
|
||||
|
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.
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.
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.
So, Inno Setup does not recognize the value in GB? |
|
#416
|
||||
|
||||
|
hmm, yeah, maybe, to me? I don't know, that's why I create custom forms.
|
|
#417
|
||||
|
||||
|
Quote:
Code:
[Messages] DiskSpaceMBLabel=At least 7,8 GB of free disk space is required. |
|
#418
|
||||
|
||||
|
How can i put a effect song when the mouse cursor pass on the button?
|
|
#419
|
||||
|
||||
|
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)); |
|
#420
|
||||
|
||||
|
Quote:
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;
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |