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)

Titeuf 21-08-2019 08:51

Hello KaktoR,
I give you this message about a problem, message here =>https://fileforums.com/showpost.php?...postcount=1430

Would it be possible as on CIU to add the function "Create New CIU Project.bat" which is fine!
Thank you in advance for your answers,
cordially

KaktoR 25-08-2019 11:03

Yes it's possible. I will look at the issues next weekend.

Titeuf 25-08-2019 12:15

Quote:

Originally Posted by KaktoR (Post 482368)
Yes it's possible. I will look at the issues next weekend.

Hello KaktoR,
Ok in advance thank you

Titeuf 11-09-2019 03:34

Hello KaktoR,
Have you had time to look at the problems, please?
In advance thank you for your response.
cordially

KaktoR 14-09-2019 01:27

Yes but I don't know what's the problem.

Titeuf 18-09-2019 00:57

Quote:

Originally Posted by KaktoR (Post 482612)
Yes but I don't know what's the problem.

Hello KaktoR,
Excuse me for my late response, so the first thing is a request for ASIS:
"Would it be possible, as in the CIU, to add the function" Create a new CIU .bat project "which is fine!"

for the problem it's every time I use a compression method of the forum "Best Compression Methods for 'Specific' Games.Q & A" I have decompression errors, the last example here => and your answer here => in advance thank you for your answers,
Best regards

wangfeilong0317 01-10-2019 03:35

1 Attachment(s)
Hello, I translated Simplified Chinese, but it does not display properly.

mausschieber 13-10-2019 15:34

Error with Inno setup 6.0.2
 
Hi Bro

i have error when i use asis 7.1.3 with Inno setup 6.0.2

see picture
https://abload.de/thumb/errorw4jz9.png

Cesar82 13-10-2019 21:22

@mausschieber
This "CenterInsideControl" function no longer exists in Inno Setup 6...

A possible almost similar solution is:
Delete line in color red and insert this parts in blue color.
Code:

procedure AboutFormOnShow(Sender: TObject);
begin
  TSetupForm(Sender as TSetupForm).Left := WizardForm.Left + (( WizardForm.ClientWidth -  TSetupForm(Sender as TSetupForm).ClientWidth) div 2);
  TSetupForm(Sender as TSetupForm).Top :=  WizardForm.Top + ((WizardForm.ClientHeight - TSetupForm(Sender as TSetupForm).ClientHeight) div 2);
end;


procedure AboutButtonClick(Sender: TObject);
var
  AboutForm: TSetupForm;
  AboutOKButton: TNewButton;
  AboutLabel: TNewStaticText;
  LogoImage: TBitmapImage;
begin
  AboutForm := CreateCustomForm
  try
    AboutForm.ClientWidth := ScaleX(380);
    AboutForm.ClientHeight := ScaleY(280);
    AboutForm.Caption := SetupMessage(msgAboutSetupMenuItem);
    AboutForm.OnShow := @AboutFormOnShow;
    //AboutForm.CenterInsideControl(WizardForm, False);


Titeuf 15-10-2019 06:44

Hello everyone,
for some games, there are several *.ini files with the name of the player in different directories of the game, how and with what piece of code (for version 7.1.3)
I can do so that the name of the chosen player before the installation starts to change on all *.ini files?
In advance thank you for your answers,
cordially

Titeuf 21-10-2019 08:03

Hi,
Up please.
Thank

KaktoR 23-10-2019 11:42

Search

Code:

SetIniString('{#Section}', '{#Key}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{#INIFile}'));
After this add and change the ini file location manualy inside the script ('{app}\steam_emu.ini')

Code:

SetIniString('{#Section}', '{#Key}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{app}\steam_emu.ini'));
Maybe you have to change {#Section} and {#Key} too if the section/key is different in two ini files. If the sections and names are the same then just leave it like it is and only change the {#INIFile} for ini file #2, 3, 4, ...

Titeuf 24-10-2019 08:36

Quote:

Originally Posted by KaktoR (Post 483136)
Search

Code:

SetIniString('{#Section}', '{#Key}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{#INIFile}'));
After this add and change the ini file location manualy inside the script ('{app}\steam_emu.ini')

Code:

SetIniString('{#Section}', '{#Key}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{app}\steam_emu.ini'));
Maybe you have to change {#Section} and {#Key} too if the section/key is different in two ini files. If the sections and names are the same then just leave it like it is and only change the {#INIFile} for ini file #2, 3, 4, ...

Hello KaktoR,
it works perfectly after a first test, thank you!
Can you answer me for this: https://fileforums.com/showpost.php?...&postcount=726
Thanks in advance,
cordially

KaktoR 24-10-2019 10:47

Like I said earlier, I don't know what the problem is exactly.

I had a similar problem before with the game Frostpunk, where the install process just doesn't go further (no error message, stuck on like 49.4%, the archive just didn't unpack further at some point, while with CIU it works just fine).

