FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   FMXInno - Windows Fluent Design Installer UI for Inno (https://fileforums.com/showthread.php?t=104852)

Fak Eid 17-06-2024 00:18

Quote:

Originally Posted by audiofeel (Post 504813)
Is this solution not suitable for you?

This is for the directory. If this can somehow display menu folders, it can work. I thought if this feature was already present (like FStartMenuFolderTreeView) and if there exist a standard way by which we can do it.

BLACKFIRE69 17-06-2024 09:10

FXSignVerifier
 
5 Attachment(s)
Code:

App:      FXSignVerifier, A Signature Verifier For FMXInno 
Date:      2024-June-16 
CompilerZig v0.12.1


From now on, every FMXInno update attachment will be signed with a digital signature to verify that the update comes from a trusted source (in this case, me) and has not been tampered with.

So, what's the actual big deal with digital signing over checksum? Is a checksum not enough?


Checksum:
Quote:

1. No, a checksum is not enough. A checksum is used to verify the integrity of a file. It ensures that the file has not been corrupted or altered during transmission or storage.

2. Checksums are not secure against intentional tampering because if someone alters the file, they can also recompute the checksum.

3. Additionally, a checksum doesn't ensure that the file is coming from the original author (a trusted source).
Digital Signature:
Quote:

1. That's why digital signing comes in handy. A digital signature provides both integrity and authenticity. It ensures that the file has not been corrupted or altered and verifies the identity of the author.

2. Digital signatures are much more secure. They provide strong guarantees against tampering and forgery because the private key is known only to the signer (author).

3. They ensure the origin of the file (authenticity) and protect against modifications/corruptions (integrity).

Usage:
Code:

  FXSignVerifier.exe [-s sig_file] <-k pubkey> <-i file>

* You'll find the signature file and the public key for the latest version of FMXInno (2024-June-10) (.rar).
* The signature file will look like this:
Quote:

-----BEGIN SIGNATURE-----
Signature: signature from private key
RUTMYX9YetwBhHoWjuISrHpxLpFyXg2XiG02ff4cknKQU/6CAGlDsEIzuptvOLwACYfwEZhxNU9BRs4Kk78+obqIjcAPLkXU uQI=
Trusted: timestamp:1718633776, file:FMXInno + SKIA + Blend2D - Final Release [2024-June-10].rar, prehashed
3k+phFDdOLHstaec5OdCDUgQ2mEtZj1x4wpLkRPxGadrhSLovK 7TCBvb8Utsxj4JcYyxHkAjP0BbTBAVFRNzBA==
------END SIGNATURE------


.

hitman797 17-06-2024 10:53

Quote:

Originally Posted by Fak Eid (Post 504814)
This is for the directory. If this can somehow display menu folders, it can work. I thought if this feature was already present (like FStartMenuFolderTreeView) and if there exist a standard way by which we can do it.

use this procedure.
Code:

procedure SetPaths(const AUserPrograms, ACommonPrograms, AUserStartup, ACommonStartup: String);

Fak Eid 19-06-2024 13:24

@Blackfire69, Any idea how to import [Files] conditionally using FNewINI? No with pre-processor.

Any update on these?
FStartmenuFolderTreeView
HTMLViewer to play YT video
FDiskList enhancement and .mp4 support for FVideoPlayer

I tried this with HTML Viewer with WebView, but the huge logos of YT headbar takes the whole screen. My dimension for showing this is small. Anyways, if this can be done, will be a huge help for my Steam Limitless, as then the user won't have to import and include the video file in Setup.

Fak Eid 24-06-2024 04:12

Preprocessing value creation
 
This can read all single values of your Installer.ini without any use of plugin. Check example here or here

Code:

#define ReadInstaller(Section, Key, Default) ReadIni(SourcePath        + "Game\Installer.ini", Section, Key, Default)

[Setup]
AllowNoIcons=yes
AllowRootDirectory=true
AppId={{F9787790-D97B-457E-80DA-F69C91F862A8}
AppName={#ReadInstaller("Installer", "Name", "")}
AppVersion=1.0
AppCopyright=Random_Gamertags
DefaultDirName=C:\{#ReadInstaller("Installer", "DirName", "")}


CrownRepack 28-06-2024 11:29

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

Fak Eid 28-06-2024 12:25

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;


Fak Eid 29-06-2024 02:12

Quote:

Originally Posted by audiofeel (Post 504931)
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.:o

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.

ErinMonroe 02-07-2024 05:15

Is there a way to add a serial key page using this style? I am new to this!

Fak Eid 02-07-2024 05:39

Quote:

Originally Posted by ErinMonroe (Post 504946)
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

ErinMonroe 04-07-2024 06:00

Lockscreen
 
How do I activate the lock screen on this as in the example the lock screen does not appear to work.

Fak Eid 11-07-2024 13:05

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);

Fak Eid 12-07-2024 05:39

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.

BLACKFIRE69 14-07-2024 12:36

FMXInno Custom Shapes
 
3 Attachment(s)
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.

.

BLACKFIRE69 16-07-2024 04:03

1 Attachment(s)
hmm...
cool :p

.


All times are GMT -7. The time now is 09:30.

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