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)

Gupta 23-08-2017 05:17

yener had used A dummy label to use as shadows.
jst top and left property be +1 else everything is same

Code:

procedure UpdateShadow(var Current, Shadow :TLabel);
begin
  if Shadow = nil then
    Shadow := TLabel.Create(WizardForm);
  if Current.Visible and (ShadowTXT >= 0) then begin
    with Shadow do begin
      Caption := Current.Caption;
      Alignment := Current.Alignment;
      AutoSize := Current.Autosize;
      Transparent := Current.Transparent;
      WordWrap := Current.Wordwrap;
      Parent := Current.Parent;
      OnClick := Current.OnClick;
      OnDblClick := Current.OnDblClick;
      OnMouseDown := Current.OnMouseDown;
      OnMouseMove := Current.OnMouseMove;
      OnMouseUp := Current.OnMouseUp;
      Font.Color := ShadowTXT; 
      Font.Size := Current.Font.Size;
      Font.Name := Current.Font.Name;
      Font.Style := Current.Font.Style;
      Visible := Current.Visible;
      Height := Current.Height;
      Width := Current.Width;
      Left := Current.Left + 1;
      Top := Current.Top + 1;
      SendToBack;
    end;
  end else
    Shadow.Hide;
end;

or
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx

KaktoR 24-08-2017 07:17

Code:

procedure CurPageChanged(CurPageID: integer);
  begin
  case CurPageID of
    wpInstalling: begin
      WizardForm.ClientHeight := (180);
      WizardForm.ClientWidth := (497);
      WizardForm.CancelButton.SetBounds(ScaleX(75), ScaleY(23), ScaleX(412), ScaleY(327));
...
...

I'm not able to move Cancel button on installing page. Anyone knows why?

Also, BackButton just disappears with this

Code:

wpSelectDir: begin
      WizardForm.NextButton.Caption := 'Install';
      WizardForm.BackButton.SetBounds(ScaleX(75), ScaleY(23), ScaleX(242), ScaleY(227));

I have to define these buttons seperatly? I just thought because there are already in "InnoSetup Support" tab.

Gupta 24-08-2017 08:09

if u r using Native controls(Notebooks), then you can't put anything on them unless control is a child

KaktoR 24-08-2017 10:22

Thank you for your help.

Do it a different way then.

KaktoR 25-08-2017 06:16

How i can hide
Code:

wpInfoBefore: begin
      WizardForm.NoStartMenu.Hide; WizardForm.Icons.Hide;
    end;

Unknown identifier :confused:

Code:

var
  Icons: TNewCheckBox;
  NoStartMenu: TNewCheckBox;

Code:

NoStartMenu := TNewCheckBox.Create(WizardForm);
  with NoStartMenu do begin
    Parent := WizardForm.InnerPage;
    Left := ScaleX(46);
    Top := ScaleY(224);
    Width := ScaleX(411);
    Height := ScaleY(17);
    Caption := 'Don''t create Start Menu folder';
    OnClick := @NoStartMenuClick;
    Checked := False;
  end;

  Icons := TNewCheckBox.Create(WizardForm);
  with Icons do begin
    Parent := WizardForm.InnerPage;
    Left := ScaleX(46);
    Top := ScaleY(248);
    Width := ScaleX(411);
    Height := ScaleY(17);
    Caption := 'Create {#Name} Desktop Icon';
    Checked := False;
  end;


Gupta 25-08-2017 06:35

NoStartMenu, Icons aren't real members of WizardForm, you added them later on
try
NoStartMenu.Hide; Icons.Hide;

KaktoR 25-08-2017 06:50

That makes totally sense. THank you, it works :D

Sometimes i make mistakes like those things.

KaktoR 25-08-2017 12:09

Is there a way to resize SelectDirPage? Because i can't deactivate it.

Code:

with WizardForm.SelectDirPage do begin
    Left := ScaleX(1);
    Top := ScaleY(1);
    Width := ScaleX(500);
    Height := ScaleY(364);
  end;

Code:

wpSelectDir: begin
      WizardForm.SelectDirPage.SetBounds(ScaleX(0), ScaleY(0), ScaleX(500), ScaleY(364));

Both doesn't work.

I'm not in the mood to create a whole new page instead.

KaktoR 17-09-2017 11:12

Any way to set CheckBox style to default?

CheckBoxes from [Run] and Style (cjstyle/vsf) are different in appearance. I don't like that.

KaktoR 27-01-2018 08:37

Using GetIniInt to get required space (mb) digits. But at this point i don't know exactly how to replace it with the SizeMB define properly.

Code:

