FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ASIS: Advanced Simple Installer Script (https://fileforums.com/showthread.php?t=99481)

Schabik 02-01-2019 04:57

Quote:

Originally Posted by yasitha (Post 478363)
Is there another splash on this script?

Did you check the way i told you?


Check the attached screen, I've got to comment these lines because of error "Identifier Expected".


About previous error, I've forgot to mention that in version 7.0.8 I've added "TransparentStatic.iss" to include. I've deleted the Include and the problem was solved but another came in.

KaktoR 02-01-2019 04:57

@Schabik:
Add this to [Setup] section:
DisableWelcomePage=no

The script is broken at some points if you not use InnoEE. I still have to rewrite bunch of code.

KaktoR 02-01-2019 06:59

Should I make the WizardForm a bit bigger? I just realized that on some fonts the text on Welcome and Finish page is hard to read because you have to use small font size (otherwise some parts of the text are out of visible window).

Size is now:
Width := 497;
Height := 314;

Code:

v7.1.1
_____________________________________________________
- Updated some compressors
- Added option to make records.ini internal
- Rebuild file handling for compressors
- Updated file structure
- Removed old code
- Removed Compiler.exe for ISEE
  > You have to use IS (u) now
- Fixed ProgressBar flickering
  > It had something to do with (TLabel)
  > It is now (StaticText)
- Added Time Elapsed and Time Remaining
- Removed ProgressBarLabelColor
  > It is not working with (StaticText)
-Removed UltraArc= / DiskSpan= options
  > Installer extracts now both archive without extra setting


Schabik 02-01-2019 07:29

2 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 478365)
@Schabik:
Add this to [Setup] section:
DisableWelcomePage=no

The script is broken at some points if you not use InnoEE. I still have to rewrite bunch of code.

Even in InnoEE the problem persists.

Ok, so I've got another problem but with included Records.ini

After modification from post https://fileforums.com/showpost.php?...&postcount=385

Installer can't see archive files.
Can anyone help me?


I've changed all {src}\records.ini entries to {tmp}\records.ini

Attachment 23759
Attachment 23758

KaktoR 02-01-2019 07:59

Remove the line "if fileexists ..."

Schabik 02-01-2019 08:45

Quote:

Originally Posted by KaktoR (Post 478373)
Remove the line "if fileexists ..."

Ok, thanks :)

KaktoR 02-01-2019 13:43

https://i.imgur.com/gtINHd3.png

Schabik 02-01-2019 22:51

KaktoR, when You will upload the updated 7.1.1 version? :)

Unfortunately my PSU went off after 6 years, so I have to wait for my new one to check this out.

KaktoR 04-01-2019 06:33

I don't know. Time Remaining is broken atm.

Edit:
I made installer a bit bigger
https://i.imgur.com/JQG5EHb.png

I had to write some code to overwrite bitmap size because it seems that you can't increase bitmap size with width/height over a specific size.

TFileF 05-01-2019 18:39

Thank KaktoR for this great script. I had done some test and found the included precomp 0.42 are not working at all. They fail at decompression I don't know why but seem to work with the UltraArc 2.8.1 R3 with precomp 0.38 version. Any clue on this error ?

KaktoR 06-01-2019 07:25

?

I didn't even know that precomp is included :D

Btw, here are some shots

https://i.imgur.com/7B72NFO.png
https://i.imgur.com/ALRyIWE.png
https://i.imgur.com/5x0Cc6o.png
https://i.imgur.com/IsPJoDB.png
https://i.imgur.com/JUg0F3a.png
https://i.imgur.com/ll1a9zj.jpg
https://i.imgur.com/7Z7Cx87.jpg
https://i.imgur.com/VePTjqC.jpg

KaktoR 07-01-2019 04:51

1 Attachment(s)
Here is a BETA version. Report any bugs

Code:

v7.1.1
_____________________________________________________
- Updated some compressors
- Added option to make records.ini internal
- Rebuild file handling for compressors
- Updated file structure
- Removed old code
- Removed Compiler.exe for ISEE
  > You have to use IS (u) now
- Fixed ProgressBar flickering
  > It had something to do with % (TLabel)
  > % is now (StaticText)
- Added Time Remaining and Time Elapsed
  > Time Remaining is broken at the moment
- Removed ProgressBarLabelColor
  > It is not working with (StaticText)
