Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #796  
Old 21-05-2024, 03:27
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,439 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno - Updates

Just forget about the previous builds (May 19, etc.) because they had some issues. 'FMXForm.Show' didn't work properly, 'Translucent' objects didn't function, and 'BeginHaltProc' was broken, etc.

This update addresses those issues.




FMXInno - Final Release [2024-May-21]


Code:
* Integrated all the updates so far.
* Made some improvements and fixed bugs.
* Added new properties to classes.
* Updated Fluent API.

* Improved 'SetActiveThemeModeAwareness':
  -- It now supports all the forms except 'NormalForm' and 'ClassicForm'.

  > Fluent: ChangeFluentTheme (Dark/Light)
  > FluentColor: ChangeFluentColor
  > FluentBlendedColor: ChangeBlendedColor
  > BlankForm: ChangeBlankFormColor

* Optimized for higher DPI.
* Ensured FMXForm and MsgForms are shown in the desktop center.

* The package now includes InnoSetup v6.0.5 + ResTools IDE instead of InnoSetup v5.6.1:
  -- Make sure to use 'EmptyWizardForm' to resize the setup, especially for InnoSetup 6+.

* All basic tests were done with InnoSetup v6.3.0 Dev:
  -- To ensure FMXInno works with the latest updates of InnoSetup.

* Compiled in RadStudio 12.1 + Patch 01.


Quote:
Originally Posted by Fak Eid View Post
PS: Please also add GetSelectedDiskName (to get the name of the selected drive) on FDiskList.
A new property, 'GetSelectedDiskName', is available under 'FDiskList'.


The first post has been updated.


.

Last edited by BLACKFIRE69; 10-06-2024 at 11:48.
Reply With Quote
The Following 7 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (21-05-2024), audiofeel (21-05-2024), Behnam2018 (23-05-2024), Fak Eid (21-05-2024), hitman797 (21-05-2024), ScOOt3r (21-05-2024), Tihiy_Don (21-05-2024)
Sponsored Links
  #797  
Old 21-05-2024, 04:23
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 43
Thanks: 89
Thanked 26 Times in 18 Posts
Tihiy_Don is on a distinguished road
Please add the Cursor method for the FColorButton component.
Reply With Quote
  #798  
Old 23-05-2024, 12:29
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 95
Thanked 149 Times in 54 Posts
Fak Eid is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
A false screen pops-up for a few second and disappears every time the Setup.exe file is run. This was not happening in the 14th May or older version.
This issue is still happening in FMXInno [21-May] for all types of forms, at all resolutions and in both Inno Setup version, that is, 6.3.0 and 5.6.0
Reply With Quote
  #799  
Old 24-05-2024, 03:40
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 43
Thanks: 89
Thanked 26 Times in 18 Posts
Tihiy_Don is on a distinguished road
I also have this problem, a white square appears briefly on blankform. There is no such problem with imageform.
Reply With Quote
  #800  
Old 26-05-2024, 10:19
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,439 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
This issue is still happening in FMXInno [21-May] for all types of forms, at all resolutions and in both Inno Setup version, that is, 6.3.0 and 5.6.0

Windows gets new updates regularly, and i've upgraded to the newest version of RadStudio, so anything could be affect this. this is the best optimization that i can do on my part. if it doesn't work, then i can't do anything about it.

check the attachment.



Quote:
Originally Posted by Tihiy_Don View Post
Please add the Cursor method for the FColorButton component.

Added the 'cursor' property for custom blueprints.



InnoSetup 6.3.0 Dev:

Code:
* Compiled with the latest source code (2024-May-26).

* Added missing help files.

* Corrected custom syntax highlighting.
  -- In the previous build, i might have done something wrong. this build will fix it.

Last edited by BLACKFIRE69; 14-07-2024 at 02:20.
Reply With Quote
The Following 6 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (27-05-2024), audiofeel (26-05-2024), Cesar82 (26-05-2024), hitman797 (26-05-2024), Jahan1373 (26-05-2024), Tihiy_Don (26-05-2024)
  #801  
Old 27-05-2024, 01:54
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 95
Thanked 149 Times in 54 Posts
Fak Eid is on a distinguished road
Help for FNewINI

I still need help with this
Earlier to read AppName from .ini file we used to:
Code:
#define AppName ReadIni(SourcePath + "Game\Installer.ini", "Installer", "Name", "")

