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)

KaktoR 17-03-2019 14:20

Yes it's possible. I will try something out.

bubobih 18-03-2019 14:35

How to use lolz compression. Sorry im dumb :)

Schabik 18-03-2019 20:48

Quote:

Originally Posted by bubobih (Post 480249)
How to use lolz compression. Sorry im dumb :)

For a newbie I think that using tutorial for ultraarc will be the easiest way to learn how.
But I think this topic is about ASIS installer not for questions like that, just make a new topic and You'll get plenty of answers an by that I mean answers related to Your topic so You'll not get messed up by searching answers for your questions and questions about ASIS :-)

yasitha 18-03-2019 20:49

Quote:

Originally Posted by bubobih (Post 480249)
How to use lolz compression. Sorry im dumb :)

in ASIS you can see Compressor.ini open it ans change
//#Lolz to
#Lolz

Also you can change Dual to x64
Dual means x86 & x64
x64 mean 64 bit only.

Tip,
If you repack 64 bit game make sure to enable 64 bit only in setup ini and use only x64 on all methods in Compressor.ini

bubobih 18-03-2019 21:33

Quote:

Originally Posted by yasitha (Post 480253)
in ASIS you can see Compressor.ini open it ans change
//#Lolz to
#Lolz

Also you can change Dual to x64
Dual means x86 & x64
x64 mean 64 bit only.

Tip,
If you repack 64 bit game make sure to enable 64 bit only in setup ini and use only x64 on all methods in Compressor.ini

Tnx i will try tbat :) i saw that but i didnt touch it. I also see in iss its says

#define Compression "lzma"
#if InternalRecords == "1"
#include "Records.ini"
#endif

Do i need to change that too? Regards

yasitha 18-03-2019 22:38

Quote:

Originally Posted by bubobih (Post 480255)
Tnx i will try tbat :) i saw that but i didnt touch it. I also see in iss its says

#define Compression "lzma"
#if InternalRecords == "1"
#include "Records.ini"
#endif

Do i need to change that too? Regards

no you don't.
Its like Default settings,
i use those settings so don't touch it

lzma compress setup files png jpg mp3 dll files that create setup exe.. Its the best for that one.

about Records.ini
If you change it to 0 you have to put Records.ini near to setup.exe to run, if u put 1 you don't need records.ini with setup.exe

You can run installer with setup.exe, don't need records.ini

bubobih 18-03-2019 23:14

Quote:

Originally Posted by yasitha (Post 480253)
in ASIS you can see Compressor.ini open it ans change
//#Lolz to
#Lolz

Also you can change Dual to x64
Dual means x86 & x64
x64 mean 64 bit only.

Tip,
If you repack 64 bit game make sure to enable 64 bit only in setup ini and use only x64 on all methods in Compressor.ini


he is by default like this http://prntscr.com/mztwbk

and when i compress like this http://prntscr.com/mztwqf

i get error in setup.exe compression method unsupported or something like that

bubobih 18-03-2019 23:23

Quote:

Originally Posted by yasitha (Post 480256)
no you don't.
Its like Default settings,
i use those settings so don't touch it

lzma compress setup files png jpg mp3 dll files that create setup exe.. Its the best for that one.

about Records.ini
If you change it to 0 you have to put Records.ini near to setup.exe to run, if u put 1 you don't need records.ini with setup.exe

You can run installer with setup.exe, don't need records.ini

When i put records ini to 1 where and what name shoud be data pack so setup can find it?

yasitha 18-03-2019 23:36

Quote:

Originally Posted by bubobih (Post 480258)
When i put records ini to 1 where and what name shoud be data pack so setup can find it?

First of all you have to pack a game with Diskspan or UltraAr, if you like to split the game setup to DVD5, DVD9 or BD2 then i recommend diskspan.

If you don't,
Then you can just use bat file to create repack.

So an example you have a game repack
Data1.bin.001
Data2.bin.002
Data3.bin.003

001*** extinction comes with diskspan ok.SO you only have to add Data.bin.001 to Record1 that's all
You don't need to add others data2 or 3.

[Record1]
Type=Freearc_Original
Source={src}\Data.bin.001
Output={app}
Disk=1

bubobih 18-03-2019 23:38

Quote:

Originally Posted by yasitha (Post 480259)
First of all you have to pack a game with Diskspan or UltraAr, if you like to split the game setup to DVD5, DVD9 or BD2 then i recommend diskspan.

If you don't,
Then you can just use bat file to create repack.

So an example you have a game repack
Data1.bin.001
Data2.bin.002
Data3.bin.003

001*** extinction comes with diskspan ok.SO you only have to add Data.bin.001 to Record1 that's all
You don't need to add others data2 or 3.

