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
  #1  
Old 28-05-2021, 07:42
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
Can anyone here tell me how can i direct my setup to install a font without informing the user and the first priority of setup must be installing the font

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 28-05-2021, 09:07
pratikpatel8982 pratikpatel8982 is offline
Registered User
 
Join Date: Sep 2020
Location: India
Posts: 116
Thanks: 105
Thanked 49 Times in 30 Posts
pratikpatel8982 is on a distinguished road
Quote:
Originally Posted by GaMEr_2077 View Post
Can anyone here tell me how can i direct my setup to install a font without informing the user and the first priority of setup must be installing the font

Thanks
You can take a look at this: https://superuser.com/questions/2018...command-prompt
Reply With Quote
The Following User Says Thank You to pratikpatel8982 For This Useful Post:
GaMEr_2077 (28-05-2021)
  #3  
Old 07-06-2021, 00:43
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
is there any option in inno for example if component A is selected then the setup will extract specified file and if selected B then other specified file

Edit:- Files are embeded in installer
Reply With Quote
  #4  
Old 07-06-2021, 03:59
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by GaMEr_2077 View Post
is there any option in inno for example if component A is selected then the setup will extract specified file and if selected B then other specified filer
I use a similar feature to what you ask in my installer, to decide whether a user will have a full power installation or limited installation ("Low Resource Mode")

Code:
  if LowResourceCB.Checked then begin
    ExtractTemporaryFile('low_ARC.ini');
    ExtractTemporaryFile('low_CLS.ini');
  end else begin
    ExtractTemporaryFile('ARC.INI');
    ExtractTemporaryFile('CLS.INI');
  end;
Hopefully this helps you out. This code is tied with a checkbox.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
GaMEr_2077 (07-06-2021)
  #5  
Old 08-06-2021, 05:32
Prince4 Prince4 is offline
Registered User
 
Join Date: Mar 2015
Location: India->Delhi->Rohini
Posts: 121
Thanks: 109
Thanked 19 Times in 15 Posts
Prince4 is on a distinguished road
Question

Quote:
Originally Posted by Masquerade View Post
I use a similar feature to what you ask in my installer, to decide whether a user will have a full power installation or limited installation ("Low Resource Mode")
Code:
('low_ARC.ini');('low_CLS.ini');
;
Hopefully this helps you out. This code is tied with a checkbox.
How do you rename them later? ISDone or UnARc don't read "low_ARc.ini" as "ARC.ini" do they?
__________________
Who's Got Time To Play Games? Huh??
Reply With Quote
  #6  
Old 08-06-2021, 07:41
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
Try like this

Code:
  if LowResourceCB.Checked then begin
    ExtractTemporaryFile('low_ARC.ini');
    ExtractTemporaryFile('low_CLS.ini');
    RenameFile(ExpandConstant('{tmp}\low_ARC.ini', '{tmp}\Arc.ini'));
    RenameFile(ExpandConstant('{tmp}\low_CLS.ini', '{tmp}\Cls.ini'));
  end else begin
    ExtractTemporaryFile('ARC.INI');
    ExtractTemporaryFile('CLS.INI');
  end;
This code has to be placed BEFORE archive unpacking begins.
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
GaMEr_2077 (08-06-2021), Prince4 (08-06-2021)
  #7  
Old 11-06-2021, 00:17
Epic Titan 69 Epic Titan 69 is offline
Banned
 
Join Date: Dec 2020
Location: In The Hell
Posts: 89
Thanks: 147
Thanked 39 Times in 27 Posts
Epic Titan 69 is on a distinguished road
How to show custom text instead of LABELCURRFILE
I know that we need to put .Hide in front of it to stop showing current file name but what to do to show custom text like
Extracting or Unpacking...... etc

THANKS
Reply With Quote
  #8  
Old 11-06-2021, 06:33
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
Quote:
Originally Posted by Epic Titan 69 View Post
How to show custom text instead of LABELCURRFILE
I know that we need to put .Hide in front of it to stop showing current file name but what to do to show custom text like
Extracting or Unpacking...... etc

THANKS
I also need that.....
Reply With Quote
  #9  
Old 11-06-2021, 09:59
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
LABELCURFILE is not inside InnoSetup Support, maybe you mean 'StatusLabel' instead?

StatusLabel is showing 'Unpacking Files ...', FileNameLabel is showing current file.

However, to make a new TLabel or TNewStaticText variable you can do something like this.

Code:
var
  MyText: TLabel;

procedure InitializeWizard();
begin
  MyText := TLabel.Create(WizardForm);
    with MyText do begin
      Parent := WizardForm.InstallingPage;
      Caption := 'My Text here'; // you can also use constants like '{cm:MyText}' with [CustomMessage] section if you like it to make multi langual
      Left := ScaleX(1);
      Top := ScaleY(1);
      Width := ScaleX(150);
      Height := ScaleY(12);
      Wordwrap := False;
    end;
end;

procedure CurPageChanged(CurPageID: integer);
  if CurPageID = wpInstalling then begin
    //Here you can hide (x.Hide) or show (x.Show) your variable
    MyText.Show;
  end;
end;
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
Epic Titan 69 (11-06-2021), GaMEr_2077 (11-06-2021)
  #10  
