|
|
|
#1
|
||||
|
||||
|
I've been trying to do a minor redesign to the compact mode layout, by moving all the contents of the "AboutForm" to the main-page of the installer. I've managed to accomplish all I set out to do save for getting the "LogoImage" to display, even after changing the parent to "WizardForm", Is there something I'm missing? I'm using the latest version of the script if it helps.
|
| Sponsored Links |
|
#2
|
||||
|
||||
|
Sorry to fire off all these questions but got one more quickie, would anyone happen to know what variables determine the default Font used for CompactMode, and which ones disable the use of custom fonts for CompactMode? I un-commented the parts disabling the use of custom fonts, as present in v7.3.4-Update-2 and onwards and played around with the script a bit. "Font.ttf" is definitely being added to the installer but theres something in the script preventing a custom font being used on CompactMode, since its definitely working for most elements, save the AboutForm & InfoForm, in non-CompactMode.
|
|
#3
|
||||
|
||||
|
Custom Font is used only by NormalMode (non-CompactMode) on Start page and Finish page.
Custom fonts were never added to compact mode, simply because of its size and design. In former tests most fonts (especially but not only included by default in windows) were unreadable, means cut off texts and such. I think the standard font used by Inno Setup is "Arial" font. However if you want to change the fonts of all elements in compact mode, you have to add "Font.Name :=" to all the elements manually which are used by compact mode, like this Code:
Font.Name := 'Times New Roman'; Code:
IconsCB := TNewCheckBox.Create(WizardForm);
with IconsCB do
begin
#if !CompactMode
...
#else
Font.Name := 'Times New Roman';
...
..
#endif
end;
__________________
Haters gonna hate
Last edited by KaktoR; 02-09-2022 at 00:09. |
|
#4
|
|||
|
|||
|
Can anyone tell me what the music track is called or from which soundtrack it is, which is included by default with the download (i.e., what is named just “Music.mp3”)?
|
|
#5
|
||||
|
||||
|
do you mean the last ASIS its from the Game Stray the other i don't know
__________________
It would be nice if you appreciate my work with the thanks Button |
|
#6
|
|||
|
|||
|
Exactly, the music from ASIS (where as a template is the game "Stray", but I listened through the soundtrack and track 1 from the soundtrack sounds similar, but somehow not the same).
It's been the same everywhere so far (though I'm only with it since version 7.3.5 - what was before, I can't say of course). Last edited by pcblizzard; 05-09-2022 at 02:42. |
|
#7
|
||||
|
||||
|
https://www.youtube. com/watch?v=37wUUn748iQ
|
| The Following User Says Thank You to KaktoR For This Useful Post: | ||
pcblizzard (05-09-2022) | ||
|
#8
|
||||
|
||||
|
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. |
|
#9
|
||||
|
||||
|
Quote:
Quote:
__________________
Haters gonna hate
|
|
#10
|
||||
|
||||
|
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! |
|
#11
|
||||
|
||||
|
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) | ||
|
#12
|
||||
|
||||
|
Sorry to fill up this thread with questions, but could anyone please tell me where abouts the logic is for the transition between CompactMode's Main-Window and the CRC-Window?
I use QuickSFV for CRC validation and was hoping to add a 3rd & 4th state to the "WizardForm.NextButton" (or whatever the label is for the CompactMode Install button), to allow it to launch a given Batch script, while displaying "Verify"/"cm:Verify", and then function as a Finish/Continue button after the script concluded. Currently I've got the latter functionality working just fine, I'm just trying to figure out how to discard the separate CRC window to move it all to the one screen. |
|
#13
|
||||
|
||||
|
Sorry again to seemingly never run out of queries, I'm a bit of a brainlet, if it's at all alright would you be able to walk me through the values/arguments I should be attaching to "UnpackDLLFiles", I'm not too sure about the
Code:
(UnpFile: String): Boolean; |
|
#14
|
||||
|
||||
|
Got a bit of a different, but hopefully easier question to answer, are there any other variables that can determine the size of an element, outside of ScaleX/ScaleY? I've got a really annoying element that refuses to be resized, the image linked (here) demonstrates this, as every other element that has a "ScaleX" property has had it set to 100, with the exception of the client size, however this element at the top refuses to change. I've also searched for the approx. pixel length/height of the element with a +/- 20 variance in the script to try and find the value but alas to no avail. The reason as to my wanting to remove/resize this element is that once the page changes to CRCPage.Surface, the logo image I have attached, disappears as its parent is WizardForm.WelcomePage, and my separate image entry for CRCPage.Surface is cut off, as this rogue element is rendered on top of CRCPage.Surface.
|
|
#15
|
||||
|
||||
|
Question: Am I missing anything for the redists section for v7.3.4's settings? No matter what I do, the installer skips over the redist install when the checkbox is marked. I have tried using the {app} tag, where the specified redist folder is included in the archives, and the {src} tag, where the specified redist folder is in the same place the setup is in, but both of them don't work. My setup right now is like this:
Code:
[Redists]
Enable=1
Redist1.Enable=1
Redist1.Name=DirectX
Redist1.Level=0
Redist1.ItemType=CHECK
Redist1.Checked=1
Redist1.Enabled=1
Redist1.Exe32={app}\redist\dx.exe
Redist1.Exe64={app}\redist\dx.exe
Redist1.Param=
__________________
forgot the pass & email I used on my old account lmao |
![]() |
|
|
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 |