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 22-02-2019 04:50

3 Attachment(s)
Quote:

Originally Posted by Titeuf (Post 479654)
Hello Schabik,
maybe can you put pictures?
thank you in advance


If You want to see how it looks, here You are:D


I'm attaching screens "Before" and "After" :D :)


Components page before the modyfication:

Attachment 24183


And after modification:


With Radiobuttons:
Attachment 24182


With Checkboxes (Yep, I also modified them to add languages as a subcategory):
Attachment 24181


I hope KaktoR will love it because everything he did works and brought this idea to the daylight :)

Titeuf 22-02-2019 04:52

It's very pretty Schabik !!

Schabik 22-02-2019 04:54

Quote:

Originally Posted by Titeuf (Post 479656)
It's very pretty Schabik !!


Thanks!! :D As I said I hope KaktoR will appreciate it too as it is his Project.

KaktoR 22-02-2019 05:22

I was able to fix this weird skin bug for the scrollbars (thanks to Cesar, he gave me this tip).

I have also changed the language archive unpacking (it has now correct progress).

I think I will implement the ISHash now to compactmode and share an updated script then (might take some days).

Next update:
Code:

v7.1.2 beta7
_____________________________________________________
- Fixed component prograss on ProgressBar
- Fixed ScrollBar on LicensePage and InfoBeforePage if you use cjstyle skin
- Added Skin support to LanguageBox
- Added Skin support to Uninstall progress
- Added ISHash library to CompactMode
- Changed appearance in Components page


yasitha 24-02-2019 01:13

While I'm away. I have fix lots of issues.
and i have remove all other languages.
For my personal use

I have fix time remaining and some redist CM
and some other minor issues..

I have try to fix that known bugs,
try almost a day but nothing works...

But Now i see you have fixed it.

KaktoR how did you fix this known bug?

Fixed ScrollBar on LicensePage and InfoBeforePage if you use cjstyle skin

Please add codes that fixed it.
so I can upgrade mine. Thanks!

KaktoR 24-02-2019 01:18

You have to use TNewMemo for the Memos (WizardForm.LicenseMemo and WizardForm.InfoBeforeMemo) because cjstyles is not compatible with TRichEditViewer.

yasitha 24-02-2019 05:48

Quote:

Originally Posted by KaktoR (Post 479704)
You have to use TNewMemo for the Memos (WizardForm.LicenseMemo and WizardForm.InfoBeforeMemo) because cjstyles is not compatible with TRichEditViewer.

Oky, if you could please post whole codes that correct this issues would be very nice
Thanks...

Schabik 24-02-2019 05:59

When will be beta7 posted? :-)

pakrat2k2 24-02-2019 17:04

^ when its done !! Why even ask ??

Schabik 24-02-2019 22:18

Just eager to test it :-)

KaktoR 25-02-2019 03:20

Maybe today :)

S-Ghost 25-02-2019 03:30

Thanks Bro.. i came back

KaktoR 25-02-2019 09:47

1 Attachment(s)
Here is b7

If you encounter any errors, make a screenshot and send me your settings.ini

It could always help to debug the setup (F9) to find possible errors with different settings (I have not tested all possible settings until now).

Schabik 26-02-2019 02:30

3 Attachment(s)
CJStyles not working


If I choose any cjstyles file it unpacks but do not load.


What should it look like:
Attachment 24219


Ehat it looks like:
Attachment 24220




Another thing, Why components are more complicated in this beta than the previous one?


In this beta, if You add a name to F.O.X. "Archive1Name=" it changes to radiobutton+it has the name that we added ("Archive1Name=Nameofcomponent"), if there is no name it changes to checkbox and gives us the name of language file.


In my opinion previous solution was way better, I hope You agree.
Approx the same amount of code and more clarity. :)


As for the cjstyles problem, I'm attaching my settings.ini



In Beta6 it worked like a charm.

KaktoR 26-02-2019 04:34

Quote:

Originally Posted by Schabik (Post 479778)
CJStyles not working


If I choose any cjstyles file it unpacks but do not load.


What should it look like:
Attachment 24219


Ehat it looks like:
Attachment 24220

Remove the cjstyles parameter in settings.ini
With new update you can choose the style INI files (just open one of the styles with 7z)

Example for 1.cjstyles you used:
Code:

1.cjstyles\.rsrc\TEXTFILE\

Quote:

Originally Posted by Schabik (Post 479778)
Another thing, Why components are more complicated in this beta than the previous one?


In this beta, if You add a name to F.O.X. "Archive1Name=" it changes to radiobutton+it has the name that we added ("Archive1Name=Nameofcomponent"), if there is no name it changes to checkbox and gives us the name of language file.


In my opinion previous solution was way better, I hope You agree.
Approx the same amount of code and more clarity. :)

Yes that should not be the case. I will look into it.
With the new system you can disable checkboxes you don't need without code editing.

Before all checkboxes were always visible even if you only needed one or two of them.

