View Single Post
  #81  
Old 11-02-2021, 17:12
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Stor31 View Post
how to modify LightInstallerLogoOrange.bmp (Light Installer) to another name ???
thx
Open the script and change the name as needed.
The parts of the code referring to the logo image file are below (Search the script).
Code:
#define Theme "ORANGE" 
Code:
#if Theme != "NULL"
Source: "Resources\LightInstallerLogo{#Theme}.bmp"; DestName: "LightInstallerLogo.bmp"; DestDir: "{tmp}"; Flags: dontcopy
#endif
Code:
  #if Theme != "NULL"
  with TBitmapImage.Create(WizardForm) do
  begin
    Parent := WizardForm;
    SetBounds(ScaleX(14), WizardForm.NextButton.Top + ScaleY(1), ScaleX(225), ScaleY(20));
    Bitmap.AlphaFormat := afDefined;
    Bitmap.LoadFromFile(ExpandConstant('{tmp}\LightInstallerLogo.bmp'));
    #if VER >= 0x06000000
    Anchors := [akLeft, akBottom];
    #endif
    if '{#AppURL}' <> '' then begin
      OnClick := @LogoOnClick;
      Cursor := crHand;
    end;
  end;
  #endif
Code:
  #if Theme != "NULL"
  ExtractTemporaryFile('LightInstallerLogo.bmp');
  #endif
P.S: If you just want to change the name of the image file that is in the resources folder, you only need to change it after the word resources in code 2. This way the image inside setup.exe will remain as LightInstaller.bmp, but your external file will have the name you put, but it must be a bitmap image (.bmp).
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Stor31 (13-02-2021)