|
#11
|
||||
|
||||
|
FMXInno - Updates
If you want to protect your data especially things like graphics, it's now easy to do so with features built into the FMXInno. What happens here is that the FMXInno accesses those file in memory, which means that no file is created in the hard disk. Let's see how to do it. Quote:
* Be sure to create a new data file (Setup.dat) whenever you make changes to the script and recompile it. Because that file (Setup.dat) is unique. Otherwise, accessing the data file (Setup.dat) will be treated as unauthorized access. The attached example includes more details. Code:
function InitializeSetup(): Boolean;
begin
// FXStream
FXOk := FXUnPckrInit(ExpandConstant('{src}\Setup.dat'), '@#123_Test');
if not FXOk then
begin
MsgBox('Failed to initialize the setup. The installation process cannot continue.', mbError, MB_OK);
Result := False;
end
else
begin
FMXInnoInit;
Result := True;
end;
end;
// ...
procedure FMXDesigning;
begin
{ FMX Form }
FMXForm.FCreateImageFormFromFXStream(WizardForm.Handle, 'PicForm.png', 1.00);
FMXForm.SetCursor(ExtractAndLoad('Dark2.ani'));
{ Music Equ }
MusicEqu.FCreate(FMXForm.Handle, NSX(620), NSY(100), NSX(110), NSY(42), 1.5, 8, '');
MusicEqu.SetPictureFromFXStream('EqualizerLight.png');
MusicEqu.OnClick(@MusicEquOnClick);
{ PicBtn[1] }
PicBtn[1].FCreateFromFXStream(FMXForm.Handle, 'Button.png', NSX(600), NSY(455), NSX(125), NSY(45));
PicBtn[1].Text('&Cancel');
PicBtn[1].OnClick(@CommonOnClick);
// ...
{ PicPart }
PicPart.FCreateFromFXStream(FMXForm.Handle, 'mspaint.png', MusicEqu.GetLeft, MusicEqu.GetTop + NSY(100), 100, 100, 50, 50, 100, 100);
// ...
{ PicPB[1] }
PicPB[1].FCreateFromFXStream(FMXForm.Handle, 'pb.png', 'pbbkg.png', PctLabel.GetLeft + NSX(20), PctLabel.GetTop + NSY(50), 380, 25, True);
PicPB[1].Value(69, 100);
// ...
end;
. Last edited by BLACKFIRE69; 14-07-2024 at 01:34. |
| The Following 7 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
ADMIRAL (14-07-2022), ffmla (14-07-2022), Gehrman (12-07-2022), Harsh ojha (31-07-2022), houcine80 (13-07-2022), Razor12911 (19-08-2022), ScOOt3r (12-07-2022) | ||
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Fluent Effects Standalone API - InnoSetup / VCL / FXM | BLACKFIRE69 | Conversion Tutorials | 0 | 15-11-2023 17:35 |
| Windows Phone Installer similar to razor12911's original design? | Kitsune1982 | Conversion Tutorials | 0 | 02-07-2020 13:04 |
| INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 02:05 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |