Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28-06-2024, 11:29
CrownRepack CrownRepack is offline
Registered User
 
Join Date: Apr 2024
Location: In My Home
Posts: 24
Thanks: 30
Thanked 20 Times in 13 Posts
CrownRepack is on a distinguished road
Hi, I'm trying to add a function in my installer similar to CODEX or FLT installer where there's a checkbox that is "Copy Crack from directory" or "Apply Crack" ,

I want to repack the game in its original uncracked state and do multiple selections for a crack, so what I want is someone to help me write a code, or there is a template to basically just copy the crack from a specific folder

For example I have a game Cuphead, and in the main directory folder of the game I have a folder called "Crack" and in there I have the cracks

So what's the code to basically just copy the contents of the Crack folder to the game after installing if the user checks the checkbox... thank you
Reply With Quote
Sponsored Links
  #2  
Old 29-06-2024, 02:12
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
I wouldn't do that for several reasons. The antivirus scan block this executable file. It can be replaced by an administrator or a moderator of an internet resource (or someone else when they post this repack on their site). We need to check whether the real file was actually copied from that folder, or if it was replaced (We need to check the file size or its hash value.). Only then "Result:=True". In general, you're trying to complicate things and invent a new wheel, even though it's already been invented for a long time. It would be much clearer if you had the executable file in a single archive.
Alternate to that, if you really want to do so, you can compress 'Crack' folder like crack.bin and extract it just like additional component based on checkbox click. you can verify that crack.bin in your installer itself, then.
Reply With Quote
  #3  
Old 28-06-2024, 12:25
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
You should rather put your "Crack" folder in source than in application installation location. I prefer that.

Code:
[Files]
Source: "{src}\Crack\*"; DestDir: "{app}"; Check: ApplyCrack
Code:
function ApplyCrack: Boolean;
begin
  Result := Checkbox[1].IsChecked;
end;
Reply With Quote
  #4  
Old 02-07-2024, 05:15
ErinMonroe ErinMonroe is offline
Registered User
 
Join Date: Jun 2024
Location: Australia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ErinMonroe is on a distinguished road
Is there a way to add a serial key page using this style? I am new to this!
Reply With Quote
  #5  
Old 02-07-2024, 05:39
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
Quote:
Originally Posted by ErinMonroe View Post
Is there a way to add a serial key page using this style? I am new to this!
You can refer Example_QuickMsg_3.iss from the main post
Reply With Quote
  #6  
Old 04-07-2024, 06:00
ErinMonroe ErinMonroe is offline
Registered User
 
Join Date: Jun 2024
Location: Australia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
ErinMonroe is on a distinguished road
Lockscreen

How do I activate the lock screen on this as in the example the lock screen does not appear to work.
Reply With Quote
  #7  
Old 11-07-2024, 13:05
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
I have a CustomForm: FCustomFluentWindow on which I have a 'browse' button for Directory change. When I click on it, I have DirBrowseDlg: FFLuentDirBrowse, which keeps flickering. The reason it is flickering is because the CustomForm is still open. If I close that CustomForm, the flickering stop.

@Blackfire, please acknowledge this issue to either fix it, or as a workaround I'm closing the CustomForm when 'Browse' button is clicked, but want Custom.Show after the user clicks on 'Ok'/'Cancel' on DirBrowseDlg. Can anybody help me with code snippet?

I might need
procedure ButtonOnMouseClick(ButtonIndex: Integer; Event: TNotifyEvent);
Reply With Quote
  #8  
Old 12-07-2024, 05:39
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
Even with this solution, we would still require an event listener like:
procedure ButtonOnMouseClick(ButtonIndex: Integer; Event: TNotifyEvent);

or else how will it enter @CommonOnClick code block, without creating custom buttons for ok and cancel.
Reply With Quote
  #9  
Old 14-07-2024, 12:36
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 701
Thanks: 486
Thanked 2,614 Times in 574 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno Custom Shapes

FMXInno Custom Shapes:


Quote:
Is it boring to use regular shapes every time? if so, you can start creating your own shapes to use in FMXInno.

.
Attached Images
File Type: png 02.png (62.3 KB, 268 views)
File Type: png 01.png (26.0 KB, 263 views)
File Type: png 00.png (40.1 KB, 267 views)

Last edited by BLACKFIRE69; 26-06-2026 at 05:16.
Reply With Quote
The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (14-07-2024), hitman797 (14-07-2024), Lord.Freddy (16-07-2024)
  #10  
Old 16-07-2024, 04:03
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 701
Thanks: 486
Thanked 2,614 Times in 574 Posts
BLACKFIRE69 is on a distinguished road
Thumbs up