I can't even tell you where the problem is exactly inside the code, because it won't happen on every data.

And I don't work on this anymore anyway. Maybe you noticed that I'm not much online since a few weeks, because I don't have the time for stuff like this at the moment.

artexjay 13-11-2019 12:17

How did you manage to get the the setup to check for system requirements? I can't seem to figure that out.

An excerpt of your code with a small explanation on what some of the code does would be great

Thanks

mausschieber 13-11-2019 17:01

Quote:

Originally Posted by artexjay (Post 483432)
How did you manage to get the the setup to check for system requirements? I can't seem to figure that out.

An excerpt of your code with a small explanation on what some of the code does would be great

Thanks

take a look in setup.ini and you find it example here

Code:

[SystemRequirement]
// Win7 = 611, Win8 = 621, Win8.1 = 631, Win10 = 1000
Enable=1
Processor=3200
VideoRAM=4000
RAM=8000
OS=611
DirectX=11
HWSectionLabelColor=$808080
HWOkLabelColor=$357EC7
HWNotOkLabelColor=$ff0000
HWGoodLabelColor=$36ff00
HWPartiallyGoodLabelColor=$ff8400
HWNotGoodLabelColor=$ff0000


artexjay 14-11-2019 12:27

Do i need a type of setup.ini to have it work or do you mean that the code in the setup.ini is enough to add into the inno script to get it to check for the requirements?

KaktoR 14-11-2019 13:08

In script.iss search for
Code:

procedure SystemReq();
I used functions from ISSysInfo.dll from peterf1999.

I can't explain all of this to you.

Some example from the code
Code:

if (GetCpuMaxClockSpeed) < Processor then begin
    CPUNameLabel.Font.Color := ColorConverter(GetValInt('SystemRequirement', 'HWNotOkLabelColor', 0));
    CPUNameLabel.Caption := 'CPU: '+IntToStr(GetCpuMaxClockSpeed)+' MHz,' + (ExpandConstant('  {cm:DirectXNeeded} ')) + '{#Processor}'+' MHz';
  end;

Code:

GetCpuMaxClockSpeed
Get max clock speed of your CPU. You find it by default in ISSysInfo.iss

Processor variable takes info from {#Processor} ISPP (which you can find in Settings.iss, which reads input directly from Settings.ini).
So if detected CPU max clock speed is lower (<) then Settings.ini input, label (HWNotOkLabelColor) is in red color (default). In fact you can change the color of HWNotOkLabelColor label in Settings.ini (this is also a ISPP). The ColorConverter only change color codes from BGR (Blue, Green, Red) to RGB (Red, Green, Blue). Inno's standard is BGR, which I find not really good.

CPUNameLabel.Caption is just the label for CPU.

Code:

'CPU: '+IntToStr(GetCpuMaxClockSpeed)+' MHz,'
However you have to convert the CPU MHZ number from integer to string (IntToStr) to display MHZ correctly.

Code:

(ExpandConstant('  {cm:DirectXNeeded} '))
Don't get confused here. This is just a custom message for the word "Required", but I was too lazy to change it to something more accurate lol.

Code:

'{#Processor}'+' MHz'
Display your input in Settings.ini for Processor= and add MHz after this.


Most of the other parts from the 'procedure SystemReq' are just variables or text/labels/fancy stuff which is not really needed but it looks better ;)
---

I always tried to made the scripts as clear as possible to give a fast overview, eventough everybody works a bit different and has a bit different characteristics.

artexjay 16-11-2019 14:21

Alright thanks for the insightful reply!

I've downloaded the .dll and will be trying to see if i can get it to work for me. Hope you don't mind if I pm you or reply later for help if I'm having some issues with it

Thanks again.

Entai44 02-12-2019 09:48

Could you add the second progress bar for file percentage? Like fitgirl 2016 do?

I edit the asis installer decompressor and add many compressors to UltraARC 2900 R6 FULL and some app

link: https://drive.google.com/open?id=1N8...3_u1SXMxuPZWJp (232 MB rar file)

Masquerade 04-02-2020 09:57

OGGRE crashes installer.
 
I'm experiencing a crash of the installer when trying to decompress an archive packed with only oggre.

OGGRE is enabled inside Compressor.ini.

Whenever the installer runs, it instantly crashes (and closes) after pressing "Install" with no error message.

Extra Info:
  • ASIS 7.1.3 in compact mode
  • OGGRE_enc.exe v.0.1.1 used for compression
  • Pack Command used in arc.ini:
    Code:

    [External compressor:oggre]
    header = 0
    packcmd = OGGRE\OGGRE_enc.exe $$arcdatafile$$.tmp $$arcpackedfile$$.tmp


