View Single Post
  #1  
Old 06-09-2023, 09:20
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Talking VclStylesInno.dll + Protected Styles

VclStylesInno.dll + Protected Styles


> This modified version of 'VclStylesInno.dll' is for those who want to hide their 'Style' from others.

> The procedure is straightforward: 'ResourcesPacker.exe' will encrypt your 'Style' file and save it in the DLL's resources.

> Afterward, you only need to call 'LoadVCLStyleFromResourcesW' within the 'script' file to load the 'Style' file.



Quote:
Q: So, can anyone just grab the 'Style' file from the resources? And if they can, what happens next?
A: Yeah, but the 'Style' file is already encrypted, so nobody can use it.

Q: What else can you do to make it even more secure?
A: I can introduce a password, so only the person with the password can use this 'Style' files.

Code:
STEPS:

1. If the 'VclStylesInno.dll' file is compressed (upx), unpack it.
2. Run 'ResourcesPacker.exe' and add the 'Style' files into the resources.
3. Load the 'Style' files using the 'LoadVCLStyleFromResourcesW' function.
4. If needed, you can compress (upx) the Dll file again.
Code:
function InitializeSetup(): Boolean;
begin
  LoadVCLStyleFromResourcesW('STYLE_02');
  Result := True;
end;
Code:
Tested:

1. InnoSetup: v6.2.2
2. VclStylesInno (Mod): v1.5.4.1
3. UPX: v4.1.0
4. Windows 11/10.
Attached Images
File Type: png A.png (53.0 KB, 543 views)
File Type: png B.png (37.9 KB, 536 views)
File Type: png C.png (24.0 KB, 526 views)
File Type: png C2.png (32.7 KB, 527 views)
File Type: png D.png (28.9 KB, 524 views)
Attached Files
File Type: rar VCLStylesInno + Example [2023-Oct-10].rar (2.01 MB, 77 views)
File Type: rar ISCompilerEx [2024-Mar-15].rar (2.98 MB, 47 views)

Last edited by BLACKFIRE69; 14-05-2024 at 04:37. Reason: Added latest update.
Reply With Quote
The Following 12 Users Say Thank You to BLACKFIRE69 For This Useful Post:
Abbat (25-11-2024), ADMIRAL (15-03-2024), audiofeel (06-09-2023), Behnam2018 (07-09-2023), Cesar82 (09-09-2023), ffmla (07-10-2023), hitman797 (06-09-2023), Lord.Freddy (07-09-2023), nordi (02-02-2024), Razor12911 (06-09-2023), ScOOt3r (06-09-2023), yasserdivar (15-10-2023)
Sponsored Links