hmm...
cool

.
Attached Images
File Type: png img287665852447.png (35.6 KB, 249 views)
Reply With Quote
The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (16-07-2024), Behnam2018 (17-07-2024), hitman797 (17-07-2024), ScOOt3r (16-07-2024)
  #11  
Old 27-07-2024, 03:46
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 701
Thanks: 486
Thanked 2,614 Times in 574 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno Community

-- Frequent Requests from the FMXInno Community --


Quote:
* Users frequently ask how to play videos (locally/web) through WebView2.
* it's not a big deal; it can be done using a simple HTML file and/or just HTML content.

Quote:
- So, i decided to give you some examples. in the attachment, you'll find 6 examples related to this.

- Here, i've used inline-CSS for styles and ease of use. but you don't have to do it this way; you can have a separate CSS file (Style.css) for this purpose.

- As i mentioned before, you can achieve this in two ways: either by generating an HTML file at runtime or by using HTML content instead of a file. however, there're some limitations with HTML content. with this approach, you may not have the auto-run feature, and you need to do folder mapping for resources. so, i personally prefer generating an HTML file at runtime; it's much easier.

- It's possible to control video playback (pause, resume, stop, etc.) through WebView2 by injecting JavaScript into the HTML file loaded in the WebView2 control. you can call these JavaScript functions from FMXInno code using the ExecuteScript method of WebView2.

- Also, you'll find a simple tool (_TxtToDelphiStr.exe) in the attachment that converts an HTML file to a Delphi/Inno string, saving you time.

- The HTML content in the examples is not exactly the same as the output of '_TxtToDelphiStr.exe' because i've made some necessary changes to make everything work. so, don't get things mixed up.

- I've updated the WebView2 to the latest version in the FMXInno DLL.

- These examples are only for Windows 10 and Windows 11 as WebView2 requires the 'WebView2 Runtime' to be installed on the system.

- Alternatively, download the WebView2 Runtime manually for unsupported systems. Download Microsoft WebView2


.
Attached Images
File Type: png 00.png (1.7 KB, 212 views)
File Type: png 00b.png (1.6 KB, 210 views)
File Type: png x3.png (101.1 KB, 210 views)
File Type: png x2.png (86.9 KB, 215 views)
File Type: png x1b.png (21.1 KB, 211 views)
File Type: png x1.png (41.3 KB, 217 views)
File Type: png w3.png (22.6 KB, 217 views)
File Type: png w2.png (20.3 KB, 214 views)
File Type: png w1.png (13.3 KB, 211 views)

Last edited by BLACKFIRE69; 26-06-2026 at 05:16.
Reply With Quote
The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (27-07-2024), Ele (28-07-2024), Fak Eid (27-07-2024), hitman797 (27-07-2024), ScOOt3r (27-07-2024)
  #12  
Old 29-07-2024, 13:24
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
What are the chances that Epic Games updated their UI few days after I created an installer that looks like it. Draining all my efforts
Reply With Quote
  #13  
Old 29-07-2024, 21:00
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 43
Thanks: 91
Thanked 26 Times in 18 Posts
Tihiy_Don is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
What are the chances that Epic Games updated their UI few days after I created an installer that looks like it. Draining all my efforts
They specifically looked at your installer to change the design. Gabe told me himself.
Reply With Quote
  #14  
Old 30-07-2024, 15:06
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
Help with WebView

Any idea how can I bring this section to the front in case of using WebView? When using FImage, on the click of Downloads button I'm doing DownloadInfo.BringToFront; which doesn't seem to be working in case of FWebView.

As an alternate, I'm hiding the FWebView when the Download Info section is opened, but it looks clumsy and not good. If we can display this over it, would be really good.
Attached Images
File Type: jpg Screenshot 2024-07-31 033332.jpg (78.9 KB, 191 views)
Reply With Quote
  #15  
Old 05-08-2024, 02:41
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 98
Thanked 152 Times in 54 Posts
Fak Eid is on a distinguished road
Add parameters to WebView

Hi @Blackfire,

I personally believe that WebView has too much of unexplored potential just like FNewINI and there are numerous amount of possibility with it.
- Can we have SetBounds and IsVisible parameters on FWebView2Obj?
- Can we make it dependent on FRectangle handles completely instead of FMXForm.Handle?

I might be asking for more features on it.
Including these parameters will help me to add WebView in my Steam Limitless installer.

Last edited by Fak Eid; 05-08-2024 at 02:45.
Reply With Quote
Reply


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 04:06.


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