|
#991
|
||||
|
||||
|
Quote:
Code:
///////////////////////////////////////////////////////////CUSTOM CHANGE DISC FORM
procedure MyChangeDiscMessage(Disk, Arc: String);
begin
MyChangeDisc := CreateCustomForm();
MyChangeDisc.BorderStyle:= bsNone;
MyChangeDisc.Position := poScreenCenter;
MyChangeDisc.BringToFront;
MyChangeDisc.ClientWidth := WizardForm.Width;
MyChangeDisc.ClientHeight := WizardForm.Height div 2;
MyChangeDiscLabel:= TLabel.Create(MyChangeDisc);
MyChangeDiscLabel.Parent:= MyChangeDisc;
MyChangeDiscLabel.Caption:='Please insert disc ' + Disk + ' with ' + ExtractFileName(Arc);
MyChangeDiscLabel.SetBounds(40,7,600,15);
MyChangeDiscLabel.AutoSize:= False;
MyChangeDiscLabel.WordWrap:= True;
MyChangeDiscLabel.Transparent:= True;
MyChangeDiscLabel.Font.Name := 'Verdana';
MyChangeDiscLabel.Font.Color:= clGray;
MyChangeDiscLabel.Font.Size:= 8;
CDYesBtn:=BtnCreate(MyChangeDisc.Handle,560,6,15,1 5,ExpandConstant('{tmp}\OkBtn.png'),0,False);
BtnSetEvent(CDYesBtn,BtnClickEventID,WrapBtnCallba ck(@ButtonOnClick,1));
BtnSetEvent(CDYesBtn,BtnMouseEnterEventID,WrapBtnC allback(@BtnEnter,1));
BtnSetCursor(CDYesBtn,GetSysCursorHandle(32649));
CDNoBtn:=BtnCreate(MyChangeDisc.Handle,572,6,15,15 ,ExpandConstant('{tmp}\ExitBtn.png'), 0, false);
BtnSetEvent(CDNoBtn,BtnClickEventID,WrapBtnCallback(@ButtonOnClick,1));
BtnSetEvent(CDNoBtn,BtnMouseEnterEventID,WrapBtnCa llback(@BtnEnter,1));
BtnSetCursor(CDNoBtn,GetSysCursorHandle(32649));
img:=ImgLoad(MyChangeDisc.Handle,ExpandConstant('{ tmp}\Exit.png'),0,0,600,190,True,True);
ImgApplyChanges(MyChangeDisc.Handle);
end;
function ShowDiskChanger(Disk, Arc: String):Integer;
begin
MyChangeDiscMessage(Disk, Arc);
Result:=MyChangeDisc.ShowModal;
end;
////////////////////////////////////////////////////////////////////////////////////////////////
|
| Sponsored Links |
|
#992
|
|||
|
|||
|
Thanks Altef, but unknow identifier Arc in this line, into curvestepchanged:
Quote:
Quote:
Quote:
Last edited by Logrim; 03-03-2014 at 06:04. |
|
#993
|
||||
|
||||
|
do you have Arc: array of string; in var section? or Arc: array [0..7] of string;
|
|
#994
|
|||
|
|||
|
Ermm.. Altef,, thanks for take so much trouble with me
.. im sleep .. i define the arc only as a string,, not array of string.. .. sorry.. all work perfect now,, script FINISHED!!!.. .. erm... i hope so :d.
|
|
#995
|
|||
|
|||
|
One question more... how can i make a multiple autorun? i mean.. "install game1", "install game2", "install game3". Thanks.. i recently discover how to make a mask for the installer, so I'm going to remodel completly the desing of the setup. All the installer work perfectly, without errors, thanks to your help again, razor, y_thelasknight and altef, only remain the multi-autorun
. thanks, and i hope you like the final design.
|
|
#996
|
||||
|
||||
|
Quote:
What you mean by multiple autorun. Did you create seperate script for autorun??
__________________
Glass BB | BlackBox v2 | Portable Installer |
|
#997
|
|||
|
|||
|
Yup, y_thelasknight, i have another script with the autorun..
i have it with install and play buttons.. (this are the main buttons). i want it with install1, install2, install3, button.. i figure how to make but I'm not sure and I prefer to ask before teasing the code
|
|
#998
|
|||
|
|||
|
I have a trouble.. i have bitmap resources in "SETUP"
"BitmapResource=btn:Res\btnimage.bmp|Logrim:Res\Lo grim.bmp But not load.. how can i load this resources? |
|
#999
|
||||
|
||||
|
Quote:
__________________
Glass BB | BlackBox v2 | Portable Installer |
|
#1000
|
|||
|
|||
|
.. install for example drakensang and drakensang 2, for the same dvd9 :P
|
|
#1001
|
||||
|
||||
|
multi is kinda tricky? do you want it to be like the one in Installer Creator or different?
|
|
#1002
|
|||
|
|||
|
something how IC, yup
|
|
#1003
|
||||
|
||||
|
then it's easy. there are many ways of doing it.
1) Create 3 autorun.exe's.(Very Simple/Worst Idea) 2) Create one autorun.exe with 3 launchers(Moderate) 3) Create one exe with the ability of three exe's. (Not a walk in a park) |
|
#1004
|
|||
|
|||
|
erm,., the 2 is my idea.. but.. how to do? :P. this is the question
|
|
#1005
|
||||
|
||||
|
make three buttons.
the buttons must not be enabled if exe is not found and if installation is not found else if exe is found and installation is found then enable the buttons. make the buttons onclicks to run exe from installation directory. Done. |
| The Following User Says Thank You to Razor12911 For This Useful Post: | ||
Logrim (05-03-2014) | ||
![]() |
|
|
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 |