Old 17-06-2021, 00:20
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
There was a plugin for Inno Setup that allowed for bat file / console application output to be redirected to the inno Setup memo window instead of producing a cmd window.

The name seems to have slipped my mind - can anyone help?
Reply With Quote
  #11  
Old 17-06-2021, 14:48
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 Masquerade View Post
There was a plugin for Inno Setup that allowed for bat file / console application output to be redirected to the inno Setup memo window instead of producing a cmd window.

The name seems to have slipped my mind - can anyone help?
I know and have public versions there is "ISUtils.dll" (by Peterf1999) and also "Memo Console for Inno Setup" (Console.dll) (by BLACKFIRE69).
It has other libraries like cmdout.dll (by Ele) but I don't know if it's public.
I've also attached here an example using version without libraries.
Attached Files
File Type: 7z CaptureConsoleOutput.7z (4.6 KB, 49 views)
Reply With Quote
The Following 5 Users Say Thank You to Cesar82 For This Useful Post:
GaMEr_2077 (17-06-2021), Gehrman (24-06-2021), Harsh ojha (02-07-2021), Masquerade (17-06-2021), pratikpatel8982 (17-06-2021)
  #12  
Old 17-06-2021, 20:26
GaMEr_2077 GaMEr_2077 is offline
Banned
 
Join Date: Apr 2021
Location: Los Santos, Spain.
Posts: 87
Thanks: 159
Thanked 28 Times in 22 Posts
GaMEr_2077 is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
I know and have public versions there is "ISUtils.dll" (by Peterf1999) and also "Memo Console for Inno Setup" (Console.dll) (by BLACKFIRE69).
It has other libraries like cmdout.dll (by Ele) but I don't know if it's public.
I've also attached here an example using version without libraries.
okay so this will run cmd commands in inno console
RIGHT??
Reply With Quote
  #13  
Old 17-06-2021, 22:47
Ele's Avatar
Ele Ele is offline
Registered User
 
Join Date: Nov 2020
Location: Near Mars
Posts: 93
Thanks: 89
Thanked 96 Times in 37 Posts
Ele is on a distinguished road
Question

Quote:
Originally Posted by Cesar82
It has other libraries like cmdout.dll (by Ele) but I don't know if it's public.
Yes, it wasn't a public Lib. I only use it on my personal projects. If anyone finds it useful, here it is.
Tested with: Inno 5.5.1.ee2(unicode) Enhanced and Inno 6.2.0(unicode).

Note: There're two separate libraries here. One is for Inno and the other is for Delphi.


Preview:
Attached Images
File Type: png cmdout-prev01.png (24.5 KB, 200 views)
File Type: png cmdout-prev02.png (24.5 KB, 197 views)
File Type: png cmdout-prev03.png (22.3 KB, 199 views)
Attached Files
File Type: 7z cmdout.dll + Inno Example.7z (51.2 KB, 43 views)
__________________
- All life is an experiment. The more experiments you make the better. -
Reply With Quote
The Following 10 Users Say Thank You to Ele For This Useful Post:
:( Sad8669 (17-06-2021), Carldric Clement (26-07-2021), Cesar82 (17-06-2021), ffmla (18-06-2021), GaMEr_2077 (18-06-2021), Gehrman (24-06-2021), Grumpy (18-06-2021), Harsh ojha (02-07-2021), Masquerade (17-06-2021), oo7 (18-09-2021)
  #14  
Old 02-07-2021, 09:29
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
@Ele, thanks your plugin works great in my tests. I tried the dll by BLACKFIRE69 however I could not get it to work.

Is there a way to stop my memo from echoing the same thing twice?

Currently I have it set to echo the file currently being extracted however this means it echoes the same file over and over again until it moves onto the next file.

Here's the current code:

Code:
function ProgressCallback(OveralPct, CurrentPct: Integer; CurrentFile, TimeStr1, TimeStr2, TimeStr3: PAnsiChar): LongWord;
var
  CurTick: DWORD;
begin
    Memo.Lines.Add('Unpacking: ' + CurrentFile);
I thought maybe I could make a temporary string variable and comparing it with the current file and if so, skip echoing the current file, I am interested if anyone has any thoughts on this.
Reply With Quote
  #15  
Old 26-07-2021, 04:51
Carldric Clement's Avatar
Carldric Clement Carldric Clement is offline
Registered User
 
Join Date: Aug 2014
Location: Toboh, Sabah, Malaysia
Posts: 596
Thanks: 599
Thanked 659 Times in 234 Posts
Carldric Clement is on a distinguished road
Quote:
Originally Posted by Ele View Post
Yes, it wasn't a public Lib. I only use it on my personal projects. If anyone finds it useful, here it is.
Tested with: Inno 5.5.1.ee2(unicode) Enhanced and Inno 6.2.0(unicode).

Note: There're two separate libraries here. One is for Inno and the other is for Delphi.


Preview:
Idk if it works with Delphi XE 10 I guess. But my problem is the ISCmdInit doesn't support the latest version of Delphi XE because I'm using FMX.

Last edited by Carldric Clement; 26-07-2021 at 08:26.
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
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



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


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