NeedSpaceLabel.Caption := ExpandConstant('{cm:NeedSpace}  ') + MbOrTb({#SizeMB});
I've tried with {code:RequiredSpace} and it's associated procedure, but get an error when it comes to the page where disk space is called.

Going to change my code to get rid of defines and using GetIniStr and GetIniInt instead. GetIniStr is fine, not a problem.

I hope someony could point me in right direction.

78372 27-01-2018 09:15

Maybe I am not understanding the question. Reading from ini and placing in the wizard form doesn't work or what?

KaktoR 27-01-2018 09:38

Yes, exactly, but only for the one mentioned code tag above.

78372 27-01-2018 11:28

Show code please (you used ISPP code, right?)

MARCUS HOLLOWAY 27-01-2018 11:53

Hey KaktoR,
#define SizeMB ReadIni(SourcePath + "\setup.ini", "Application", "Appsize", "")

in setup.ini
[Application]
Appsize=4096

KaktoR 27-01-2018 12:45

Quote:

Originally Posted by MARCUS HOLLOWAY (Post 466261)
Hey KaktoR,
#define SizeMB ReadIni(SourcePath + "\setup.ini", "Application", "Appsize", "")

in setup.ini
[Application]
Appsize=4096

Ok, didn't know it's possible to read from ini through define. Good to know. :p

I guess this answeres my question.

Thanks both of you ;)

oltjon 28-01-2018 09:58

my setup created with innosetup starts very late. you have some suggestion to give me??

ZakirAhmad 18-02-2018 08:42

Can anyone give a sample generic installer script with isdone support.

pakrat2k2 18-02-2018 15:18

Quote:

Originally Posted by ZakirAhmad (Post 467090)
Can anyone give a sample generic installer script with isdone support.

First & ONLY warning given, stop posting in every script topic there is, asking for the same thing over & over.

ZakirAhmad 19-02-2018 22:21

I want to cange the time format of my script from
elapsed time = 29 minutes 30 seconds remaining to 29:30.
how can i do that.
thanks.

Andu21 20-02-2018 14:27

Hi guys/gals, is there any way i can make Razor work with ISExec? This is what i've tried so far with no luck:

Code:

if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\rz.exe'), ExpandConstant('x "{src}\data.rz" -o "{app}\Folder"'), ExpandConstant('{app}'), 'Extracting...',false) then break;

ZakirAhmad 20-02-2018 22:58

i did that use timetype parameter as $1111.
how can i add win tb support.

Cyber_Phantom 22-02-2018 08:12

Don't know if i should post this here. Its related to WPI installer.
I added 3 archives to it and now the install bar goes upto to 300%. i tried to add ArchiveProgress=33 for each file....still same

ZakirAhmad 22-02-2018 10:14

Quote:

Originally Posted by Cyber_Phantom (Post 468293)
Don't know if i should post this here. Its related to WPI installer.
I added 3 archives to it and now the install bar goes upto to 300%. i tried to add ArchiveProgress=33 for each file....still same

u might have added recoeds.inf with installer

ZakirAhmad 23-02-2018 10:51

Is it possible to nclude exe files like pzlib with setup just like cls are included with setup. that is we r not able to see other thing working with setup/unimstall in task manager.

KaktoR 11-06-2018 05:30

Could anyone give me a easy example for FindFile function?

Have to find a specific file inside {app} folder, use result for FileCopy function that copies the specific file to result location.

Sergey3695 11-06-2018 09:26

Quote:

Originally Posted by KaktoR (Post 471630)
Could anyone give me a easy example for FindFile function?

Have to find a specific file inside {app} folder, use result for FileCopy function that copies the specific file to result location.

http://forum.oszone.net/post-1351758-1312.html

pakrat2k2 27-10-2018 10:35

brought to front page

CANNIBAL 27-10-2018 21:04

How To Add "Split" Module To Inno Script? Please Help

Jiva newstone 27-10-2018 21:34

Quote:

Originally Posted by Cyber_Phantom (Post 468293)
Don't know if i should post this here. Its related to WPI installer.
I added 3 archives to it and now the install bar goes upto to 300%. i tried to add ArchiveProgress=33 for each file....still same

Send the CurPageChanged code, i think i can help u

blairknox 15-11-2018 09:59

I have a problem with my installer. After the installer is finished there are 2 folders freearc..... .tmp. they are not being deleted and are taking up space. Both folders are few size less than unpacked files that are installed.

I'm using Inno Setup Compiler 5.5.1.ee2 (u) (build 121002). I am creating installler like WPI by RAZOR 12911 as practice.
i tried using deleteafterinstall next to flag under [files] section but it is still not working. i even tried to use WPI files by RAZOR 12911 but still does not work.
Can someone please help me.

blairknox 03-12-2018 03:30

1 Attachment(s)
even deleteafterinstall does not work. can some one please help me. here is the file if you need.

Jiva newstone 10-12-2018 03:24

Quote:

Originally Posted by doofoo24 (Post 477551)
any idea how to fix percentage with isdone
if not ISExec (0, 0, 0, ExpandConstant('{tmp}\app.exe'),
if not ISExec (0, 0, 0, ExpandConstant('{tmp}\app.exe'),
if not ISExec (0, 0, 0, ExpandConstant('{tmp}\app.exe'),
if not ISExec (0, 0, 0, ExpandConstant('{tmp}\app.exe'),
i get 200% 300% for each one
i'm looking for like this 10% 20% 30% ....

correct setting and first run it and get records.inf and use and extract records.inf in temp folder , in second time it works fine
u can change the records.inf creation location in
if ISDoneInit(ExpandConstant('{tmp}\records.inf'), $FFFF, 0,0,0, MainForm.Handle, 512, @ProgressCallback) then begin

amin fear 15-01-2019 02:32

I have successfully managed to compress PES 2019 to 11 GB using this method , i used below script command :

Method : -mztool_pzlib_zlib+srep:m3f:a16:d1g+lolz:dtb1:tt8:m t2:gm2 0:fba0:d128m+mc1023

:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::
bin\arc a -ma9 -ds -di -i2 -ep1 -ed -r -w.\tempzZ "Data_pzlib_Zlib-2.arc" -mztool_pzlib_zlib+srep:m3f:a16:d1g+lolz:dtb1:tt8:m t2:gm2 0:fba0:d128m+mc1023 "C:\PES\*"
:::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::

Download whole compression method below if it helps :
Code:

https://ufile.io/vpeek
Now when extracting game archives using CIU or ASIS script , i am getting "Unknown compression method" error.

Can you guys share your decompression script for this compression method or at least tell me which values should i change in those scripts to manage decompress this archives ? please ?

any help would be appreciated

KaktoR 15-01-2019 02:53

CIU arc.ini

Code:

[External compressor:ztool_pzlib_zlib]
header = 0
unpackcmd = ZTool d:{compressor}{:option}:t100p:cm0mb - - <stdin> <stdout>


amin fear 15-01-2019 04:54

Quote:

Originally Posted by KaktoR (Post 478806)
CIU arc.ini

Code:

[External compressor:ztool_pzlib_zlib]
header = 0
unpackcmd = ZTool d:{compressor}{:option}:t100p:cm0mb - - <stdin> <stdout>


Thanks KaktoR , it worked ! , although the "Unknown compression method" error goes away , i am getting this new error message by installer :

An error occurred while unpacking: Unable to write data to disk!
Unarc.dll returned an error code: -11
ERROR: archive data corrupted (decompression fails)

Do you have any idea what does it mean ? is my compression method/switch problematic & not working ?

the compression method plus files is already posted in above post.

KaktoR 15-01-2019 05:16

Which lolz version did you use for compress?

CIU use new lolz version and I can say that compress with old lolz and install with new lolz does not work

pakrat2k2 15-01-2019 15:51

also in the method ( sent me files ) he also has spaces where there shouldnt be any
(not the forum posting spaces issue...)
Code:

m t2:gm2 0

amin fear 21-01-2019 01:50

Quote:

Originally Posted by KaktoR (Post 478816)
Which lolz version did you use for compress?

CIU use new lolz version and I can say that compress with old lolz and install with new lolz does not work

Thanks , sorry for delay.

There is only "lolz_x64.exe" binary with no version information data using tools such as Resource Hacker. will check that version conflict in detail.:)

Also the problem solved by @pakrat2k2 switch correction.

Thanks a lot, fellows!

describe19 20-02-2019 01:59

Hi I'm wondering how to extract a .arc compressed with lolz with isdone.
I compressed with this simple arc.ini:
Quote:

[Compression methods]
lolzonly=lolz:mtt0:mt3:mc1023

[External compressor:lolz]
header = 0
packcmd = lolz_x64.exe {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

And I can easily extract just with arc.exe x -w.\ -dpunpacked\ data.arc (need cls-lolz stuff in directory and run as admin)

How can I get isdone/ISFreeArcExtract to unpack this file? Using the isdoneexample1.iss I just get the "unsupported method" error. How can I tell it how to extract my file?

Also is there a way to extract lolz without needing an administrator command prompt?

Thank you in advance

EDIT: I worked it out - you must have the cls-lolz stuff in the Include section of the .iss an also make sure to ExtractTemporaryFile each of the files too in the Code section. I was missing the ExtractTemporaryFile each of the cls-lolz files.

describe19 22-02-2019 00:33

I am now having the same issue with srep: i can extract with a .bat just using srep64.exe like above with this in arc.ini:
Code:

[External compressor:srep64]
header = 0
packcmd  = srep64.exe {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep64.exe -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

But using inno setup I get "srep64:m3f unsupported compression method"
I have made sure to include srep64.exe in [Files] and the ExtractTemporaryFile('srep64.exe') in the [Code] section,as well as arc.ini, but I still get the error, .
How can I extract srep64 with ISDone.dll / ISFreeArcExtract? Thank you, sorry for the double post.

Edit:Works fine with srep.exe but not srep64 i dont understand why, only thing i changed was srep64.exe to srep.exe. Why doesn't srep64 work with isdone but it does with just a .bat. How can I get it to work?
Also is there a way to change whether xlolz and srep 64 bit or 32 bit .exe is used depending on the user's system?

Edit2: I have changed the unpackcmd to srep64.exe -d -s -- <stdin> <stdout> and this seems to fix. I have also tried cls-srep.dll but I get a crc error...no error just using just srep64.exe and arc.ini.


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

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