- Increased Setup Window size
- Added ShowLanguageBox= option
- Moved CRC Check CB to DirPage
- Fixed CPU requirement calculation
- Rounded DirectX version number (from xy,z to xy)
- It is now possible to use RGB Color instead of BGR


Simorq 07-01-2019 12:52

Quote:

Originally Posted by doofoo24 (Post 478512)
@KaktoR
SaveStringToFile(ExpandConstant('{tmp}\arc.ini'), '[External compressor:lzma2]'+#13#10'header = 0'+#13#10+'unpackcmd = 7z x -txz -an -y -mmt=4 -si -so <stdin> <stdout>', True);
is it possible to add to inno to make mmt detect number of threads and use only half ?
like 4 threads > uses 2
6 threads > uses 3
8 threads > uses 4...

More than 2 core decompression in lzma2 useless.:rolleyes:

Simorq 07-01-2019 14:03

Quote:

Originally Posted by doofoo24 (Post 478514)
why :confused:

Of course, in version 18.6, the decompression speed has improved with multi cores.
And the memory leak has been fixed.

Simorq 07-01-2019 14:13

Quote:

Originally Posted by doofoo24 (Post 478516)
so what's your point beside stating the obvious :rolleyes:
i asked is it possible to add to inno mmt option that detect number of threads.
edit : nevermind i already found what i'm looking for :p

mmt=on all core but half core...

pakrat2k2 07-01-2019 14:26

Couple things found during test:

Line 1935: Column 16: Unknown type 'TSysteminfo'

If in Compressor.ini
#Define AFR "019" ; 019, 020 is enabled.

After successful compression, and running Setup:
Runtime Error (at 152:7627):
Could not call proc.

Also need somewhere that we could input languages needed, as some games dont have or need all that is there by default.

Schabik 08-01-2019 01:14

1 Attachment(s)
Got a problem, while compiling error "unknown identifier 's'" appears


Attachment 23790


In settings.ini Music and website is off...

yasitha 08-01-2019 02:56

Best of the Best :) Good Work Bro...

pakrat2k2 08-01-2019 06:22

Quote:

Originally Posted by Schabik (Post 478532)
Got a problem, while compiling error "unknown identifier 's'" appears
In settings.ini Music and website is off...

wonder why you script is exactly 10 lines different then what Ive got from 7.11 Beta ?

Schabik 08-01-2019 07:12

1 Attachment(s)
Quote:

Originally Posted by pakrat2k2 (Post 478558)
wonder why you script is exactly 10 lines different then what Ive got from 7.11 Beta ?


Just added second splash file and some thank you notes to AboutButtonClick


On the original script it also stops on the same line (that is '{#WebBtnName}')


Screen as a proof

Attachment 23793

KaktoR 08-01-2019 07:17

Quote:

Originally Posted by Schabik (Post 478532)
Got a problem, while compiling error "unknown identifier 's'" appears


Attachment 23790


In settings.ini Music and website is off...

You can't use ' character unfortunatelly. I will try to fix this in next versions sometime.

@pakrat
Thanks for feedback.

I have uploaded BETA 2 update to previous post

Code:

BETA 2
- Fixed Music and Website Buttons if one of them are disabled
- Fixed compile error if AFR "019" is enabled


kocchi96x 08-01-2019 18:35

1 Attachment(s)
i got this error with the new beta.

yasitha 08-01-2019 18:47

Quote:

Originally Posted by kocchi96x (Post 478581)
i got this error with the new beta.

Try using Inno setup unicode version..

kocchi96x 08-01-2019 18:50

im using the one that was included in tools.

yasitha 08-01-2019 18:56

Quote:

Originally Posted by kocchi96x (Post 478585)
im using the one that was included in tools.

7.0.8 / 7.10 can,..

but this one 7.11 need unicode.

kocchi96x 08-01-2019 19:02

1 Attachment(s)
yes i read that in the KaktoR post that it does and the one in the tools folder is this. I even went and downloaded it from the inno site and same error.

yasitha 08-01-2019 19:09

Quote:

Originally Posted by kocchi96x (Post 478587)
yes i read that in the KaktoR post that it does and the one in the tools folder is this. I even went and downloaded it from the inno site and same error.

then check that Ztool option on Extract settings..
I think something is missing related ztool..

thia one is 7.1.1 beta or beta 2?
Did you check both of them?
Same error?

kocchi96x 08-01-2019 20:25