I don't get it, I tried throwing 12 random ogg files into my compressor, and the installer decompressed them fine, I don't see why a 750-800mb archive should be any different...

Any help is appreciated.

I will update this mesage if I fix the issue.

Entai44 11-02-2020 08:24

Quote:

Originally Posted by Masquerade (Post 484573)
I'm experiencing a crash of the installer when trying to decompress an archive packed with only oggre.

OGGRE is enabled inside Compressor.ini.

Whenever the installer runs, it instantly crashes (and closes) after pressing "Install" with no error message.

Extra Info:
  • ASIS 7.1.3 in compact mode
  • OGGRE_enc.exe v.0.1.1 used for compression
  • Pack Command used in arc.ini:
    Code:

    [External compressor:oggre]
    header = 0
    packcmd = OGGRE\OGGRE_enc.exe $$arcdatafile$$.tmp $$arcpackedfile$$.tmp


I don't get it, I tried throwing 12 random ogg files into my compressor, and the installer decompressed them fine, I don't see why a 750-800mb archive should be any different...

Any help is appreciated.

I will update this mesage if I fix the issue.

Try UltraArc to compress, edit FA.ini for the 'Pack Command'

FreshMen 21-02-2020 03:38

How to install?
 
Hello guys i am new in Inno Setup and i saw this i loved this, but i don't know how to install.

KaktoR 21-02-2020 07:02

v7.1.4 added

Code:

v7.1.4
_____________________________________________________
- Updated some compressors
- Fixed Redist CB if Compactmode and Components is used
- Added translations for 'Click to select components...' message in compact mode


darkyamidesu 21-02-2020 13:50