[Setup]
AppName={#AppName}
Is it possible to do it using the new FNewINI command like:
Code:
[Setup]
AppName=ANewInI.ReadString('Installer', 'Name', '')

Last edited by Fak Eid; 28-05-2024 at 04:19.
Reply With Quote
  #802  
Old 28-05-2024, 13:29
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,439 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
I still need help with this
Earlier to read AppName from .ini file we used to:
Code:
#define AppName ReadIni(SourcePath + "Game\Installer.ini", "Installer", "Name", "")

[Setup]
AppName={#AppName}
Is it possible to do it using the new FNewINI command like:
Code:
[Setup]
AppName=ANewInI.ReadString('Installer', 'Name', '')


this tool is the CLI version of 'FNewINI' and can be used for preprocessing and automating everything at compile-time.

in the attachment, you'll find a simple example of how to read and configure the setup with the following INI file.



.
Attached Images
File Type: png 0a.png (13.7 KB, 103 views)
File Type: png 0b.png (11.7 KB, 108 views)
File Type: png 1.png (31.8 KB, 107 views)
File Type: png 2.png (28.3 KB, 105 views)
File Type: png 3.png (16.0 KB, 103 views)
File Type: png 4.png (22.4 KB, 107 views)
File Type: png 5.png (29.9 KB, 102 views)
File Type: png w.png (23.8 KB, 101 views)
File Type: png x.png (221.3 KB, 107 views)

Last edited by BLACKFIRE69; 10-06-2024 at 11:49.
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (28-05-2024), Ele (29-05-2024), Fak Eid (28-05-2024), Jahan1373 (30-05-2024)
  #803  
Old 28-05-2024, 22:44
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 95
Thanked 149 Times in 54 Posts
Fak Eid is on a distinguished road
Hi @Blackfire,

It is good that we now have a preprocessor for Read INI, but personally I think that we only need that to pass {#AppName} and {#DirName} at the compile time during the setup creation process. Rest everything can be handled without preprocessor. The FNewINI is written well enough. Please consider an example I shared above for Icons creation. It is easy to read, has a common procedure for all AppExe, less code, has ability to add more parameters in future and doesn't use preprocessor. You can definitely enhance and add to FMXInno (if you feel)

If I have to use the preprocessor only, I'd rather use the older reliable method. But, thank you so much for the enhancements.

I'd be posting more on Redist installation handling and Data extraction handling. I'm coding and testing on them.
Reply With Quote
  #804  
Old 29-05-2024, 00:07
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 387
Thanks: 451
Thanked 961 Times in 326 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
Hi @Blackfire,

It is good that we now have a preprocessor for Read INI, but personally I think that we only need that to pass {#AppName} and {#DirName} at the compile time during the setup creation process. Rest everything can be handled without preprocessor. The FNewINI is written well enough. Please consider an example I shared above for Icons creation. It is easy to read, has a common procedure for all AppExe, less code, has ability to add more parameters in future and doesn't use preprocessor. You can definitely enhance and add to FMXInno (if you feel)

If I have to use the preprocessor only, I'd rather use the older reliable method. But, thank you so much for the enhancements.

I'd be posting more on Redist installation handling and Data extraction handling. I'm coding and testing on them.
the proposed version of @blackfire69 is good because an ordinary user no longer needs to manually create a checkbox and set the text and its coordinates to it, just make changes to the ini file and the checkbox will appear and the necessary archive will be searched for unpacking.
__________________
https://t.me/FMXInno
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
Ele (29-05-2024)
  #805  
Old 29-05-2024, 10:48
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 95
Thanked 149 Times in 54 Posts
Fak Eid is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
the proposed version of @blackfire69 is good because an ordinary user no longer needs to manually create a checkbox and set the text and its coordinates to it, just make changes to the ini file and the checkbox will appear and the necessary archive will be searched for unpacking.
I've an almost complete version of code where the user doesn't need to write any code at all for creating selective components. It's in my 'Random_Gamertags' Repack.

I've almost completed changes and currently testing this with new FNewINI

Last edited by Fak Eid; 29-05-2024 at 11:58.
Reply With Quote
  #806  
Old 29-05-2024, 11:48
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 387
Thanks: 451
Thanked 961 Times in 326 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
I've an almost complete version of code where the user doesn't need to write any code at all for selective components. It's in my 'Random_Gamertags' Repack.

I've almost completed changes and currently testing this with new FNewINI
Well, it will be very useful
__________________
https://t.me/FMXInno
Reply With Quote
  #807  
Old 04-06-2024, 09:19
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 95
Thanked 149 Times in 54 Posts
Fak Eid is on a distinguished road
Issue with FCombineText

Hi @Blackfire,

Not sure if you remember I asked how can I have just 1 character space instead of Tab Space for FCombineText, and you mentioned it can be done using 0 or -1, -2, etc. The problem is, it is not working for Smaller Font Size like 12-15. The two texts are not on same height and the gap is unusual. On Larger Font Size, like 16, it is working as expected. Can you help?

Code:
SectionText[1].FCreate(SectionContent[1].Handle, 500, 15, 'Developers :', INI_DEVELOPERS, -1, False);
SectionText[1].Text1Setting('{#FontName}', 12, {#FontColor}, False);
SectionText[1].Text2Setting('{#FontName}', 12, {#SelectedFontColor}, False);

SectionText[2].FCreate(SectionContent[1].Handle, 500, 35, 'Genre :', INI_GENRE, -1, False);
SectionText[2].Text1Setting('{#FontName}', 12, {#FontColor}, False);
SectionText[2].Text2Setting('{#FontName}', 12, {#SelectedFontColor}, False);
Attached Images
File Type: jpg Screenshot 2024-06-04 013716.jpg (11.1 KB, 136 views)
Reply With Quote
  #808  
Old 04-06-2024, 11:31
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 466
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
Hi @Blackfire,

Not sure if you remember I asked how can I have just 1 character space instead of Tab Space for FCombineText, and you mentioned it can be done using 0 or -1, -2, etc. The problem is, it is not working for Smaller Font Size like 12-15. The two texts are not on same height and the gap is unusual. On Larger Font Size, like 16, it is working as expected. Can you help?

Code:
SectionText[1].FCreate(SectionContent[1].Handle, 500, 15, 'Developers :', INI_DEVELOPERS, -1, False);
SectionText[1].Text1Setting('{#FontName}', 12, {#FontColor}, False);
SectionText[1].Text2Setting('{#FontName}', 12, {#SelectedFontColor}, False);

SectionText[2].FCreate(SectionContent[1].Handle, 500, 35, 'Genre :', INI_GENRE, -1, False);
SectionText[2].Text1Setting('{#FontName}', 12, {#FontColor}, False);
SectionText[2].Text2Setting('{#FontName}', 12, {#SelectedFontColor}, False);
Code:
    TTextAlign = (txCenter, txLeading, txTrailing); 
    procedure Text1HorzAlign(HAlign: TTextAlign);
    procedure Text2HorzAlign(HAlign: TTextAlign);
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
Fak Eid (04-06-2024)
  #809  
Old 04-06-2024, 23:50
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 95
Thanked 149 Times in 54 Posts
Fak Eid is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
Code:
    TTextAlign = (txCenter, txLeading, txTrailing); 
    procedure Text1HorzAlign(HAlign: TTextAlign);
    procedure Text2HorzAlign(HAlign: TTextAlign);
Hi @hitman @Blackfire

Thank you. I tried and have to manually align the text for this. However, in Smaller Font Size (like 12-15), the two text still doesn't seem to be aligned height-wise. Any fix for it?

Code:
  SectionText[1].FCreate(SectionContent[1].Handle, 500, 15, 'Developers :', INI_DEVELOPERS, -1, False);
  SectionText[1].Text1Setting('{#FontName}', 12, {#FontColor}, False);
  SectionText[1].Text2Setting('{#FontName}', 12, {#SelectedFontColor}, False);
  SectionText[1].Text1HorzAlign(txTrailing);
  SectionText[1].Text2HorzAlign(txTrailing);

  SectionText[2].FCreate(SectionContent[1].Handle, 505, 35, 'Genre :', INI_GENRE, -1, False);
  SectionText[2].Text1Setting('{#FontName}', 12, {#FontColor}, False);
  SectionText[2].Text2Setting('{#FontName}', 12, {#SelectedFontColor}, False);
  SectionText[2].Text1HorzAlign(txTrailing);
  SectionText[2].Text2HorzAlign(txTrailing);

  SectionText[3].FCreate(SectionContent[1].Handle, 500, 55, 'Release Date :', INI_RELEASE_DATE, -1, False);
  SectionText[3].Text1Setting('{#FontName}', 12, {#FontColor}, False);
  SectionText[3].Text2Setting('{#FontName}', 12, {#SelectedFontColor}, False);
  SectionText[3].Text1HorzAlign(txTrailing);
  SectionText[3].Text2HorzAlign(txTrailing);
Another issue: InstallFMXFont sometimes hangs the launch of Setup.exe during Runtime.
Attached Images
File Type: jpg Screenshot 2024-06-04 013716.jpg (12.2 KB, 139 views)

Last edited by Fak Eid; 05-06-2024 at 00:28.
Reply With Quote
  #810  
Old 05-06-2024, 04:09
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 43
Thanks: 89
Thanked 26 Times in 18 Posts
Tihiy_Don is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
Another issue: InstallFMXFont sometimes hangs the launch of Setup.exe during Runtime.
HI. Use new method:
Code:
function InitializeSetup: Boolean;
begin
  AddFontResource2(ExtractAndLoad('{#MyFont1}'));
  FMXInnoInit;
  Result:= True;
end;

procedure DeinitializeSetup();
begin
  RemoveFontResource2(ExpandConstant('{tmp}\{#MyFont1}'));
  ISArcExCleanUp;
  FMXInnoShutDown;
end;
Now you do not need to specify InstallFMXFont in the FMXDesigning procedure
Reply With Quote
The Following User Says Thank You to Tihiy_Don For This Useful Post:
BLACKFIRE69 (06-06-2024)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 14:00.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
FileForums @ https://fileforums.com