Schabik 26-02-2019 05:06

Quote:

Originally Posted by KaktoR (Post 479782)
Yes that should not be the case. I will look into it.
With the new system you can disable checkboxes you don't need without code editing.

Before all checkboxes were always visible even if you only needed one or two of them.




Thanks for the answer :) Now it works like a charm :)


When You fix the components issue it will be helpful :) And You're right it will be in fact useful :)

yasitha 02-03-2019 18:15

On system Detection,
GPU won't detect old ATI Cards but CIU2 and 3 Detect Ati cards. I can add picture if you want...

I want your ASIS to be Perfect :)
So when you fix all Bugs it should be better...

if you could add codex and plaza NEW
Interface like compact mode.

some guys don't like Graphics.
so simple interface is good for those guys.

Everything on One Page :)

Titeuf 05-03-2019 00:01

Info
 
1 Attachment(s)
Hello,
How can I not display this when I do not need the language files?
Because in seting I did this:

Quote:

[Component]
// Enable Yes (1) or No (0). If you don't need specific Archives, just place a semicolon (;)
Enable=0
EnableRadiobutton=0
;Archive1Name=Soundtrack
;Archive1=English.arc
;Archive2Name=Wallpapers
;Archive2=French.arc
;Archive3Name=
;Archive3=German.arc
;Archive4Name=
;Archive4=Italian.arc
;Archive5Name=
;Archive5=Spanish.arc
;Archive6Name=
;Archive6=Polish.arc
;Archive7Name=
;Archive7=Russian.arc
;Archive8Name=
;Archive8=PortugueseBrazil.arc
But this shows this:


Thank you

KaktoR 05-03-2019 01:43

Will be fixed soon.

exorc 05-03-2019 08:30

How to found external compresion (Records.ini) with lastest update?

Schabik 05-03-2019 08:35

Quote:

Originally Posted by exorc (Post 480031)
How to found external compresion (Records.ini) with lastest update?

Can you precise what do you mean with "how to found external compression"??


If I recall the only thing that was changed since 7.0.8 it was that Records.ini can be internal, other from that is all the same.

You enter Records to Records.ini and voila, if You use Components like seperate files for languages, You configure them in Settings.ini.

exorc 05-03-2019 09:04

Yes need activate internal records to 1 in settings.ini, Thanks.

Can it integrate the progress bar in setup frontend?

Sorry for my english..

KaktoR 05-03-2019 09:07

Components will be completely reworked (just because with ISPP it's a mess!).

Working atm on crc check for compactmode.

yasitha 11-03-2019 23:08

Hi KaktoR,
Please update the first page with latest Release!

bubobih 14-03-2019 15:17

Hello there is 4 bugs that im notice,

1st is uninstall icon in control panel doesent show, at least in windows 10
i solve that adding in
[Setup]
UninstallDisplayIcon={uninstallexe}

Second bug is [CRCCheck] when u disable it at the end u get this error
https://image.prntscr.com/image/t9ZB...5xyug7lKg.jpeg

3rd bug is when u increase font size in windows 10 (idk about other) install window get messed.

4th bug is showing installation size in add remove and in other 3rd party uninstallers, it says 1.5mb. I solve that adding this line in
[Setup]
UninstallDisplaySize=


Set in bytes. (1048576 bytes = 1 megabyte)

u need pretty big number, and u need to change it manualy every time. Maybe someone have some automatised line for this.

Additional tips to show in add/remove programs

AppPublisher=Name
AppPublisherURL=https://example.com/

KaktoR 15-03-2019 10:03

Could you add a screenshot of bug #4 please?

yasitha 15-03-2019 11:23

Quote:

Originally Posted by KaktoR (Post 480204)
Could you add a screenshot of bug #4 please?

I have fix that in long time a go. It's actually not a bug.
When we create setup.exe file. It's only count itself not the game.

He's talking about Uninstall panel on the windows..
It only shows 1.5mn or 30mb of setup.exe So we have to add Uninstall display size.. To show the game size..

KaktoR 15-03-2019 11:57

Code:

UninstallDisplaySize={#SizeMB}
should work

yasitha 15-03-2019 19:33

Quote:

Originally Posted by KaktoR (Post 480207)
Code:

UninstallDisplaySize={#SizeMB}
should work

It's not,
Cause UDS need Game Size in bytes, not in MB or GB
10737441824 (1MB)

To get right size on UDS you have to put size on like this.

1024 x 1024 = 1,048,576 (1MB)
1,048,576 x 1024 = 1,073,741,824 (1GB)

K4miKaZe 15-03-2019 21:21

Quote:

Originally Posted by yasitha (Post 480210)
It's not,
Cause UDS need Game Size in bytes, not in MB or GB
10737441824 (1MB)

To get right size on UDS you have to put size on like this.

1024 x 1024 = 1,048,576 (1MB)
1,048,576 x 1024 = 1,073,741,824 (1GB)

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.

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).


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

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