FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ASIS: Advanced Simple Installer Script (https://fileforums.com/showthread.php?t=99481)

KaktoR 28-04-2020 08:31

There are two different PauseButton.

One for NormalMode, the other for CompactMode.

The button for compactmode is on line 3190

Masquerade 28-04-2020 11:17

Quote:

Originally Posted by KaktoR (Post 485506)
There are two different PauseButton.

One for NormalMode, the other for CompactMode.

The button for compactmode is on line 3190

I ripped out the Wizard Creation for Normal Mode because I didn't need it, the remaining wizard creation part is the lines for Compact mode (lines beginning with the notation /* BEGIN Compact Mode Wizard Creation */). I removed the ELSE statement.

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

KaktoR 28-04-2020 11:36

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.

Masquerade 29-04-2020 12:12

I managed to get everything sorted, this is how it's looking currently:

https://i.imgur.com/dy429i6.png

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;

I also added this to the procedure InitialiseWizard section:

Code:

LogoImage: TBitmapImage;
However I cannot get the image to appear. I tried adding:

Code:

WizardForm.LogoImage.Show;
And:
Code:

WizardForm.LogoImage.Hide;
To dictate whether the image should be there or not in wpWelcome and wpInstalling etc...

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.

Cesar82 29-04-2020 12:24

@Masquerade
try removing WizardForm. from lines:
WizardForm.LogoImage.Show; >> LogoImage.Show;
WizardForm.LogoImage.Hide; >> LogoImage.Hide;

Masquerade 29-04-2020 12:43

Quote:

Originally Posted by Cesar82 (Post 485530)
@Masquerade
try removing WizardForm. from lines:
WizardForm.LogoImage.Show; >> LogoImage.Show;
WizardForm.LogoImage.Hide; >> LogoImage.Hide;

The script now compiles which is great, thanks for the info.

Only now when running the script:

https://i.imgur.com/a4VGZOE.png

The image is in .bmp format at a size of 460x77 (the window size is larger than this.

Cesar82 29-04-2020 16:24

@Masquerade
Send me your src code

KaktoR 30-04-2020 04:12

I have added the update to first post.

Nothing really new, just update help file and removed unneccessary code.

Masquerade 01-05-2020 02:23

Quote:

Originally Posted by KaktoR (Post 485497)
The previous update had some bugs left, here is the hotfix :D
If you encounter more then tell me please

Been playing with the new [Executable] section in the INI file however there's a couple things:

- 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.

KaktoR 01-05-2020 02:41

For the shortcuts...
Just add this to both issp code lines
Code:

""";"
to
"""; Check: CreateIcons;"

I have forgot this

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.

KaktoR 01-05-2020 15:52

1 Attachment(s)
Here is a fix for the shortcuts (thanks to Cesar).

Schabik 05-05-2020 00:32

Quote:

Originally Posted by KaktoR (Post 485572)
Here is a fix for the shortcuts (thanks to Cesar).


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.

shakhnaften 06-05-2020 05:29

hello is there a way to use inno internal compression?

KaktoR 07-05-2020 01:38

No, not yet.

shakhnaften 07-05-2020 03:57

thank you do you know why is cancel button like this?

https://i.imgur.com/pAfenxn.png

https://i.imgur.com/0QQPtmf.png


All times are GMT -7. The time now is 13:31.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com