|
3 | 3 | #define MyAppName 'Wmi Delphi Code Creator'
|
4 | 4 | #define MyAppVersion GetFileVersion('WDCC.exe')
|
5 | 5 | [Files]
|
6 |
| -Source: Extras\ISSkin.dll; DestDir: {app}; Flags: dontcopy |
7 |
| -Source: Extras\Office2007.cjstyles; DestDir: {tmp}; Flags: dontcopy |
8 | 6 | Source: Themes\Aqua.theme.xml; DestDir: {app}\Themes\
|
9 | 7 | Source: Themes\artofnet-darkonblue.theme.xml; DestDir: {app}\Themes\
|
10 | 8 | Source: Themes\artofnet-lime-chocolate.theme.xml; DestDir: {app}\Themes\
|
@@ -216,6 +214,8 @@ Source: Textures\metal-texture.jpg; DestDir: {app}\Textures\
|
216 | 214 | Source: Textures\speaker-grille-texture.jpg; DestDir: {app}\Textures\
|
217 | 215 | Source: Textures\stainless-steel.jpg; DestDir: {app}\Textures\
|
218 | 216 | 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 |
219 | 219 | [Setup]
|
220 | 220 | UsePreviousLanguage=no
|
221 | 221 | AppName={#MyAppName}
|
@@ -269,9 +269,10 @@ Name: slovenian; MessagesFile: compiler:Languages\Slovenian.isl
|
269 | 269 | Name: spanish; MessagesFile: compiler:Languages\Spanish.isl
|
270 | 270 |
|
271 | 271 | [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'; |
275 | 276 |
|
276 | 277 | function GetUninstallString(): String;
|
277 | 278 | var
|
@@ -311,15 +312,14 @@ end;
|
311 | 312 |
|
312 | 313 | function InitializeSetup(): Boolean;
|
313 | 314 | 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; |
317 | 318 | end;
|
318 | 319 |
|
319 | 320 | procedure DeinitializeSetup();
|
320 | 321 | begin
|
321 |
| - ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0); |
322 |
| - UnloadSkin(); |
| 322 | + UnLoadVCLStyles; |
323 | 323 | end;
|
324 | 324 |
|
325 | 325 | procedure CurStepChanged(CurStep: TSetupStep);
|
|
0 commit comments