[Record1]
Type=Freearc_Original
Source={src}\Data.bin.001
Output={app}
Disk=1

Im using ultrarc and i make only 1 bin or whatever extension i make. But records ini must be near setup.exe or he will not install nothing. i want to remove records.ini from setup files. so only to be setup.exe and data file

Edit: ooo i see in settings.ini add this

[Record1]
Type=Freearc_Original
Source={src}\Data.bin.001
Output={app}
Disk=1

yasitha 18-03-2019 23:46

Quote:

Originally Posted by bubobih (Post 480260)
Im using ultrarc and i make only 1 bin or whatever extension i make. But records ini must be near setup.exe or he will not install nothing. i want to remove records.ini from setup files. so only to be setup.exe and data file

Well i never use UltraARC with ASIS.

Try Changing Source name to your file

Source={src}\Data1.Bin

Change this one and try you have to change internal Record ini (1)
Then try,

if its not work.

Try this

[Record1]
Type=Split
Source={src}\Data.bin
Output={app}\Data.bin
Disk=1

If this not woke try changing

Output={app}\Data.bin
to
Output={tmp}\Data.bin

app to tmp. Or you could ask KaktoR,
He's the best and he knows everything..

KaktoR 19-03-2019 02:02

If you use UltraArc you have to use the Records.ini UltraArc creates.

bubobih 19-03-2019 02:05

Quote:

Originally Posted by KaktoR (Post 480264)
If you use UltraArc you have to use the Records.ini UltraArc creates.

Aha, ya idk another way.... Yet :) but i want to tty lolz compression as i see its better than lzma. But idk to setup your setup. Maybe arc make something wrong so your installer cant accept to decompress...

KaktoR 19-03-2019 02:06

I just saw that UltraARc use a older lolz version.

Download this https://fileforums.com/showpost.php?...2&postcount=11
Take "lolz_x64.exe" from pack folder and put it in UltraArc resources folder and rename to "lolz.exe"
Note: You have to recompressing.

bubobih 19-03-2019 02:23

Still have error

http://prntscr.com/mzwm4n

my ultraarc
http://prntscr.com/mzwn2i

my Compressor.ini

http://prntscr.com/mzwnfb

Schabik 19-03-2019 03:07

@KaktoR by the way, did You fix remaining time for the installation?

KaktoR 19-03-2019 09:04

No not yet,

yasitha 19-03-2019 09:17

Quote:

Originally Posted by KaktoR (Post 480274)
No not yet,

I'm not sure this is work but what if you combine time remaining with Records.ini?

when we add second/third archive to R.ini,
remaining times already know how long it will takes,
Cause records.ini had all archives added

maybe that will works.

KaktoR 19-03-2019 09:29

It works, but I have no clue how to make it with all the components (I go with Records.ini)

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

The problem is still, that you have to put all percents manually. For one archive it's not a problem, in this case it's always '100'.

bubobih 19-03-2019 09:45

what about my error :P

Schabik 19-03-2019 12:18

Quote:

Originally Posted by bubobih (Post 480277)
what about my error :P

Hmmm... What version of lolz and xtool did You use for compression?

bubobih 19-03-2019 12:20

Quote:

Originally Posted by Schabik (Post 480280)
Hmmm... What version of lolz and xtool did You use for compression?

I use from this tools folder and i update lolz from last link that u can read here

Schabik 19-03-2019 12:26

Did You update the version of cls-lolz on the ASIS Decompressors folder to the same version that You use for packing? Cls-lolz should be in the package that you used for the update of the lolz compressor. Error might be caused by the version mismatch between compressor and decompressor

bubobih 19-03-2019 12:39

Quote:

Originally Posted by Schabik (Post 480282)
Did You update the version of cls-lolz on the ASIS Decompressors folder to the same version that You use for packing? Cls-lolz should be in the package that you used for the update of the lolz compressor. Error might be caused by the version mismatch between compressor and decompressor

No i didnt, i saw that but i didnt. I will do it now... and report when i make new setup

Yap that worked tnx very much :P

kocchi96x 20-03-2019 02:41

this happens with both compact and normal when I go to uninstall.
https://i.imgur.com/Zhb4zl5.jpg

bubobih 20-03-2019 02:45

Quote:

Originally Posted by kocchi96x (Post 480289)
this happens with both compact and normal when I go to uninstall.
https://i.imgur.com/Zhb4zl5.jpg

I had that beacuse i remove _uninstall folder and put uninstall directly to root of directory, after latest asis update if u search in iss uninstall u will see many lines that point to _uninstall folder so i just return uninstall path to _uninstall and that error dissapier...

Titeuf 20-03-2019 02:47

Quote:

