#571
|
||||
|
||||
Quote:
__________________
https://t.me/FMXInno |
The Following 2 Users Say Thank You to audiofeel For This Useful Post: | ||
Behnam2018 (04-10-2023), hitman797 (04-10-2023) |
Sponsored Links |
#572
|
||||
|
||||
![]() Code:
hDrive: TDriveComboBox; hFilter: TFilterComboBox; hDirectory: TDirectoryListBox; hFileList: TFileListBox; Last edited by hitman797; 14-10-2023 at 08:16. |
The Following User Says Thank You to hitman797 For This Useful Post: | ||
audiofeel (05-10-2023) |
#573
|
|||
|
|||
Please may I have some guidance transitioning my Installer from IsArcEx to using the module included in FMXInno? IsArcEx.dll is getting a lot of hits on VT and people downloading my releases are accusing me of putting trojans in the release.
|
The Following User Says Thank You to Masquerade For This Useful Post: | ||
hitman797 (06-10-2023) |
#574
|
||||
|
||||
Quote:
Code:
[Files] Source: "Files\FMXInno.dll"; Flags: dontcopy; Code:
type TCallback = function(OverallPct, CurrentPct, DiskTotalMB, DiskExtractedMB: Integer; DiskName, CurrentFile, RemainsTime, ElapsedTime, CurSpeed, AvgSpeed: WideString): LongWord; TCallbackEx = function(OverallPct, CurrentPct, DiskTotalMB, DiskExtractedMB, TotalFiles, CurFiles: Integer; DiskName, CurrentFile, RemainsTime, ElapsedTime, CurSpeed, AvgSpeed: WideString): LongWord; Code:
var ISArcExDiskCount : Integer; ISArcExCancel : Integer; ISArcExError : Boolean; ISArcDiskAddingSuccess: Boolean; Code:
function ISArcExInit(WinHandle: Longint; TimeFormat: Integer; Callback: TCallback): Boolean; external 'ISArcExInit@files:FMXInno.dll stdcall delayload'; function ISArcExInitEx(WinHandle: Longint; TimeFormat: Integer; Callback: TCallbackEx): Boolean; external 'ISArcExInitEx@files:FMXInno.dll stdcall delayload'; function ISArcExAddDisks(Inputfile, Password, OutputPath: Widestring): Boolean; external 'ISArcExAddDisks@files:FMXInno.dll stdcall delayload'; function ISArcExExtract(DiskNumber: Integer; CfgFile, WorkPath: Widestring): Boolean; external 'ISArcExExtract@files:FMXInno.dll stdcall delayload'; procedure ISArcExCallbackInterval(MSec: Cardinal); external 'ISArcExCallbackInterval@files:FMXInno.dll stdcall delayload'; function ISArcExGetCallbackInterval: Cardinal; external 'ISArcExGetCallbackInterval@files:FMXInno.dll stdcall delayload'; procedure ISArcExReduceCalcAccuracy(Factor: Byte); // Factor: 1-5 external 'ISArcExReduceCalcAccuracy@files:FMXInno.dll stdcall delayload'; function SuspendProc: Boolean; external 'SuspendProc@files:FMXInno.dll stdcall delayload'; function ResumeProc: Boolean; external 'ResumeProc@files:FMXInno.dll stdcall delayload'; procedure ISArcExStop; external 'ISArcExStop@files:FMXInno.dll stdcall delayload'; procedure ISArcExCleanUp; external 'ISArcExCleanUp@files:FMXInno.dll stdcall delayload'; function ChangeLanguage(Language: Widestring): boolean; external 'ChangeLanguage@files:FMXInno.dll stdcall delayload'; function Exec2(filename, Param: WideString; Show: Boolean): Boolean; external 'Exec2@files:FMXInno.dll stdcall delayload'; Last edited by hitman797; 06-10-2023 at 02:26. |
The Following User Says Thank You to hitman797 For This Useful Post: | ||
Masquerade (06-10-2023) |
#575
|
|||
|
|||
And am I alright, with this code, to just drag and drop the FMX files into the project? I haven't upgraded the DLL in while.
|
#576
|
||||
|
||||
Quote:
I was also written with this problem
__________________
https://t.me/FMXInno |
The Following User Says Thank You to audiofeel For This Useful Post: | ||
Masquerade (06-10-2023) |
#577
|
|||
|
|||
I'm getting so far, but I think I've hit a roadblock. When compiling, the following line of code hits an error with invalid number of parameters. I have determined this to be "PreviousFileCount: Integer;" but please may somebody explain what this means? I will try to fix that.
Code:
VerifyHashesFromFile(ExpandConstant('{app}\_Verify\kaos.blake3'), ExpandConstant('{app}\_Verify'), 11, False, @VerifyHashMultiCallback); Code:
function VerifyHashesFromFile(ChecksumFile, BasePath: WideString; HashAlgo, PreviousFileCount: Integer; LogFile: Boolean; Callback: TMultiHashCallback): Integer; MinimizeWindowCustomAnimated(FMXForm.HandleHWND, 50, 50, 40, 15); As the new function only takes 2 parameters. Last edited by Masquerade; 06-10-2023 at 03:02. |
The Following User Says Thank You to Masquerade For This Useful Post: | ||
Cesar82 (06-10-2023) |
#578
|
||||
|
||||
Quote:
Code:
VerifyHashesFromFile(ExpandConstant('{app}\_Verify\kaos.blake3'), ExpandConstant('{app}\_Verify'), 11, 0,False, @VerifyHashMultiCallback); Code:
function VerifyHashesFromFile(ChecksumFile, BasePath: WideString; HashAlgo, PreviousFileCount: Integer; LogFile: Boolean; Callback: TMultiHashCallback): Integer; Quote:
Code:
type TMinimizeAnimPos = (mapTop, mapBottom, mapLeft, mapRight); function MinimizeWindowCustomAnimated(MinimizeAnimPos: TMinimizeAnimPos): Boolean; external 'MinimizeWindowCustomAnimated@files:FMXInno.dll stdcall delayload'; procedure pMinimizeWindow(const WinHandle: Cardinal); external 'pMinimizeWindow@files:FMXInno.dll stdcall delayload'; Code:
MinimizeWindowCustomAnimated(mapTop); MinimizeWindow(WizardForm.Handle); Last edited by hitman797; 06-10-2023 at 06:09. |
The Following User Says Thank You to hitman797 For This Useful Post: | ||
audiofeel (06-10-2023) |
#579
|
||||
|
||||
Quote:
Using this parameter, the total number of files will be displayed correctly when entering the value from the previous call. Code:
VerifyHashesFromFile(ExpandConstant('{app}\_Verify\kaos.blake3'), ExpandConstant('{app}\_Verify'), 11, 0, False, @VerifyHashMultiCallback); |
The Following 3 Users Say Thank You to Cesar82 For This Useful Post: | ||
#580
|
||||
|
||||
Quote:
Code:
MinimizeWindowCustomAnimated(mapTop); Code:
mapTop, mapBottom, mapLeft, mapRight Code:
TObject(TitleLabel[3].GetObject): begin MinimizeWindowCustomAnimated(mapTop); pMinimizeWindow(WizardForm.Handle); end; Code:
TObject(TitleLabel[3].GetObject): begin pMinimizeWindow(WizardForm.Handle); end;
__________________
https://t.me/FMXInno |
The Following User Says Thank You to audiofeel For This Useful Post: | ||
hitman797 (06-10-2023) |
#581
|
|||
|
|||
Sorry to keep asking, but now I've got a Type Mismatch for the following lines:
<button>.OnMouseDown(@CommonButtonDown); <button>.OnMouseUp(@CommonButtonUp); It seems that OnMouseDown/OnMouseUp are both TMouseEventF whereas CommonButtonDown/Up is a procedure. Is this the cause of the error? Apologies for asking so much! ![]() |
#582
|
||||
|
||||
![]() Quote:
Code:
procedure OnMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single); begin // end; procedure OnMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single); begin // end; Code:
TMouseEventF = procedure(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single); TMouseMoveEventF = procedure(Sender: TObject; Shift: TShiftState; X, Y: Single); TKeyEventF = procedure(Sender: TObject; var Key: Word; var KeyChar: WideChar; Shift: TShiftState); Last edited by hitman797; 06-10-2023 at 07:09. |
The Following User Says Thank You to hitman797 For This Useful Post: | ||
audiofeel (06-10-2023) |
#583
|
||||
|
||||
![]()
hi, @BLACKFIRE69 can you add this class to the FMXInno.
this class is VCL component in unite VCL.FileCtrl. I use unite FMX.Platform.Win to Handle the VCL component in FMX Form. I made example in delphi. THANK YOU. Win 3.1: Code:
hDrive: TDriveComboBox; hFilter: TFilterComboBox; hDirectory: TDirectoryListBox; hFileList: TFileListBox; Code:
procedure ListBoxItemClick(const Sender: TCustomListBox; const Item: TListBoxItem); begin end; Code:
GetText Last edited by hitman797; 06-10-2023 at 22:46. |
The Following User Says Thank You to hitman797 For This Useful Post: | ||
audiofeel (06-10-2023) |
#584
|
||||
|
||||
Quote:
sorry for the delayed response; i've been quite busy these past few days and, to be honest, i haven't had a good night's sleep in two days. ![]() it seems that the wGetLogicalDriveList function doesn't function as expected in InnoSetup v5.x. however, the FLogicalDrives class works reliably across all scenarios and has undergone thorough testing. Code:
type FLogicalDrives = interface(IUnknown) '{73D9B3A3-6571-474E-B043-7DC8D3248538}' procedure FCreate; function Count: Integer; function CDriveIndex: Integer; function Letter(const Index: Integer): WideString; function LetterToIndex(const Letter: WideString): Integer; function IsRemovable(const Index: Integer): Boolean; function MediaType(const Index: Integer): Integer; function MediaTypeEx(const Index: Integer; out HealthStatus, Usage: Integer): Integer; function SpaceFreeMB(const Index: Integer): Integer; function SpaceAvailableMB(const Index: Integer): Integer; function SpaceTotalMB(const Index: Integer): Integer; end; Code:
{ Drive Media Type } const HDD_MEDIA_TYPE_UNKNOWN = $0000; HDD_MEDIA_TYPE_USB = $0001; HDD_MEDIA_TYPE_SD = $0002; HDD_MEDIA_TYPE_HDD = $0003; HDD_MEDIA_TYPE_SSD = $0004; HDD_MEDIA_TYPE_SCM = $0005; HDD_MEDIA_TYPE_NVMe = $0006; { Drive Health } const HDD_HEALTH_STATUS_HEALTHY = $0000; HDD_HEALTH_STATUS_WARNING = $0001; HDD_HEALTH_STATUS_UNHEALTHY = $0002; HDD_HEALTH_STATUS_UNKNOWN = $0005; { Drive Usage } const HDD_USAGE_UNKWOWN = $0000; HDD_USAGE_AUTO_SELECT = $0001; // used for data storage. HDD_USAGE_MANUAL_SELECT = $0002; // used if manually selected by an administrator at the time of virtual disk creation. HDD_USAGE_RETIRED = $0004; // retired from use HDD_USAGE_CACHE = $0005; // used as a cache for other devices. Code:
{ LogicalDrives } LogicalDrives.FCreate; if LogicalDrives.Count > 0 then begin { ListBox } ListBox.FCreate(FMXForm.Handle); ListBox.SetBounds(NSX(32), NSY(53), NSX(297), NSY(249)); ListBox.OnChange(@ListBoxOnChange); if ImgList.Count >= 2 then ListBox.ImageList(ImgList.Handle); { ListBox-Items } SetArrayLength(ListBoxItems, LogicalDrives.Count); ListBox.BeginUpdate; // BeginUpdate for i := 0 to LogicalDrives.Count - 1 do begin ListBoxItems[i] := InitListBoxItemHandle; ListBoxItems[i].FCreate(ListBox.Handle); ListBoxItems[i].Text(LogicalDrives.Letter(i)); if (ImgList.Count >= 2) then begin if (i = LogicalDrives.CDriveIndex) then // C-Drive ListBoxItems[i].ImageIndex(0) else ListBoxItems[i].ImageIndex(1); end; ListBox.AddItem(ListBoxItems[i].Handle); end; ListBox.EndUpdate; // EndUpdate end else MsgBox('"LogicalDrives" failded!', mbError, MB_OK); . Last edited by BLACKFIRE69; 14-07-2024 at 02:10. |
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
#585
|
||||
|
||||
Quote:
__________________
https://t.me/FMXInno Last edited by audiofeel; 27-12-2023 at 10:06. |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |