FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   INNO TROUBLESHOOT - Questions Here (https://fileforums.com/showthread.php?t=93193)

ffmla 09-05-2021 23:27

Quote:

Originally Posted by Cesar82 (Post 491882)
Can anyone tell me if it is necessary to call these IsDone functions below if I do not use the ISFindFiles e and ISPrecompExtract and ISSRepExtract functions.

Code:

      if not SrepInit(ExpandConstant('{app}\'), 512, 0) then
        Break;

      if not PrecompInit(ExpandConstant('{app}\'), 128, 0) then
        Break;

      if not FileSearchInit(True) then
        Break;

IsDone's help is all in Russian and it would help a lot if someone who understands the language could share this information.
I will only use IsArcExtract, IsRarExtract, IS7ZipExtract and ISxDeltaExtract.

Data taken from Help file..
Code:

function ISDoneInit (RecordFileName:string; TimeType, Comp1, Comp2, Comp3:Cardinal; WinHandle, NeededMem:longint; callback: TCallback):boolean;
When we initialize the ISDoneInit(...),This SrepInit,PrecompInit & FileSearchInit takes their default values.

Code:

function SrepInit (TmpPath:PAnsiChar; VirtMem, MaxSave:Cardinal):boolean;
function PrecompInit (TmpPath:PAnsiChar; VirtMem:cardinal; PrecompVers:single):boolean;

For Srep and Precomp if you want to extract the temp file [Virtualmem_00.srep and others] to specific location then use it.otherwise it is completely optional.
Code:

function FileSearchInit (RecursiveSubDir:boolean):boolean;
For FileSearchInit, subdirectories scanning is enabled by default.
If you specify true Then when specifying the input file name containing the mask (eg * .pcf), files will be searched in the same in all subdirectories from the specified path. If false - Only in the specified folder.

GaMEr_2077 28-05-2021 07:42

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

pratikpatel8982 28-05-2021 09:07

Quote:

Originally Posted by GaMEr_2077 (Post 492474)
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

GopnikRepackz 01-06-2021 18:16

Components Full and Custom Help
 
Hello everyone, trying to know how I can get the components to be fixed when in full installation but then selectable when in custom installation:
-The Full Installation at the moment-
https://imgur.com/aS2TWYh

-The Custom Installation at the moment-
https://imgur.com/Lgl13Fl

Thanks for the help!

Prince4 06-06-2021 01:42

Can someone Explain what does those two hyphen or minus do?


Code:

packcmd  = xtool precomp -mzlib+preflate -c32mb -t100p --dbase=temp.db - - <stdin> <stdout>

Also these "<stdin> <stdout>" are only used in Installer's Arc.ini right? For UnArc.dll?

GaMEr_2077 07-06-2021 00:43

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

Masquerade 07-06-2021 03:59

Quote:

Originally Posted by GaMEr_2077 (Post 492658)
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.

Prince4 08-06-2021 05:32

Quote:

Originally Posted by Masquerade (Post 492660)
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?

KaktoR 08-06-2021 07:41

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.

Epic Titan 69 11-06-2021 00:17

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

GaMEr_2077 11-06-2021 06:33

Quote:

Originally Posted by Epic Titan 69 (Post 492852)
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.....

KaktoR 11-06-2021 09:59

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;


Masquerade 17-06-2021 00:20

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?

L33THAK0R 17-06-2021 05:19

Hi all,

Does anyone know if Inno Setup supports checksum parts/segments/other-name-here? A lot of my conversions have selective/optional .bins and I usually only supply the checksums for the "main" files, but was wondering if I could have multiple smaller checksum files for each component then splice these together to verify selected parts.

Masquerade 17-06-2021 09:03

Quote:

Originally Posted by L33THAK0R (Post 492925)
Hi all,

Does anyone know if Inno Setup supports checksum parts/segments/other-name-here? A lot of my conversions have selective/optional .bins and I usually only supply the checksums for the "main" files, but was wondering if I could have multiple smaller checksum files for each component then splice these together to verify selected parts.

bat file - copy main.md5+selective.md5 new.md5


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

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