hello, love this program.. (already make A'Lot of compression games)
if anyone can help me, can someone tell me or show me how to make
1. 2 shortcut (lets say PES game. i want to make "Game.exe" and "Settings.exe" shortcut) possible
2. can i assign .cmd or .bat file with some icon (so after i install the game/program. CMD/Bat file will have their own independent icon. rather than stock windows icon)

any reply is really appriciated..

Thanks for reading and maybe helping my request..
(sorry for my bad english. english isnt my mother/first language)

Love from indonesia..

^_^

*edit
Small more demand..
how can i change OS section to support/Showing "windows XP" - or - "XP"..
(change the number to XP, resulting any OS to showing red/unsupported)

KaktoR 26-02-2020 08:03

Code:

v7.1.4a
_____________________________________________________
- Fixed installation size in CompactMode if components were used and all components were unchecked (Checked=0)


KaktoR 26-02-2020 08:09

Quote:

Originally Posted by darkyamidesu (Post 484687)
hello, love this program.. (already make A'Lot of compression games)
if anyone can help me, can someone tell me or show me how to make
1. 2 shortcut (lets say PES game. i want to make "Game.exe" and "Settings.exe" shortcut) possible
2. can i assign .cmd or .bat file with some icon (so after i install the game/program. CMD/Bat file will have their own independent icon. rather than stock windows icon)

any reply is really appriciated..

Thanks for reading and maybe helping my request..
(sorry for my bad english. english isnt my mother/first language)

Love from indonesia..

^_^

*edit
Small more demand..
how can i change OS section to support/Showing "windows XP" - or - "XP"..
(change the number to XP, resulting any OS to showing red/unsupported)

1.
Not by default. You have to do this manually.

Go to
Code:

Resources\Modules\External\Icons.iss
and add a second shortcut there.

Maybe I will add something in future.


2.
In same file as above.

You have to use
Code:

IconFilename: "{app}\Icon.ico"
Not sure if it works tough.


-----

Windows XP is 513 (with ServicePack #3).

darkyamidesu 28-02-2020 20:01

Quote:

Originally Posted by KaktoR (Post 484725)
1.
Not by default. You have to do this manually.

Go to
Code:

Resources\Modules\External\Icons.iss
and add a second shortcut there.

Maybe I will add something in future.


2.
In same file as above.

You have to use
Code:

IconFilename: "{app}\Icon.ico"
Not sure if it works tough.


-----

Windows XP is 513 (with ServicePack #3).


thankyou for your generous and reply sir!
ill try at home..
(Busy in campus ATM)
:)

bubobih 01-03-2020 08:34

Hello im trying to compile a game with lolz and i do it like 6 times x 6 hours compression :P but when im installing i always get this error

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


Maybe someone know where i get wrong?

Masquerade 12-03-2020 13:11

Quote:

Originally Posted by darkyamidesu (Post 484687)
2. can i assign .cmd or .bat file with some icon (so after i install the game/program. CMD/Bat file will have their own independent icon. rather than stock windows icon)

Maybe I'm a little late, but you can use this program to covert your batch files to an EXE format, where then you can add an icon using the program or Resource Hacker.

Please note that in an EXE format, your batch files cannot be read/edited, so make sure everything works before you choose to share it with others.

jenning 19-03-2020 06:01

Progress bar is not working for me when setup is using lolz, my repack command:

Code:

arc a -ep1 -ed -r -w.\ Data\Setup-1.bin -mxprecomp+srep_x64:m3f+lolz:d256m:mtb256:mc1023:mtt1:mt8
After a while when lolz finishes i get this error: https://i.imgur.com/RGFqaBk.jpg

KaktoR 19-03-2020 08:07

srep_x64 is unknown by ASIS. Add it to Arc.ini or CLS.ini with its associated files.

Also check Compressors.ini

jenning 19-03-2020 09:06

Now I get this error:

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

I have attached my compression tools, how to get them to work with ASIS or any other setup ?

Thank you for your time.

Attaching my script that installs but doesn't show the progress.

jenning 20-03-2020 01:17

I have added my setup that currently is installing but doesn't show the progress.

@edit: got back to my old tools for now, if someone figures out setup with working progress bar for xtool+srep+lolz please post it here or message me, attach compression tools as well.

Thank you in advance, been repacking games for years now but can't figure it out. Before I had setup+compression tools from Kurutucu and it was compatible with each other, just ready to use.

Masquerade 23-03-2020 12:22

Quote:

Originally Posted by jenning (Post 484859)
I have added my setup that currently is installing but doesn't show the progress.

@edit: got back to my old tools for now, if someone figures out setup with working progress bar for xtool+srep+lolz please post it here or message me, attach compression tools as well.

Thank you in advance, been repacking games for years now but can't figure it out. Before I had setup+compression tools from Kurutucu and it was compatible with each other, just ready to use.

My XTool+SREP+LOLZ setup is working fine for me. Make sure you have your titles of external compressors in the Arc.ini of your compressor set correctly. This might not be the fix, but it works for me.

I'll explain:

In Arc.ini, you could have it set as:
Code:

[External compressor:XTool]
packcmd =

This could cause the progress bar to stop working, since the installer doesn't know what the string "XTool" means. Instead, use the titles listed in the Arc.ini that came with the installer e.g.:

Code:

[External compressor:xZlib]
packcmd =

This should fix your issue. The only other issue I can think of from using other compressor titles is that the install time appears as "Eternity". However, this is not an issue as the progress bar still works.

Also, if you have a VSF style applied, try running without the style in case that could be casuing issues.

Try using this example compressor I wrote for you and see if it changes anything.

jenning 24-03-2020 03:08

1 Attachment(s)
lolz and srep still not showing progress, I am attaching my setup.

Thank you for response my friend!

Masquerade 25-03-2020 01:35

Quote:

Originally Posted by jenning (Post 484896)
lolz and srep still not showing progress, I am attaching my setup.

Thank you for response my friend!

I've compiled the setup you sent and tested it with some of my compressed data, and your progress bar works just fine:

https://filesupload.org/99a0749db23cdeb0 <---- here's a little video showing it.

Obviously it's a bit short because I only tested with 80mb of compressed data (13mb compressed), packed using XZLIB+SREP+LOLZ

I don't know if the installer is saving the install location and install preferences because after on the second time installing for further test (the one shown in the video)the choices for install location and icon preferences didn't show up. The first time install didn't show the welcome screen either.

To be honest, I'm not sure what's going on.

jenning 25-03-2020 02:23

The srep and lolz still not working, it just goes super fast with that small test file and goes quickly to xtool/xzlib which shows progress.
If you try that with big files the setup will be stuck for a long while before it goes to the last step with xtool.

Masquerade 25-03-2020 03:48

@KaktoR

I fixed the BPK issue I was having:

If you take CLS-BPK_D.DLL and FAZIP32 from Ultra Arc and put them into the BPK folder of ASIS in the Decompressors folder then add the following string to Arc.ini in the FreeARC folder:

Code:

[External compressor:bpk]
header = 0
unpackcmd = "FAZip32" -i0 decompress:bpk_d <stdin> <stdout>

Then compress using CLS-BPK_C.DLL and FAZIP32:

Code:

[External compressor:bpk]
header = 0
packcmd = "FAZip32" -i0 compress:bpk_c <stdin> <stdout>

Everything works perfectly.

KaktoR 29-03-2020 08:05

Code:

v7.1.5
_____________________________________________________
- Changed BPK decompressor (thanks to Masquerade)
- Added PMT
  > Atm only for RAZOR Archiver
- Added Oodle8 support
- Fixed doubled installation display size (thanks to Cesar82)
- Removed DLZ



All times are GMT -7. The time now is 17:12.

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