Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #796  
Old 28-04-2020, 08:31
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
There are two different PauseButton.

One for NormalMode, the other for CompactMode.

The button for compactmode is on line 3190
__________________
Haters gonna hate
Reply With Quote
Sponsored Links
  #797  
Old 28-04-2020, 11:17
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
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
Reply With Quote
  #798  
Old 28-04-2020, 11:36
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
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
Reply With Quote
  #799  
Old 29-04-2020, 12:12
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
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;
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.
Reply With Quote
  #800  
Old 29-04-2020, 12:24
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,073
Thanks: 1,814
Thanked 2,303 Times in 786 Posts
Cesar82 is on a distinguished road
@Masquerade
try removing WizardForm. from lines:
WizardForm.LogoImage.Show; >> LogoImage.Show;
WizardForm.LogoImage.Hide; >> LogoImage.Hide;
Reply With Quote
  #801  
Old 29-04-2020, 12:43
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
@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:



The image is in .bmp format at a size of 460x77 (the window size is larger than this.
Reply With Quote
  #802  
Old 29-04-2020, 16:24
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,073
Thanks: 1,814
Thanked 2,303 Times in 786 Posts
Cesar82 is on a distinguished road
@Masquerade
Send me your src code
Reply With Quote
  #803  
Old 30-04-2020, 04:12
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
I have added the update to first post.

Nothing really new, just update help file and removed unneccessary code.
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
Titeuf (30-04-2020), XxAZAxX (30-04-2020)
  #804  
Old 01-05-2020, 02:23
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
The previous update had some bugs left, here is the hotfix
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.
Reply With Quote
The Following 2 Users Say Thank You to Masquerade For This Useful Post:
KaktoR (01-05-2020), Titeuf (01-05-2020)
  #805  
Old 01-05-2020, 02:41
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
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.
__________________
Haters gonna hate

Last edited by KaktoR; 01-05-2020 at 04:04.
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Titeuf (01-05-2020)
  #806  
Old 01-05-2020, 15:52
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
Here is a fix for the shortcuts (thanks to Cesar).
Attached Files
File Type: 7z Update.v7.1.7H2.7z (3.74 MB, 38 views)
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
Titeuf (01-05-2020), XxAZAxX (02-05-2020)
  #807  
Old 05-05-2020, 00:32
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 152
Thanks: 17
Thanked 35 Times in 32 Posts
Schabik is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
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.
Reply With Quote
The Following User Says Thank You to Schabik For This Useful Post:
Titeuf (05-05-2020)
  #808  
Old 06-05-2020, 05:29
shakhnaften shakhnaften is offline
Registered User
 
Join Date: Apr 2020
Location: Earth
Posts: 6
Thanks: 6
Thanked 0 Times in 0 Posts
shakhnaften is on a distinguished road
hello is there a way to use inno internal compression?
Reply With Quote
  #809  
Old 07-05-2020, 01:38
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,687
Thanks: 1,106
Thanked 7,333 Times in 2,836 Posts
KaktoR is on a distinguished road
No, not yet.
__________________
Haters gonna hate
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
shakhnaften (07-05-2020)
  #810  
Old 07-05-2020, 03:57
shakhnaften shakhnaften is offline
Registered User
 
Join Date: Apr 2020
Location: Earth
Posts: 6
Thanks: 6
Thanked 0 Times in 0 Posts
shakhnaften is on a distinguished road
thank you do you know why is cancel button like this?



Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



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


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