okay I've got it working past that now not totally sure what happened but i can say that ztool isn't being extracted properly as i have mine packed with it and when i try to use installer it's ending in error when i look in the temp folder when it tries to install only one file from ztool is being extracted that being zlibwapi.dll but not ztool.exe as well.

yasitha 08-01-2019 20:29

Quote:

Originally Posted by kocchi96x (Post 478590)
okay I've got it working past that now not totally sure what happened but i can say that ztool isn't being extracted properly as i have mine packed with it and when i try to use installer it's ending in error when i look in the temp folder when it tries to install only one file from ztool is being extracted that being zlibwapi.dll but not ztool.exe as well.

Good!

kocchi96x 08-01-2019 22:37

okay i did test with a smaller file and i can say that for me ztool didnt work for me but xtool did im going to repack a bigger one now with xtool and try again later with it.

yasitha 08-01-2019 22:45

Quote:

Originally Posted by kocchi96x (Post 478593)
okay i did test with a smaller file and i can say that for me ztool didnt work for me but xtool did im going to repack a bigger one now with xtool and try again later with it.

Use XTool for zlib aka xZLib..

what do you mean ztool is not working?

Can't you compress or Decompress with Ztool?
Tell me. I can help..

kocchi96x 08-01-2019 23:08

decompress it crashes with error -11 saying its corrupt and i know its not cause the older version still works with it and ztool.exe isnt even extracted to the tmp folder with the installer but xtool is and works no error

Edit:
btw i wasnt saying that as its a big problem as xtool seems to work im just saying so KaktoR knows and maybe look into it, it just means i need to repack what i have done with the older version is all.

KaktoR 09-01-2019 00:03

Compile Setup.exe with ZTOOL just work fine for me.

kocchi96x 09-01-2019 00:05

Quote:

Originally Posted by yasitha (Post 478598)
so you have unpacking issue?
oky i can help with that.

but i need two things.
1 full script with all the files.
2 the method that you used to create archive

one other thing.
What is your archive name.
That you trying to unpack with Ztool.

I use ultraarc for compression and i used precomp p.zt, lolz, and srep. Also it worked for me with the 7.1.0 version when i followed with what K4miKaZe did on page 24 to get ztools fix on that version. i also did edit some of ultraarc.ini but you should see that when open this archive, also has the name i use for my file name as well as record.ini. Now i know like nothing in coding but i feel only reason its not working with ztools though is cause its for some reason not getting the ztool.exe into the installer and extracting it.

KaktoR 09-01-2019 00:15

Could you send me a small test archive with your exact compress settings used?

kocchi96x 09-01-2019 00:39

Edit:
i sent it in pm instead.

Schabik 09-01-2019 01:40

1 Attachment(s)
In 711Beta2 after compiling there is a problem with error "Could not call proc"


Attachment 23808

KaktoR 09-01-2019 04:42

Quote:

Originally Posted by kocchi96x (Post 478607)
I use ultraarc for compression and i used precomp p.zt, lolz, and srep. Also it worked for me with the 7.1.0 version when i followed with what K4miKaZe did on page 24 to get ztools fix on that version. i also did edit some of ultraarc.ini but you should see that when open this archive, also has the name i use for my file name as well as record.ini. Now i know like nothing in coding but i feel only reason its not working with ztools though is cause its for some reason not getting the ztool.exe into the installer and extracting it.

It works just fine. Read my PM

https://i.imgur.com/7UmAdnK.png

Only thing left that I could think of is that you use the new LOLZ version for compression and use old LOLZ version for installing (they are not compatible).

kocchi96x 09-01-2019 05:27

Quote:

Originally Posted by KaktoR (Post 478616)
It works just fine. Read my PM

https://i.imgur.com/7UmAdnK.png

Only thing left that I could think of is that you use the new LOLZ version for compression and use old LOLZ version for installing (they are not compatible).

weird cause i didnt edit the compressor.ini file and also in retrying with same settings i used the same ultraarc you included in the tools folder with same results.

https://i.imgur.com/AEICf3L.jpg

KaktoR 09-01-2019 05:49

You have to remove "//" infront of ZTool if you want to use it :)

If you don't need a compressor just add // infront to disable them.

PS: And I've tested your archive and it installs just fine

PPS: Added BETA 3 to previous post https://fileforums.com/showpost.php?...&postcount=412


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

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