|
|
|
#1
|
||||
|
||||
|
Is it possible to call the "UnpackDLLFiles" function early, ideally at the initialisation of the wizard? I recently switched to using a VCLStyle skin instead of CJStyle skin (as CJStyles arent able to modify some GUI elements and aren't quite as versatile), however the DLL size difference between the two is alarmingly large (2.98MB vs 385KB). However, applying some very basic compression, such as the parameters used to pack a given "Setup.dll" significantly reduces the VCLStyle DLL to ~700kb, unfortunately though it seems I'm not able to get the wizard to extract the DLL before loading it, despite having the commands ordered to do so.
Code:
function InitializeSetup(): Boolean;
begin
Result := True;
ExtractTemporaryFile('SplitLib.dll');
ExtractTemporaryFile('Settings.ini');
#if VCL
FileCopy(ExpandConstant('{src}\VclStylesInno.dll'), ExpandConstant('{tmp}\VclStylesInno.dll'), False);
ExtractTemporaryFile('VclStylesInno.dll');
ExtractTemporaryFile('{#VCLName}');
LoadVCLStyle(ExpandConstant('{tmp}\{#VCLName}'));
Code:
Runtime error (at 368:722): Could not call proc. Code:
Runtime error (at 400:5): Could not call proc. Last edited by L33THAK0R; 05-09-2022 at 18:43. |
| Sponsored Links |
|
#2
|
||||
|
||||
|
Quote:
Quote:
__________________
Haters gonna hate
|
|
#3
|
||||
|
||||
|
Quote:
Would you happen to know by any chance what the label/function is that calls the crc page post-install, I cant for the life of me seem to figure it out! |
|
#4
|
||||
|
||||
|
Quote:
The crc page is a custom created page, "CurPageID = CRCPage.ID" This page will be created here Code:
#if !CompactMode //if NOT compactmode (= normal mode)
CRCPage := CreateCustomPage(wpInstalling, '', ''); //crc page will be created after wpInstalling page
#else // if compact mode
CRCPage := CreateCustomPage(wpInfoAfter, '', ''); //crc page will be created after wpInfoAfter page (compactmode works a bit different due to 1 page installer)
#endif
Quote:
Code:
function InitializeSetup(): Boolean; begin ... UnpackDLLFiles; ...
__________________
Haters gonna hate
Last edited by KaktoR; 07-09-2022 at 00:48. |
| The Following User Says Thank You to KaktoR For This Useful Post: | ||
L33THAK0R (07-09-2022) | ||
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Help] need Advanced Installer script with Razor1911's UltraArc module | rez3vil | Conversion Tutorials | 3 | 15-04-2024 02:24 |
| Portable Installer Inno Setup Script | y_thelastknight | Conversion Tutorials | 59 | 23-10-2020 00:02 |
| INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 02:05 |
| Simple Arc Installer | 78372 | Conversion Tutorials | 1 | 15-06-2017 15:37 |
| MSC+Srep+lzma Simple Script Example | gozarck | Conversion Tutorials | 10 | 07-09-2015 16:31 |