![]() |
@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; |
@kassane
maybe its disk space, check System Drive Hard Disk. or method has a problem. |
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. |
Quote:
Can you give me an example? |
Quote:
|
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) |
1 Attachment(s)
Quote:
Attachment 6115 |
1 Attachment(s)
@Andre Jesus
Done man, check it out. |
Quote:
|
3 Attachment(s)
Quote:
Note that if I change the value [MB] to [KB], it does the calculation automatically. Example 1 - size MB. Code:
[Setup]Example 2 - size kb Code:
[Setup]Following the example above, believed that by entering [gb] he would do the calculation automatically for GB, however, he considers as text. Code:
[Setup]So, Inno Setup does not recognize the value in GB? |
hmm, yeah, maybe, to me? I don't know, that's why I create custom forms.
|
Quote:
Code:
[Messages] |
How can i put a effect song when the mouse cursor pass on the button?
|
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)); |
Quote:
Can you please verify? The error is: Line 191: Column 109: comma (',') expected. Code:
with WizardForm.NextButton do begin |
| All times are GMT -7. The time now is 06:01. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com