|
|
|
#1
|
|||
|
|||
|
I was wondering if it's possible to change the button placement in compact mode? I'm having a little play around with the layout and I can move everything so far except from the install, pause and cancel buttons. Is there something I'm missing?
Code:
PauseButton := TNewButton.Create(WizardForm);
with PauseButton do
begin
Parent := WizardForm;
Left := ScaleX(10);
Top := ScaleY(310);
Width := ScaleX(225);
Height := ScaleY(23);
Caption := ExpandConstant('{cm:Pause}');
OnClick := @PauseButtonClick;
end;
I extended the installer slightly to 500 (Y) value, so that's why the button can go lower than the normal compact mode window. Is there some kind of lock on the button / or can buttons not be resized or moved? |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Quote:
- The desktop shortcut always is written to be the default path instead of the chosen install path. If my default is {sd}\Games in [Extract Settings] but I change the path in the installer to a different Drive or folder, the shortcut will still get written as c:\games instead iof the user chosen path. - Desktop shortcut is always created despite checkbox being unticked. - This path confusion may also lead to the CRC check not working as intended - when running a CRC check, all files are printed as "Not found" when the files have extracted properly to the user chosen path. Wirthout a way of seeing where the installer is looking to check the files, I can't confirm that there's a link between this and the path confusion. My CRC MD5 file did work because I ran it in the install directory and everything verified correctly. |
|
#3
|
||||
|
||||
|
There are two different PauseButton.
One for NormalMode, the other for CompactMode. The button for compactmode is on line 3190
__________________
Haters gonna hate
|
|
#4
|
|||
|
|||
|
Quote:
So for me the Wizard Creation starts at 1938 however with the Normal mode section, it would begin at 2807 I do believe. Edit: the above mentioned Code snippet is located on line 3092 |
|
#5
|
||||
|
||||
|
Search for CurPageID = wpWelcome
The pausebutton will be changed there too (this is ridiculous, I will change this too in next version). This settings will be higher priority then the first in initialize wizard.
__________________
Haters gonna hate
|
|
#6
|
|||
|
|||
|
I managed to get everything sorted, this is how it's looking currently:
![]() I'd like to add an image at the top, so I added this code (taken from the About section of the newest release): Do you know how I could add an image to the top section? I tried using code snippets from the 7.1.7H release about section: This went in after the //Begin Creation// notation: Code:
ExtractTemporaryFile('image.bmp');
LogoImage := TBitmapImage.Create(WizardForm);
with LogoImage do begin
Name := 'LogoImage';
Parent := WizardForm;
Left := ScaleX(5);
Top := ScaleY(5);
Width := ScaleX(373);
Height := ScaleY(149);
//Bitmap.AlphaFormat := afDefined;
Bitmap.LoadFromFile(ExpandConstant('{tmp}\image.bmp'));
ReplaceColor := $0000ff
ReplaceWithColor := WizardForm.Color
end;
Code:
LogoImage: TBitmapImage; Code:
WizardForm.LogoImage.Show; Code:
WizardForm.LogoImage.Hide; However that returns the issue Missing Identifier LOGOIMAGE. I wonder if you know about adding more images? I don't have any in the about section, I replaced that area of code with text from 7.1.4b. |
|
#7
|
||||
|
||||
|
@Masquerade
try removing WizardForm. from lines: WizardForm.LogoImage.Show; >> LogoImage.Show; WizardForm.LogoImage.Hide; >> LogoImage.Hide; |
|
#8
|
|||
|
|||
|
Quote:
Only now when running the script: ![]() The image is in .bmp format at a size of 460x77 (the window size is larger than this. |
|
#9
|
||||
|
||||
|
@Masquerade
Send me your src code |
|
#10
|
||||
|
||||
|
I have added the update to first post.
Nothing really new, just update help file and removed unneccessary code.
__________________
Haters gonna hate
|
|
#11
|
||||
|
||||
|
For the shortcuts...
Just add this to both issp code lines Code:
""";" to """; Check: CreateIcons;" I will look at the path and crc check later (I think I will copy it to app instead). PS: The shortcut problem is the INI setting. I will remove this (this gave me already headache in the past). I have to look how to use WForm.DirEdit(TEdit) input into ispp. Edit: I don't think this is possible with ispp. ispp will be executed and written on compile. Impossible to change it afterwards.
__________________
Haters gonna hate
Last edited by KaktoR; 01-05-2020 at 04:04. |
| The Following User Says Thank You to KaktoR For This Useful Post: | ||
Titeuf (01-05-2020) | ||
|
#12
|
||||
|
||||
|
Here is a fix for the shortcuts (thanks to Cesar).
__________________
Haters gonna hate
|
|
#13
|
|||
|
|||
|
It appears that there are modified AFR_x32 and AFR_x64 files in the newest version. After compiling and running the setup on ACUnity (As I've told You It unpacks properly on AFR 020 x64) there is an error -11 on the beginning. I've copied the files I've used for compression and the error dissapears. |
| The Following User Says Thank You to Schabik For This Useful Post: | ||
Titeuf (05-05-2020) | ||
|
#14
|
|||
|
|||
|
hello is there a way to use inno internal compression?
|
|
#15
|
||||
|
||||
|
No, not yet.
__________________
Haters gonna hate
|
| The Following User Says Thank You to KaktoR For This Useful Post: | ||
shakhnaften (07-05-2020) | ||
![]() |
|
|
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 |