Skip to content

Commit 6cf7989

Browse files
Installer modified - Added VCL Styles for Inno Setup
1 parent 2d38a40 commit 6cf7989

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Extras/ISSkin.dll

-386 KB
Binary file not shown.

Extras/Office2007.cjstyles

-624 KB
Binary file not shown.

Installer.iss

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#define MyAppName 'Wmi Delphi Code Creator'
44
#define MyAppVersion GetFileVersion('WDCC.exe')
55
[Files]
6-
Source: Extras\ISSkin.dll; DestDir: {app}; Flags: dontcopy
7-
Source: Extras\Office2007.cjstyles; DestDir: {tmp}; Flags: dontcopy
86
Source: Themes\Aqua.theme.xml; DestDir: {app}\Themes\
97
Source: Themes\artofnet-darkonblue.theme.xml; DestDir: {app}\Themes\
108
Source: Themes\artofnet-lime-chocolate.theme.xml; DestDir: {app}\Themes\
@@ -216,6 +214,8 @@ Source: Textures\metal-texture.jpg; DestDir: {app}\Textures\
216214
Source: Textures\speaker-grille-texture.jpg; DestDir: {app}\Textures\
217215
Source: Textures\stainless-steel.jpg; DestDir: {app}\Textures\
218216
Source: Textures\titanium-texture.jpg; DestDir: {app}\Textures\
217+
Source: Installer\VclStylesInno.dll; DestDir: {app}; Flags: dontcopy
218+
Source: Installer\Amakrits.vsf; DestDir: {app}; Flags: dontcopy
219219
[Setup]
220220
UsePreviousLanguage=no
221221
AppName={#MyAppName}
@@ -269,9 +269,10 @@ Name: slovenian; MessagesFile: compiler:Languages\Slovenian.isl
269269
Name: spanish; MessagesFile: compiler:Languages\Spanish.isl
270270

271271
[Code]
272-
procedure LoadSkin(lpszPath: String; lpszIniFileName: String); external 'LoadSkin@files:isskin.dll stdcall';
273-
procedure UnloadSkin(); external 'UnloadSkin@files:isskin.dll stdcall';
274-
function ShowWindow(hWnd: Integer; uType: Integer): Integer; external '[email protected] stdcall';
272+
// Import the LoadVCLStyle function from VclStylesInno.DLL
273+
procedure LoadVCLStyle(VClStyleFile: String); external 'LoadVCLStyleW@files:VclStylesInno.dll stdcall';
274+
// Import the UnLoadVCLStyles function from VclStylesInno.DLL
275+
procedure UnLoadVCLStyles; external 'UnLoadVCLStyles@files:VclStylesInno.dll stdcall';
275276
276277
function GetUninstallString(): String;
277278
var
@@ -311,15 +312,14 @@ end;
311312
312313
function InitializeSetup(): Boolean;
313314
begin
314-
ExtractTemporaryFile('Office2007.cjstyles');
315-
LoadSkin(ExpandConstant('{tmp}\Office2007.cjstyles'), 'NormalBlack.ini');
316-
Result:=True;
315+
ExtractTemporaryFile('Amakrits.vsf');
316+
LoadVCLStyle(ExpandConstant('{tmp}\Amakrits.vsf'));
317+
Result := True;
317318
end;
318319
319320
procedure DeinitializeSetup();
320321
begin
321-
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
322-
UnloadSkin();
322+
UnLoadVCLStyles;
323323
end;
324324
325325
procedure CurStepChanged(CurStep: TSetupStep);

Installer/Amakrits.vsf

61.1 KB
Binary file not shown.

Installer/VclStylesinno.dll

1.54 MB
Binary file not shown.

0 commit comments

Comments
 (0)