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.