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)

yasitha 15-03-2019 21:35

1 Attachment(s)
Quote:

Originally Posted by K4miKaZe (Post 480211)
I think what KaktoR means to say is to put exactly what he wrote on the script:

UninstallDisplaySize={#SizeMB}

and not

UninstallDisplaySize=Any number in MB

SizeMB is probably linked to the settings/setup ini, same value you put in for the game size on it. Not sure as im not home, but thats what i understand at least and if SizeMB is the same used for the game size, it should also work for this.

No you can't do that,
cause setting.ini requires size as megabytes,
but UDS requires size as bytes.
The only way to fix this to add another one like {#UDSize} to Script and settings.ini and we have to put game size as megabytes and UDS size as bytes
It will solved the problem.

K4miKaZe 15-03-2019 23:09

Well, if its in bytes then this will not work but you can set it up adding zeros to the end, its not 100% accurate but it should work almost fine.

UninstallDisplaySize={#SizeMB}000000

Maybe instead of 1024 values we can change the mb value to 1000 so it would work for for install and uninstall. As said, im not at home so i cant take a better look into it.

yasitha 15-03-2019 23:28

Quote:

Originally Posted by K4miKaZe (Post 480213)
Well, if its in bytes then this will not work but you can set it up adding zeros to the end, its not 100% accurate but it should work almost fine.

UninstallDisplaySize={#SizeMB}000000

Maybe instead of 1024 values we can change the mb value to 1000 so it would work for for install and uninstall. As said, im not at home so i cant take a better look into it.

adding the another one like this will works perfectly.
I already done it.

Settings.ini

Size=46080
UDSize=42563458747

in Script
UninstallDisplaySize={#UninstallSize}

When, we Pack the Game, we just need to copy paste the games size to UDSize is that simple.

KaktoR 16-03-2019 01:15

Ok I will write a simple function for calculation ({#SizeMB} * 1024 = UninstallDisplaySize).

This should work then because {#SizeMB} * 1024 = bytes

K4miKaZe 16-03-2019 02:25

Quote:

Originally Posted by KaktoR (Post 480215)
Ok I will write a simple function for calculation ({#SizeMB} * 1024 = UninstallDisplaySize).

This should work then because {#SizeMB} * 1024 = bytes

Yeah, that would be the best option. Just keeping things simple as always.

Thanks KaktoR !!!

KaktoR 16-03-2019 14:33

Here is a changelog for next version.

Code:

v7.1.2 beta8
_____________________________________________________
- Added Redist installation to CompactMode
- Added ISHash library to CompactMode (now really!)
- Updated ISHash library (thanks to peterf1999)
- Reworked Components (thanks to Cesar82)
  > Information will follow later
- Updated 7z to v19.0.0.0
- Changed 'Size=' key in Settings.ini
  > It is now possible to write size as follow:
    b,B,k,K,kb,KB,Kb,m,M,mb,MB,Mb,g,G,gb,GB,Gb,t,T,tb,TB,Tb,p,P,pb,PB,Pb
    Example: 12345 Gb, 987.6 m
- Fixed slideshow
  > Before it always show the first picture twice.
- Fixed not correct size in Windows Control Panel
- Fixed some other bugs


KaktoR 17-03-2019 05:17

2 Attachment(s)
Code:

Components help:

.Name=
Use custom name.
Example:
Component1.Name=Soundtrack
Component2.Name=Wallpapers
...

Or use languages

Valid cm:xx values:
EN, ENGLISH
FR, FRENCH
DE, GERMAN
IT, ITALIAN
ES, SPANISH
PL, POLISH
RU, RUSSIAN
BR, BRAZILIAN

Component1.Name=cm:ENGLISH
Component2.Name=cm:RU

Only most used languages were added. Maybe more in next version.


.File=
Set filename to be linked to the component. The archive will only extracted if component is selected before installation starts.


.Size=
Set size of component.
Example: Component1.Size=1500 mb

PS: You can use different units for sizes.
Example: Component1.Size=1500 mb, Component2.Size=666 kb


.Level=
Set the (main) component to left (0) or right (1) and make a dependence for all following components. This is helpful if you want to make different groups of components.
Example:
Component2.Level=0
Component3.Level=1
Component4.Level=1
Component5.Level=1
Component2 is the topper component. 3+4+5 are dependend from Component2. If you disable Component2, 3+4+5 will be disabled too.


.Exclusive=
Make a Checkbox (0) or a RadioButton (1).

PS: RadioButton is usefull if a game can only have one language installed (some games use same files for different languages).


.Checked=
Set default state for CB/RB. 1 is checked, 0 is not checked


.Enabled=
Set enable (1) or disable (0).

Components.iss and CompactMode.iss are no longer neccessary (you can delete them).

Titeuf 17-03-2019 08:57

2 Attachment(s)
Hello,
thank you for this new version.
Under Windows 8.1Pro after choosing the language of the installation wizard, after splash display I have this message 2 times (look at my picture) before the wizard opens because of "if CurPageID = ComponentsPage.ID then "and yet I did this in settings.ini:" because when I run the installation from innoSetup, it displays this: look at my image.
Thank you for your help

KaktoR 17-03-2019 10:27

Fixed. Replace Script.iss from "7.1.2.beta8.FIX.7z" in previous post.

bubobih 17-03-2019 12:09

U are missing close and minimise icons in setup

http://prntscr.com/mz6bn8

Edit:
Now i have it.... hmmm strange :P i didnt do anything just recompile :)

Edit2: It is possible to add more background musics so it can play random or by some order? Just a question beacuse some installations take long and maybe 2-3 different music files will look (non bornig).

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


All times are GMT -7. The time now is 13:31.

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