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)

Jawahir95 29-09-2018 09:31

Yes, i did :(

KaktoR 29-09-2018 09:36

1 Attachment(s)
Quote:

Originally Posted by K4miKaZe (Post 475984)
Ok !!! I tested it again now on my fixed script and its fine. Should be only this little typo (that usually happens when we copy and paste some code for categories that always looks same with little variation). Happened to me so many times xDD. And yes, the xtools is a bit outdated but its easy to fix/replace, i didnt mention it because i thought that maybe you dont have permission or something to add newer versions. Already used your script for all AC Games and ME Andromeda this week and its perfect, tooks a while to learn how everything works and more if you didnt use programs like ultraarc or inno in the life but after spending some time its very easy.



Of course you have permission, at least from me. Only thing is credit the owners of what compressors you have used.

Here is a fixed update for the redists and updated some compressors... I will merge the Ultraarc and Diskspan in the next days.

Jawahir95 29-09-2018 09:36

Thanks [KaktoR & K4miKaZe]

KaktoR: i will wait for your new fix about XTool.

K4miKaZe: i will try your method by update XTool and Disable [#Define ReflateDLL "x64"]

Jawahir95 29-09-2018 09:47

Thank you very much [KaktoR] ^_^

It worked fine with your last file [Updated.7z].

Really thankyou :)

Grumpy 29-09-2018 18:49

@ Jawahir95

Please do not post in 'Bold'

K4miKaZe 03-10-2018 08:09

Just another little note if someone like me is using UltraArc 2900 with the included Ztools it will not work with the Asis prebuilded Ztools. Just started a few days ago to compress all Final Fantasy games (mainly with ztools zlib) and got scared after getting isdone.dll errors. I was scared because ffxv took over 20 hours to compress xDDD. Finally i downloaded latest ztool from razor, replaced it like xtools on the include folder and added on the script the extra 2 .dll lines. Now its working perfect with this. UltraArcs version is newer than the asis one. Just to give only the information if someone else have problems with ztools.

KaktoR 03-10-2018 10:58

Could you share exact ztool settings you used for FFXV? I got crc errors on *.earc files.

K4miKaZe 03-10-2018 11:12

Yeah for sure but be aware, the ztool on your package has some problems, i used the newest one that came in ultraarc 2900 r5. Also to make it work with your installer i just downloaded the latest ztool from razor and put the files from the decoder folder to the x64 folder on your includes/ztool. Command by default untouched, but had included the 2 extra dlls on the script. Then i just choosed on compressor ini the ztool x64, lolz and on srep "O" + bpk.

This is my compression log:

Code:

D:\UltraARC 2900 R5 Stable Release>arc a -ep1 -r -ed -dses -s; -di -i2 -wE:\ArcTmp -n@CfgTmp\List1.txt -mMASK E:\data1.bin -dpC:\Users\K4miKaZe\Desktop\Final Fantasy XV
FreeArc 0.67 (March 15 2014) Using additional options: --cache=0 --logfile=_Compression.log
Creating archive: E:\data1.bin using srep:m3f+lolz:mmt1:d64:mc1023, $binkpack => bpk, $earcpack => pzlib+srep:m3f+lolz:mmt1:d64:mc1023
Memory for compression 0b, decompression 0b, cache 0b
Compressed 63,502 files, 82,863,904,137 => 50,052,040,109 bytes. Ratio 60.40%
Compression time: cpu 32250.61 sec/real 110519.25 sec = 29%. Speed 0.75 mB/s
All OK

As you can see thats about 24 hours with lolz xDD. $earcpack is an entry i created on arc groups for the earc files.

And this is my ultraarc ztool configuration:

Code:

[External compressor:pzlib]
header    = 0
default  = :max:c32m
;packcmd  = _PE\ZTool e:pzlib:t75p{:option} Input <stdout>
packcmd  = _PE\ZTool e:pzlib:t75p{:option} - - <stdin> <stdout>
unpackcmd = _PE\ZTool d:pzlib:t100p:cm0 - - <stdin> <stdout>
datafile  = Input

I didnt touched anything on ztool on ultraarc and nothing on asis, only changed the ztool version. Where do you get the error, on compress or decompress?

Edit: I didnt mention that, removed all foreign language files on sound/voices and also eliminated all duplicated videos

KaktoR 03-10-2018 11:31

Ok thanks. Got error on unpacking. Will test in next days (have to download the game again).

K4miKaZe 03-10-2018 11:37

Quote:

Originally Posted by KaktoR (Post 476085)
Ok thanks. Got error on unpacking. Will test in next days (have to download the game again).

Another thing, when u use the ztool by razor, it has 2 .exe files. 1 is the encoder and the other one the decoder, dont do the same mistake i have done while i was testing it (just placed the encoder for decode hahaha). But yeah, the only way i was able to install this game was using same version on uarc and asis (the newest one). Same thing happened to Rise of tomb raider, wasnt able to install it, got same error while unpacking on the .tiger file. Changing the ztools did solve all my problems. Also i have done FFXIII-2 and Lightning returns, not big improvement from lzma to lolz. When i finish with all FF games i will detail it on the compression thread, should be ready in 2 days.

Pirate Ted 13-10-2018 22:27

ISDONE Got Error in GTA V during installation.. mask Compression

K4miKaZe 13-10-2018 23:02

Quote:

Originally Posted by doofoo24 (Post 476311)
@K4miKaZe what ztool ver ?
can you share it...

I used the latest one that Razor posted, used it for over 20 games already without problems.

https://fileforums.com/showpost.php?...66&postcount=1

Its on the first post as attached file. It cames with two .exe, one is the decoder (for asis or another installer) and the encoder (for ultraarc).

Midnights 24-10-2018 16:00

About SystemReq

What you can write in processor for Single/Dual/Quad core?

K4miKaZe 24-10-2018 16:28

Quote:

Originally Posted by Midnights (Post 476552)
About SystemReq

What you can write in processor for Single/Dual/Quad core?

You have to add the number of cores before the mhz number and separate them with a *.

For example:

4*3000 = 4 cores at 3000
2*3500 = 2 cores at 3500

Regards !!!

Oh, and for single just write only the mhz number. Should be fine this way

Midnights 24-10-2018 17:46

And for OS, how specify x86 or x64? Thank

K4miKaZe 24-10-2018 22:18

Quote:

Originally Posted by Midnights (Post 476554)
And for OS, how specify x86 or x64? Thank

On the same settings.ini on the top there is an option to set it up for x64 only.

64BitOnly=0 (for x86/x64)
64BitOnly=1 (for x64 only)

I dont think its possible to indicate the bit version on the OS section but im not 100% sure.

KaktoR 25-10-2018 02:42

It is possible, but you have to add the check for yourself on HW Page

Look in ISSysInfo.iss, there are all possible things
Code:

function GetOSArchitecture: Byte; external 'GetOSArchitecture@files:ISSysInfo.dll stdcall delayload';

Midnights 25-10-2018 16:51

Ok forget that ^^

Thank

mausschieber 27-10-2018 09:51

it is not compatible with Inno setup 5.6 U
must have Inno Setup Enhanced Unicode otherwise welcome page is not shown

KaktoR 27-10-2018 14:05

Yep, or use included compiler.exe

kocchi96x 14-12-2018 22:53

I like this script and am enjoying how it works but their is one thing that bugs me, and thats the records ini is their some way i can get it to work with the setup exe itself without having to keep it in the source directory with it to work. Ive played around with it trying to get it work to no avail.

KaktoR 15-12-2018 15:19

Not without rewriting bunch of code.

I think the fastest "workaround" would be to include records.ini to setup.exe and let it unpack to temp folder (or let setup.exe create a new one instead). Before archive unpacking starts, use SaveStringToFile function and change "Source=" to source dir (from where you install) and "Output=" to target dir (destination of the game or whatever).

I have not looked up the code, but all needed info should be in "procedure UltraArc".

This way records.ini will be stored and read from %temp% folder instead of source folder (so it's not directly visible to the users).

The complicated way is to use ISArcExtract
Code:

if not ArcExtract(100,'Archive.arc') then break;
But for this much more code changing is needed.

kocchi96x 15-12-2018 21:07

Quote:

Originally Posted by KaktoR (Post 477756)
Not without rewriting bunch of code.

I think the fastest "workaround" would be to include records.ini to setup.exe and let it unpack to temp folder (or let setup.exe create a new one instead). Before archive unpacking starts, use SaveStringToFile function and change "Source=" to source dir (from where you install) and "Output=" to target dir (destination of the game or whatever).

I have not looked up the code, but all needed info should be in "procedure UltraArc".

This way records.ini will be stored and read from %temp% folder instead of source folder (so it's not directly visible to the users).

The complicated way is to use ISArcExtract
Code:

if not ArcExtract(100,'Archive.arc') then break;
But for this much more code changing is needed.

After some trial and error i got it working thanks for the lead their and thanks for the script.

K4miKaZe 15-12-2018 21:47

Yep, its not so complicated, i had this already done for my setups on asis. Just include the records.ini on the asis script to be copy over to the tmp folder just the same way you include an compressor. Then change on the script the src values to tmp for the records.ini. Works perfect this way

K4miKaZe 15-12-2018 21:57

Here is a detailed way how to add it to asis (in my case i place the records.ini where the settings.ini file is). I add some more code so if someone wants to add it it can be located in easy way

First part on very top of the script:
Code:

#define ScriptVersion "7.1.0"

#include "Settings.ini"
#include "Compressor.ini"
#include "Records.ini"

On the same script a bit after:

Code:

Source: Include\ASIS.png; DestDir: {tmp}; Flags: dontcopy;
Source: Include\ASIS.bmp; DestDir: {tmp}; Flags: dontcopy;
Source: Settings.ini; DestDir: {tmp}; Flags: dontcopy;
Source: Records.ini; DestDir: {tmp}; Flags: dontcopy;

And finally this:

Code:

  ExtractTemporaryFile('Settings.ini');
  ExtractTemporaryFile('Records.ini');

After all this 3 entries just on the same script look for all

{src}\records.ini

and change them to:

{tmp}\records.ini

Remember, records.ini should be placed on the root folder of asis this way.

pakrat2k2 15-12-2018 22:40

Quote:

Originally Posted by K4miKaZe (Post 477764)
Here is a detailed way how to add it to asis (in my case i place the records.ini where the settings.ini file is). I add some more code so if someone wants to add it it can be located in easy way

First part on very top of the script:
Code:

#define ScriptVersion "7.1.0"

#include "Settings.ini"
#include "Compressor.ini"
#include "Records.ini"

On the same script a bit after:

Code:

Source: Include\ASIS.png; DestDir: {tmp}; Flags: dontcopy;
Source: Include\ASIS.bmp; DestDir: {tmp}; Flags: dontcopy;
Source: Settings.ini; DestDir: {tmp}; Flags: dontcopy;
Source: Records.ini; DestDir: {tmp}; Flags: dontcopy;

And finally this:

Code:

  ExtractTemporaryFile('Settings.ini');
  ExtractTemporaryFile('Records.ini');

After all this 3 entries just on the same script look for all

{src}\records.ini

and change them to:

{tmp}\records.ini

Remember, records.ini should be placed on the root folder of asis this way.

thanks for posting such detailed information, i'm sure there will be more then just a few who may want to do this.

K4miKaZe 16-12-2018 17:27

Quote:

Originally Posted by pakrat2k2 (Post 477766)
thanks for posting such detailed information, i'm sure there will be more then just a few who may want to do this.

Glad to help :)

KaktoR 17-12-2018 12:56

I need some testers for next version (I made some big changes).

PM me if you're interested.

Chrushev 19-12-2018 17:10

Sorry Im new to this. Is there a tutorial on how to use this with other games?

pakrat2k2 19-12-2018 22:01

no tutorial needed everything is handled by settings.ini. Download the archive & look in the setup folder, there you will see the images/names for them. Look in settings.ini for the corresponding line for the image name. Thats all there is to it basically. Edit the ini with the game information it asks for, find images you want to use, make them the same size as those in setup folder.

only change i've made is names...

In settings.ini KaktoR has the name of the game before extension, ive just removed the name of the game & left it with just the name.

IE:

Code:

[Installer]
//----------------------------------------------- Setup\Filename.bmp
WelcomeBackground=Welcome.bmp
FinishBackground=Finish.bmp
BannerBackground=Banner.bmp

before it was gamename.Welcome.bmp which personally was way too much work to change everytime, easiest to just leave it short, as above.

Chrushev 19-12-2018 22:13

Quote:

Originally Posted by pakrat2k2 (Post 477914)
no tutorial needed everything is handled by settings.ini. Download the archive & look in the setup folder, there you will see the images/names for them. Look in settings.ini for the corresponding line for the image name. Thats all there is to it basically. Edit the ini with the game information it asks for, find images you want to use, make them the same size as those in setup folder.

only change i've made is names...

In settings.ini KaktoR has the name of the game before extension, ive just removed the name of the game & left it with just the name.

IE:

Code:

[Installer]
//----------------------------------------------- Setup\Filename.bmp
WelcomeBackground=Welcome.bmp
FinishBackground=Finish.bmp
BannerBackground=Banner.bmp

before it was gamename.Welcome.bmp which personally was way too much work to change everytime, easiest to just leave it short, as above.

yeah I got that part. But how do I point it to the game files to compress?

pakrat2k2 20-12-2018 09:07

Quote:

Originally Posted by Chrushev (Post 477915)
yeah I got that part. But how do I point it to the game files to compress?

what i've always done, ( just to keep things organized, & easier when posting a conversion or personal use )
the created setup goes in output folder (with games name ) then add UltraArc package to the output folder. Then enduser can simply run ultraarc point to their game & choose compression method.

Dont forget to edit ultraarc.ini & change the firstvolumesize to match what your setup equals subtracted from customvolumesize.

Output\UltraArc package

IE:

Output\Game\setup.exe the setup is 15 so CVS - setup=FVS.
in ultraArc.ini



[Split]
FirstVolumeSize=4465
CustomVolumeSize=4480
ThresholdPercent=30

kocchi96x 27-12-2018 17:34

how to i choose color for font color ik i can use (FontColor=) in settings ini but i for the life of me cant get right color when ever i try.

pakrat2k2 27-12-2018 18:06

Use this page for color choices, just use the Hex value without the # & input the value into FontColor=$###### ( 6 parts AFTER the $ )

Code:

http://cloford.com/resources/colours/500col.htm

KaktoR 28-12-2018 01:02

In current version you have to use $BGR color (reversed $RGB)

pakrat2k2 28-12-2018 08:30

yes forgot to add that.

Schabik 02-01-2019 04:08

1 Attachment(s)
Hi there,


I've got a problem after updating to version 7.1.0.


Those are the things I've done:
- added second Splash
- modified Records.ini according to instructions from K4miKaZe (post https://fileforums.com/showpost.php?...&postcount=385 )



And then while compiling an error appears about duplicate Identifier CALLWINDOWPROC.


Attachment 23755

yasitha 02-01-2019 04:32

Quote:

Originally Posted by Schabik (Post 478360)
Hi there,


I've got a problem after updating to version 7.1.0.


Those are the things I've done:
- added second Splash
- modified Records.ini according to instructions from K4miKaZe (post https://fileforums.com/showpost.php?...&postcount=385 )



And then while compiling an error appears about duplicate Identifier CALLWINDOWPROC.


Attachment 23755

Search *CALLWONDOWPROC* if you seen another one you have to remove it.
If you have extended another script check there too.

You have same two code lines
that what cause this.

if you don't have duplicate CALLWINDOWPRIC

Then get your old script and just,
FOLLOW K4miKaZe post. Then try compelling if it works fine. Then your error comes with your secondary splash.
You have to put things right. If you don't know how.
Tell me I'll help.

Schabik 02-01-2019 04:43

1 Attachment(s)
Quote:

Originally Posted by yasitha (Post 478361)
Search *CALLWONDOWPROC* if you seen another one you have to remove it.
If you have extended another script check there too.

You have same two code lines
that what cause this.


Ok, I've got what's wrong, corrected the script but had to comment these lines:


Code:

  #if Splash == "1"
      procedure ShowSplashScreen(p1:HWND;p2:AnsiString;p3,p4,p5,p6,p7:integer;p8:boolean;p9:Cardinal;p10 :integer);
        external 'ShowSplashScreen@files:isgsg.dll stdcall delayload';
    #endif

Because of error:
Attachment 23756


Oh, and a question, why after launching the installer it's starting from Req check page?

yasitha 02-01-2019 04:48

Quote:

Originally Posted by Schabik (Post 478362)
Ok, I've got what's wrong, corrected the script but had to comment these lines:


Code:

  #if Splash == "1"
      procedure ShowSplashScreen(p1:HWND;p2:AnsiString;p3,p4,p5,p6,p7:integer;p8:boolean;p9:Cardinal;p10 :integer);
        external 'ShowSplashScreen@files:isgsg.dll stdcall delayload';
    #endif


Because of error:
Attachment 23756

Is there another splash on this script?

Did you check the way i told you?

If you don't know how to figure this out.

Just upload your currunt working script
with all files. as an archive.
Then tell me exactly what you want to do.
I can modified for you.


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

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