Originally Posted by kocchi96x (Post 480289)
this happens with both compact and normal when I go to uninstall.
https://i.imgur.com/Zhb4zl5.jpg

Hello,
read this:

And :

maybe it will fix your error messages!

KaktoR 20-03-2019 09:32

I have added 'UnInstallFolder=' to Settings.ini, where you can type in a custom folder. If it is empty, uninstall files will be in root directory.

If no other error comes up, I will upload v7.1.2 to a complete archive and add to first post, means out of beta (finally after months :D).

After this I will look on time remaining for components.

bubobih 20-03-2019 09:42

Quote:

Originally Posted by KaktoR (Post 480297)
I have added 'UnInstallFolder=' to Settings.ini, where you can type in a custom folder. If it is empty, uninstall files will be in root directory.

If no other error comes up, I will upload v7.1.2 to a complete archive and add to first post, means out of beta (finally after months :D).

After this I will look on time remaining for components.

Just to say there is still bug in win 10 when u use 120%+ font in windows settings. Here is a picture. Letter size mess all setup window.

https://cdn.discordapp.com/attachmen...2738/slika.png

Also i cant wait more music option :)

Schabik 20-03-2019 11:27

Quote:

Originally Posted by bubobih (Post 480298)
Just to say there is still bug in win 10 when u use 120%+ font in windows settings. Here is a picture. Letter size mess all setup window.

https://cdn.discordapp.com/attachmen...2738/slika.png

Also i cant wait more music option :)

Yep, I confirm the problem

KaktoR 20-03-2019 12:55

Hmm, seems to be a porblem with font dpi size. I don't know how it works nor how to fix it, but I will take a look.
I use just 1080p without font scaling (100%) so this bug was not detected by me.

kocchi96x 20-03-2019 13:04

My problem was the same as bubobih on what he posted Here error is gone now.

Schabik 20-03-2019 20:47

Quote:

Originally Posted by KaktoR (Post 480305)
Hmm, seems to be a porblem with font dpi size. I don't know how it works nor how to fix it, but I will take a look.
I use just 1080p without font scaling (100%) so this bug was not detected by me.

I've managed to solve the problem just resizing the setup just to be bigger, and I think it would be OK on scaling 125% and 100%

KaktoR 21-03-2019 02:39

1 Attachment(s)
I think I have fixed the issue.

Note: Use this over beta8 (+FIX) because this beta is not cumulative.

PS: I've also added time remaining. This only works with single archive (X.bin or X.bin.001 for diskspan) and disabled components for now.

bubobih 21-03-2019 09:38

Quote:

Originally Posted by KaktoR (Post 480311)
I think I have fixed the issue.

Note: Use this over beta8 (+FIX) because this beta is not cumulative.

PS: I've also added time remaining. This only works with single archive (X.bin or X.bin.001 for diskspan) and disabled components for now.

On my display its fixed but i get report from 1 guy, he have 4k display he have still problems....

http://prntscr.com/n13ix1

https://prnt.sc/n13ikn

Schabik 22-03-2019 04:53

Ok, sory @bubobih for the "out of the blue" question for @KaktoR but.


@KaktoR can You tell me what I must add to Your script if I want to check if the component was selected or not and components are checked ("=1") in the settings.ini



For example I want to check if Components are enabled in settings.ini and Polish language was selected (As Components name I'll use cm:PL) can I check if it is selected by adding something like this:

Code:

if ({#UseComponents} = 1) and (IsComponentSelected(GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I])+ '.Name' = 'cm:PL')) then
      begin


Of course I know the code above is wrong and It won't work but with some adjustments I'm sure it would.

KaktoR 22-03-2019 06:07

I think I don't understand your question right.

If you select a cmomponent in installer, it will be extracted. If it is not selected, installer will not extract it.

Schabik 22-03-2019 07:10

Quote:

Originally Posted by KaktoR (Post 480325)
I think I don't understand your question right.

If you select a cmomponent in installer, it will be extracted. If it is not selected, installer will not extract it.

The extract part is OK, although I'm having problems with understanding the new code.

I have to run a program conditionally that targets in AC1 .forge.patch files.

The condition is that it only should run when Polish or Czech language is selected. How to check if Polish (for example component3.Name=cm:PL) is selected to run the program and run it if the condition is fulfilled?

In Beta6 or 7 it was easy, check if "IsComponentSelected('lang\PolishLang')" and then run program to patch the forge files but now it's not clear for me.

KaktoR 22-03-2019 14:57

Ok now I understand.

I will look.

Schabik 22-03-2019 22:09

Quote:

Originally Posted by KaktoR (Post 480332)
Ok now I understand.

I will look.

Thanks 😊


All times are GMT -7. The time now is 09:58.

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