View Full Version : ASIS: Advanced Simple Installer Script
Progress bar is not working for me when setup is using lolz, my repack command:
arc a -ep1 -ed -r -w.\ Data\Setup-1.bin -mxprecomp+srep_x64:m3f+lolz:d256m:mtb256:mc1023:mt t1:mt8
After a while when lolz finishes i get this error: https://i.imgur.com/RGFqaBk.jpg
srep_x64 is unknown by ASIS. Add it to Arc.ini or CLS.ini with its associated files.
Also check Compressors.ini
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.
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
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: [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.:
[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 (https://1fichier.com/?esoy18ka8v664i5le8k1) and see if it changes anything.
lolz and srep still not showing progress, I am attaching my setup.
Thank you for response my friend!
Masquerade
25-03-2020, 01:35
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.
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:
[External compressor:bpk]
header = 0
unpackcmd = "FAZip32" -i0 decompress:bpk_d <stdin> <stdout>
Then compress using CLS-BPK_C.DLL and FAZIP32:
[External compressor:bpk]
header = 0
packcmd = "FAZip32" -i0 compress:bpk_c <stdin> <stdout>
Everything works perfectly.
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
pincoball
03-04-2020, 07:58
Hello, I'm trying to create an installer with some sample files.
In particular what I have done is compression with UltraARC and this method set as MASK:
xZLib+srep:m1f:l512+4x4:b128mb:lzma:a1:mfbt4:64m:f b273:mc1000000:lc8
Then if I compress in a single file everything is ok, but if I split in multiple files when using UltraARC the installer will finish the process without error and unpacking nothing but the uninstallation files.
N.B.: for decompression I uncommented XTOOL in the compression.ini file
What would be the more likely problem?
Did you have Records.ini file? And set it right? UltraArc should create one automatically.
pincoball
03-04-2020, 08:20
Did you have Records.ini file? And set it right? UltraArc should create one automatically.
Yes, this one, divided in 10MB each
Edit: I also encounter the same problem using CIU v3. Am I the only one having this problem?
Edit 2: Tried different method for compression with UltraARC and having same problem as well
@KaktoR have you been able the reproduce the problem? I would like to test some old version of ASIS to see if the problem still occour
[Record1]
Type=Split
Source={src}\data1a.arc
Output={app}\data1.arc
Disk=1
[Record2]
Type=Split
Source={src}\data1b.arc
Output={app}\data1.arc
Disk=2
[Record3]
Type=Split
Source={src}\data1c.arc
Output={app}\data1.arc
Disk=3
[Record4]
Type=Split
Source={src}\data1d.arc
Output={app}\data1.arc
Disk=4
[Record5]
Type=Split
Source={src}\data1e.arc
Output={app}\data1.arc
Disk=5
[Record6]
Type=Split
Source={src}\data1f.arc
Output={app}\data1.arc
Disk=6
[Record7]
Type=Split
Source={src}\data1g.arc
Output={app}\data1.arc
Disk=7
[Record8]
Type=Split
Source={src}\data1h.arc
Output={app}\data1.arc
Disk=8
[Record9]
Type=Split
Source={src}\data1i.arc
Output={app}\data1.arc
Disk=9
[Record10]
Type=Freearc_Split
Source={app}\data1.arc
Output={app}
Disk=9
pincoball
07-04-2020, 02:47
Since the splitting feature of UltraARC doesn't seem to work on both ASIS and CIU I was trying to use DiskSpan (the .bat script provided with UltraARC) which seems to be working.
But I have this problem: when the installer extracts the first slice then a message box asks for the second disk containing the next slice:
Please Insert Disk With Data1.bin.002
If I select the requested file everything goes fine, so how can I make it select the file automatically?
Yeah UltraArc merge is broken on both scripts.
I think it is already the case that the installer automatically take the next slice, but only if it's in same place as first archive/setup.exe.
pincoball
07-04-2020, 03:27
Yeah UltraArc merge is broken on both scripts.
I think it is already the case that the installer automatically take the next slice, but only if it's in same place as first archive/setup.exe.
Ok I see but the installer doesn't take it automatically in this case. Trying understanding how the script code works, it seems that somehow this request of the next slice (even though placed in the same folder as the setup file) is encoded in the first slice itself rather than the ASIS/CIU script. (confirmation + file opener selection)
Is that right?
Edit: I attach the recors.ini generated by DiskSpan
[Record1]
Type=Freearc_Original
Source={src}\Data1.bin.001
Output={app}\Game Name
Disk=1
pincoball
07-04-2020, 07:04
I think I've found the solution for DiskSpan based on the example script posted from Razor12911 at
https://www.fileforums.com/showthread.php?t=99627
What was missing is simply the initialization of DiskSpan inside the script (i.e. ClsInit), then in order to solve the problem of request of the next disk do as follow:
Look for this snippet of code inside the IS script:
if Data[i - 1].Arc[0] = 'Freearc_Original' then
[... other code ...]
if ISDoneError = False and not IniKeyExists('Records2', 'Type', ExpandConstant('{{#InternalRecords == "1" ? "tmp" : "src"}}\records.ini')) and ({#UseComponents} = 0) then
begin
if not ISArcExtract(0, 100, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
ISDoneError := True;
end else begin
if not ISArcExtract(0, 0, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
ISDoneError := True;
end;
end;
then substitute with:
if Data[i - 1].Arc[0] = 'Freearc_Original' then
[... other code ...]
if ISDoneError = False and not IniKeyExists('Records2', 'Type', ExpandConstant('{{#InternalRecords == "1" ? "tmp" : "src"}}\records.ini')) and ({#UseComponents} = 0) then
begin
ClsInit(ExpandConstant('{src}'),WizardForm.Handle) ;
if not ISArcExtract(0, 100, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
ISDoneError := True;
end else begin
if not ISArcExtract(0, 0, UpdateSource(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\arc.ini'), Data[i - 1].Arc[2], false) then
ISDoneError := True;
end;
end;
The only difference is the line with ClsInit(...) function
I love this ASIS, thanks to the creator and anyone who get involved in making this installer... I have a problem when decompress my multiple archieves... I cant open my data1.bin.003 when the dialogue box showed n asked me to add it. Is there something I have to do with record.ini or anything else to solve it...? I lack in experience to do something with the script... I did some experiment and it's getting worse lol... Thanks in advance n sorry for my bad english...
pincoball
08-04-2020, 09:56
I love this ASIS, thanks to the creator and anyone who get involved in making this installer... I have a problem when decompress my multiple archieves... I cant open my data1.bin.003 when the dialogue box showed n asked me to add it. Is there something I have to do with record.ini or anything else to solve it...? I lack in experience to do something with the script... I did some experiment and it's getting worse lol... Thanks in advance n sorry for my bad english...
Did you generate the splitted archive with DiskSpan? Can you post your records.ini file (and also the compression method)? Also what do you mean you can't open the file? Does it give an error or not let you select it?
Did you generate the splitted archive with DiskSpan? Can you post your records.ini file (and also the compression method)? Also what do you mean you can't open the file? Does it give an error or not let you select it?
Yes, I used DiskSpan that came with ASIS 7.1.2 with "xZLib+srep+LZ4x4" compress method. There was no error but when I wanted to continue the installation process there was no explorer window opened that led me to select ".003" extension. The dialogue box asking me to to add "Data1.bin.003" continuously appears when I click "open" Here's my original record.ini created by diskspan...
Yes, I used DiskSpan that came with ASIS 7.1.2 with "xZLib+srep+LZ4x4" compress method. There was no error but when I wanted to continue the installation process there was no explorer window opened that led me to select ".003" extension. The dialogue box asking me to to add "Data1.bin.003" continuously appears when I click "open" Here's my original record.ini created by diskspan...
Oops, sorry. This is the record.ini created by diskspan...
Could you test with some small files and make 1mb archives? So you reach 3 or 4 archives per 1mb or so...
And send me your Setup.exe please. Because I can't reproduce this error atm.
Could you test with some small files and make 1mb archives? So you reach 3 or 4 archives per 1mb or so...
And send me your Setup.exe please. Because I can't reproduce this error atm.
Sure... I just tested with small files to make multiple archieves... It run well untill ".004" and this time there's error dialogue alert showed... It said the archiev data corrupted
I Just figured out that the problem i said before occured when I made iso files of "Data1.bin.001+Setup.exe"... So when I mount the iso file and run the setup.exe from it, the error occured, I cant add next archieve (002, 003 etc). It stuck at dialogue box asking me next archieve files..
Which compressor did you use for test archive?
If you run from ISO image, you have to switch to next ISO if Setup ask for next archive. I will change this so the file explorer will always open if next archive is not directly next to previous archive.
Edit: So I can say your archive is not broken. It extracts very well with batch file. I will look what's causing this.
Which compressor did you use for test archive?
If you run from ISO image, you have to switch to next ISO if Setup ask for next archive. I will change this so the file explorer will always open if next archive is not directly next to previous archive.
Edit: So I can say your archive is not broken. It extracts very well with batch file. I will look what's causing this.
Sorry, little bit late to reply, been busy with some works... I used default settings of ASIS and default setting of DiskSpan that came with ASIS 7.1.2... Cz I need more time to learn the setting and how to edit it... It's out of my expertise lol....
And yes, I switched the iso, even I mount all of the iso files at the same times but still with same problem. Perhaps it's just my fault by setting it wrong... I'll try to compress some files with different setting when my works here finished... Thank you for ur help...
Me and Cesar done some tests
First, as mentioned above by user pincoball, the clsinit function was missing. Strange enough, because I'm sure I never touched this. That's why no search window was opened. But whatever.
Unpack will always fail if using a third command (lzma, lzma-mt, lolz, razor, zstd), xtool+srep works fine. xtool or srep alone works fine too. Even with CIU and other scripts.
There are some possibilities:
1. The archive size of 1mb per part. Most likely, because with bigger sizes it works (option 6 is most used for whole games by users here). And I can confirm this myself, because I use XTool+srep+LZMA-MT most of the time and never got issues.
2. Bug inside cls-diskspan, unarc.dll or isdone.dll. unarc.dll and isdone.dll are pretty old and never got updated since years. Maybe some incompatibilities or bugs they have with diskspan or vise-versa.
So really nothing I could fix.
However, I added the clsinit back and the search file will now work.
pincoball
12-04-2020, 02:52
Regarding the problem of the splitting feature of UltraARC, I think I've found the causes of it during the merging
First problem:
The split.exe executable were not extracted from the {tmp} directory:
Solution:
from
procedure UnpackCompressors();
var
CurrFile: String;
begin
ExtractTemporaryFile('Arc.ini');
...
ExtractTemporaryFile('Facompress_mt.dll');
to
procedure UnpackCompressors();
var
CurrFile: String;
begin
ExtractTemporaryFile('Arc.ini');
...
ExtractTemporaryFile('Facompress_mt.dll');
ExtractTemporaryFile('Split.exe');
Second problem:
Edit: Removed: It was a problem that I made in my script
Edit: I also attach the records.ini I've been using just for reference
It works for me.
I created archives as follow:
\Test\Disk1\records.ini
\Test\Disk1\Setup.exe
\Test\Disk1\data1a.arc
\Test\Disk2\data1b.arc
\Test\Disk2\data2a.arc
\Test\Disk3\data2b.arc
\Test\Disk4\data2c.arc
\Test\Disk4\data3.arc
Each archive contains a single test file and after unpacking all 3 files are inside destination folder.
pincoball
12-04-2020, 03:38
But should I place the split files in different folders or can I just pust all together with also the setup.exe? Because for me it doesn't work.
Also I use records.ini as internal so to integrate it in the installer
I did a second test, this time with external and internal records.ini
\Test\Disk1\Setup.exe
\Test\Disk1\data1a.arc
\Test\Disk2\data1b.arc
\Test\Disk3\data1c.arc
\Test\Disk4\data1d.arc
\Test\Disk5\data1e.arc
\Test\Disk6\data1f.arc
\Test\Disk7\data1g.arc
[Record1]
Type=Split
Source={src}\data1a.arc
Output={app}\data1.arc
Disk=1
[Record2]
Type=Split
Source={src}\data1b.arc
Output={app}\data1.arc
Disk=2
[Record3]
Type=Split
Source={src}\data1c.arc
Output={app}\data1.arc
Disk=3
[Record4]
Type=Split
Source={src}\data1d.arc
Output={app}\data1.arc
Disk=4
[Record5]
Type=Split
Source={src}\data1e.arc
Output={app}\data1.arc
Disk=5
[Record6]
Type=Split
Source={src}\data1f.arc
Output={app}\data1.arc
Disk=6
[Record7]
Type=Split
Source={src}\data1g.arc
Output={app}\data1.arc
Disk=7
[Record8]
Type=Freearc_Split
Source={app}\data1.arc
Output={app}
Disk=7
It works just fine.
Splitted files were initially meant for put them into different folders, but it also work if you put all together into one folder. If you put all into one folder, don't forget to change the disk number inside records.ini.
pincoball
12-04-2020, 05:14
Ok I fixed it, it was a mistake I made in my script. Actually even leaving the Disk number in the records.ini unchanged works fine as well. Since it seems to be needed only to change the disk number that appears in the messagebox that appears in case of missing file
v7.1.6
__________________________________________________ ___
- Fixed diskspan file search window
> Clsinit function was missing and is now back
- Fixed positioning of CRC Checkbox on CompactMode
- If no Setup.ico is present, compiler will use default icon now instead of giving a error message while compile
- Added PMT support for MPZ
- Changed Time Remaining label
> Before it showed "Infinity" if you used more then one record inside records.ini.
If you use more then one record, Time Remaining will not show up anymore.
PS: Some of you may noticed the option "InternalCompression" inside Settings.ini. This setting does nothing until now, but in future there will be the possibility to use Inno build-in compression (lzma(2), zip) to use. I have to change big parts, especially for the time functions, progressbar and some other. I have no ETA but it may come in future.
Hi, I am new in your world ... I have reviewed the files in "Italian" language since I am of Italian mother tongue, and I found errors scattered a little here and there, so I wanted to correct them and maybe share them for the other users I have thought it might help. Thanks for your splendid Script.
=============================================
pincoball
15-04-2020, 11:00
I've been trying to repack this sample file (helloworld.dat) with this method (and UltraARC R7)
xZLib+srep:m1f:l512+4x4:b128mb:lzma:a1:mfbt4:64m:f b273:mc1000000:lc8
It always gives me Error -12 on failed CRC check. I've been repacking this files among other files but it gives the error only on this one.
Here there are the original file
https://gofile.io/?c=DWMX4V
and compressed one
https://gofile.io/?c=EqIKaK
Is there something I can do for decompress it correctly? I don't know if it is right posting it here since it is a rather generic problem
This file has no streams, therefore xtool is useless on this.
exclude this file using xtool or try with ztool instead.
the file unpack works properly without xtool.
pincoball
15-04-2020, 11:57
This file has no streams, therefore xtool is useless on this.
exclude this file using xtool or try with ztool instead.
the file unpack works properly without xtool.
Sorry for the dumb question, but how do see that the file has no stream? And also have you been able to unpack it from the archive I posted or a recompressed one? What are at this point the difference of using Xtool and Ztool in this case?
I would say I surely lack of knowledge of about compression and would like to know how to see in advance what I should exclude in general when using Xtool.
Throw an eye inside the detectors folder (I guess you know because UltraArc R7 is from there).
XTool has some bugs left, but not noticeable most of the time (well this time it is noticeable :D)
And no, I was not able to unpack the file, only recompress without xtool.
nicola16
18-04-2020, 09:40
I found a code and modified it you say it looks like it?
; Elamigos example username page ini file section
[INI]
Filename: {app}\uplay_r1_loader.ini; Section: Settings; Key: UserName; String: {code:GetUserName}
; Elamigos example username page code sections
[code]
var
UserNamePage : TInputQueryWizardPage;
procedure InitializeWizard;
begin
UserNamePage := CreateInputQueryPage(wpWelcome,
'Modificare il nome del giocatore', 'Nome del giocatore',
'Cambia il nome utente nel gioco');
UserNamePage.Add(' Username:', False);
end;
function UserNameForm_NextButtonClick(Page: TWizardPage): Boolean;
begin
Result := True;
end;
function GetUserName(Param: String): string;
begin
result := UserNamePage.Values[0];
end;
https://i.ibb.co/QH0FWhZ/Immagine.png
Masquerade
20-04-2020, 08:23
Hey there, I'm using A.S.I.S 7.1.4 still but I'm encoutering a small issue.
I normally could use packjpg/packmp3 without issues (I just added them into Arc.ini and used the BPK folder to include them because anything that goes in there gets included in the installer).
Now however, when I try and decompress a file packed with either, it just crashes without an error message. I haven't changed any files in my compressor or installer before the issueso I'm not sure what could be causing it. It's only with these 2 compressors.
Also, on an unrelated note: is it possible to remove the Compressors.ini file and replace it with a simple Include folder that just intakes everytihng inside, just like the BPK folder?
Thanks again for the brilliant installer script.
packjpg/packmp3 are already included inside MPZ folder.
Maybe the files cause the error (jpg/mp3). Did you try to unpack them with a batch file instead to see if the error comes actually from the script itself?
Yes it is possible, but you could also just move all files you need inside FreeArc folder.
Masquerade
23-04-2020, 11:07
packjpg/packmp3 are already included inside MPZ folder.
Maybe the files cause the error (jpg/mp3). Did you try to unpack them with a batch file instead to see if the error comes actually from the script itself?
Yes it is possible, but you could also just move all files you need inside FreeArc folder.
Sorry it took me a while to get back to you, but I did a bit of digging and when I was rearranging my Arc.ini in the Installer, I missed out a line causing everything to turn nasty:
Compress:
[External compressor:packjpg]
header = 0
packcmd = packjpg_x64 -np $$arcdatafile$$.jpg
datafile = $$arcdatafile$$.jpg
packedfile = $$arcdatafile$$.pjg
solid = 0
Unpack Arc.ini
[External compressor:packjpg]
packcmd = packjpg_x64 -np $$arcdatafile$$.jpg
datafile = $$arcdatafile$$.jpg
packedfile = $$arcdatafile$$.pjg
solid = 0
Added the header = 0 line back and now all is good. Thanks again for the great script.
Masquerade
24-04-2020, 01:17
The issue with the Bonus Components Back Button going missing is still happening.
https://i.ibb.co/q7PNsxg/Screenshot-20200424-090953-01-01.jpg
I suggested changing screen resolution.
Apologies for giving you all of these problems :( I really wish I could help.
I think the problem is
Left := ScaleX(WizardForm.ClientWidth - 80);
Top := ScaleY(WizardForm.ClientHeight - 28);
I will try to use absolute numbers without doing math.
Otherwise I don't know
The previous update had some bugs left, here is the hotfix :D
v7.1.7 Hotfix
__________________________________________________ ___
- Fixed "OK" button on components page (CompactMode) with higher desktop resolutions
> Hopefully this will be the last one
- Fixed "Background" button on FinishedPage with special settings
- Added a new [Executable#] section to Settings.ini
> There will be set executables for shortcuts
- Reworked creating icons for your application
> It is now possible to set/create more then one icon
> Theoretical you can create an infinite number of shortcuts
- Updated all languages
- Some script cleanup, now be less unneccessary doubled codes and trash
- Hotfix: Fixed hash check if more then from 1 disc/iso is installed
> Before the file was extracted on hash page, and if you were installing from more
then one disc/iso and changed the disc/iso, Installer couldn't extract the file
because Setup.exe was not in {src} folder anymore, so you had to remount the disc/iso
and click "Retry" to start the hash check. This is now fixed.
- Hotfix: Fixed broken FinishPage if CRC checkbox was checked (NormalMode)
If you encounter more then tell me please
Masquerade
28-04-2020, 08:24
I was wondering if it's possible to change the button placement in compact mode? I'm having a little play around with the layout and I can move everything so far except from the install, pause and cancel buttons. Is there something I'm missing?
PauseButton := TNewButton.Create(WizardForm);
with PauseButton do
begin
Parent := WizardForm;
Left := ScaleX(10);
Top := ScaleY(310);
Width := ScaleX(225);
Height := ScaleY(23);
Caption := ExpandConstant('{cm:Pause}');
OnClick := @PauseButtonClick;
end;
Here's an example. According to the above config, the button should be larger and on the left instead of the right, however ther button still appears in the top right.
I extended the installer slightly to 500 (Y) value, so that's why the button can go lower than the normal compact mode window.
Is there some kind of lock on the button / or can buttons not be resized or moved?
There are two different PauseButton.
One for NormalMode, the other for CompactMode.
The button for compactmode is on line 3190
Masquerade
28-04-2020, 11:17
There are two different PauseButton.
One for NormalMode, the other for CompactMode.
The button for compactmode is on line 3190
I ripped out the Wizard Creation for Normal Mode because I didn't need it, the remaining wizard creation part is the lines for Compact mode (lines beginning with the notation /* BEGIN Compact Mode Wizard Creation */). I removed the ELSE statement.
So for me the Wizard Creation starts at 1938 however with the Normal mode section, it would begin at 2807 I do believe.
Edit: the above mentioned Code snippet is located on line 3092
Search for CurPageID = wpWelcome
The pausebutton will be changed there too (this is ridiculous, I will change this too in next version). This settings will be higher priority then the first in initialize wizard.
Masquerade
29-04-2020, 12:12
I managed to get everything sorted, this is how it's looking currently:
https://i.imgur.com/dy429i6.png
I'd like to add an image at the top, so I added this code (taken from the About section of the newest release):
Do you know how I could add an image to the top section? I tried using code snippets from the 7.1.7H release about section:
This went in after the //Begin Creation// notation:
ExtractTemporaryFile('image.bmp');
LogoImage := TBitmapImage.Create(WizardForm);
with LogoImage do begin
Name := 'LogoImage';
Parent := WizardForm;
Left := ScaleX(5);
Top := ScaleY(5);
Width := ScaleX(373);
Height := ScaleY(149);
//Bitmap.AlphaFormat := afDefined;
Bitmap.LoadFromFile(ExpandConstant('{tmp}\image.bm p'));
ReplaceColor := $0000ff
ReplaceWithColor := WizardForm.Color
end;
I also added this to the procedure InitialiseWizard section:
LogoImage: TBitmapImage;
However I cannot get the image to appear. I tried adding:
WizardForm.LogoImage.Show;
And:
WizardForm.LogoImage.Hide;
To dictate whether the image should be there or not in wpWelcome and wpInstalling etc...
However that returns the issue Missing Identifier LOGOIMAGE.
I wonder if you know about adding more images? I don't have any in the about section, I replaced that area of code with text from 7.1.4b.
@Masquerade
try removing WizardForm. from lines:
WizardForm.LogoImage.Show; >> LogoImage.Show;
WizardForm.LogoImage.Hide; >> LogoImage.Hide;
Masquerade
29-04-2020, 12:43
@Masquerade
try removing WizardForm. from lines:
WizardForm.LogoImage.Show; >> LogoImage.Show;
WizardForm.LogoImage.Hide; >> LogoImage.Hide;
The script now compiles which is great, thanks for the info.
Only now when running the script:
https://i.imgur.com/a4VGZOE.png
The image is in .bmp format at a size of 460x77 (the window size is larger than this.
@Masquerade
Send me your src code
I have added the update to first post.
Nothing really new, just update help file and removed unneccessary code.
Masquerade
01-05-2020, 02:23
The previous update had some bugs left, here is the hotfix :D
If you encounter more then tell me please
Been playing with the new [Executable] section in the INI file however there's a couple things:
- The desktop shortcut always is written to be the default path instead of the chosen install path. If my default is {sd}\Games in [Extract Settings] but I change the path in the installer to a different Drive or folder, the shortcut will still get written as c:\games instead iof the user chosen path.
- Desktop shortcut is always created despite checkbox being unticked.
- This path confusion may also lead to the CRC check not working as intended - when running a CRC check, all files are printed as "Not found" when the files have extracted properly to the user chosen path. Wirthout a way of seeing where the installer is looking to check the files, I can't confirm that there's a link between this and the path confusion. My CRC MD5 file did work because I ran it in the install directory and everything verified correctly.
For the shortcuts...
Just add this to both issp code lines
""";"
to
"""; Check: CreateIcons;"
I have forgot this
I will look at the path and crc check later (I think I will copy it to app instead).
PS: The shortcut problem is the INI setting. I will remove this (this gave me already headache in the past). I have to look how to use WForm.DirEdit(TEdit) input into ispp.
Edit: I don't think this is possible with ispp. ispp will be executed and written on compile. Impossible to change it afterwards.
Here is a fix for the shortcuts (thanks to Cesar).
Here is a fix for the shortcuts (thanks to Cesar).
It appears that there are modified AFR_x32 and AFR_x64 files in the newest version. After compiling and running the setup on ACUnity (As I've told You It unpacks properly on AFR 020 x64) there is an error -11 on the beginning. I've copied the files I've used for compression and the error dissapears.
shakhnaften
06-05-2020, 05:29
hello is there a way to use inno internal compression?
shakhnaften
07-05-2020, 03:57
thank you do you know why is cancel button like this?
https://i.imgur.com/pAfenxn.png
https://i.imgur.com/0QQPtmf.png
Wrong positioning :D
Send me your Settings.ini please
shakhnaften
07-05-2020, 05:24
here you go thank you
Well this only happens with vcl skin.
I will investigate this soon.
shakhnaften
07-05-2020, 07:35
thank you looking forward to this and internal compression
Well this only happens with vcl skin.
I will investigate this soon.
Find this part in ASIS code and add line in red color.
procedure CurPageChanged(CurPageID: Integer);
var
I: Integer;
CompFile: String;
ReloadComponents: Boolean;
begin
#if CompactMode == "0" /* Full Installer Mode */
if CurPageID = wpWelcome then
begin
#if UseInstallBackground == "1"
BackgroundButton.Hide;
#endif
AboutButton.Show;
PercentLabel.Hide;
ElapsedLabel.Hide;
RemainingLabel.Hide;
PauseButton.Hide;
WizardForm.DirEdit.Hide;
WizardForm.DirBrowseButton.Hide;
WizardForm.GroupEdit.Hide;
WizardForm.GroupBrowseButton.Hide;
WizardForm.PageNameLabel.Hide;
WizardForm.PageDescriptionLabel.Hide;
WizardForm.ProgressGauge.Hide;
WizardForm.UserInfoNameLabel.Hide;
WizardForm.UserInfoNameEdit.Hide;
WizardForm.CancelButton.Top := WizardForm.NextButton.Top;
ReloadComponents := False;
#if UseComponents == "1"
if ComponentsPageAvai then
begin
//...
@Cesar: I already did this. But I don't know why this happens with vcl skin... Any ideas? Just to inform myself :D
@KaktoR, I found out.
The error happens only using version 6 of inno setup.
In reality, the VCLStylesInno.dll library relocates the NEXT and BACK buttons (in -3 pixels), but CANCEL is not repositioned.
If using inno setup 5 + VCLStyles all buttons are repositioned to (-3) pixels.
I attached a test for you to test if you want (Define or not the 2 lines and compare using inno setup 5 and 6).
There was an error in the ASIS script when compiling using Inno Setup 5.
I'm not sure if the script I had was the last one.
I fixed this error and also used a more correct way to correct the CANCEL buttom problem (Only fix if using Inno Setup 6).
The corrected ASIS script (Version I had) is attached.
Hello Kaktor please name the compressor which i can use in this inno installer
Hello Thanks For The ASIS Please answer me how we can create a crc file of a game please help me to check wether the files has installed correctly
Hello Firstly Thanks For The Installer
I am seeing that Cr Check is available But i am completely noob in coding or compressing so please give a very simple tutorial to create crc file for checksum:)
shakhnaften
08-05-2020, 03:02
hello I have issue with info before page
is there a way to make it accept rtf format?
i changed txt to rtf in script and made a rtf file but it doesnt accept its formats or fonts or sizes
also is there a way to make it read only in setup window cause i can write in it in setup window
thank you
Use Compressor.ini to find out.
Create crc file with HashCheck, QuickSFV, ...
Yes it is possible to use rtf.
Change inside script
InfoBeforeFile=Setup\InfoBefore.txt
to
InfoBeforeFile=Setup\InfoBefore.rtf
shakhnaften
08-05-2020, 04:01
yes thank you I did that but the formats in rtf file doesn't apply like the size, font, centering text and stuff is there a way to make those work?
and is there a way to make the text box inside the setup read only because i can change the text inside setup textbox
Well I have to change some things for the rtf files fontsize, fontcolor etc... (I have to change from TNewMemo to TRichEditViewer). I will make this later.
However, here is a new script which allows you to load rtf files for InfoBefore and make it read only.
I have created the checksum files and also write it on the settings.ini when it starts verification It says File Not Found Why I have created repack of Call Of Duty Please Help
Now When i am not using compact mode whenever the installation completes the setup crashes but i am seeing that it is installed Fully
PLAESE HELP KAKTOR
@Suryam
Stop spamming the thread/forum with questions or all your posts will be deleted, have patience and wait for an answer, people do not like to have questions spammed at them.
@Suryam
Stop spamming the thread/forum with questions or all your posts will be deleted, have patience and wait for an answer, people do not like to have questions spammed at them.
Sir I just Want To Say I am Not Spamming If i start spam more than 50% of replies will be full i am not asking the same question i am asking the process after that
There is a problem from last update with crc file
change
CheckHashesFromFile(ExpandConstant('{tmp}\{#CRCFil eName}'),ExpandConstant('{tmp}'),@HandleHashes,Tru e);
to
CheckHashesFromFile(ExpandConstant('{tmp}\{#CRCFil eName}'),ExpandConstant('{app}'),@HandleHashes,Tru e);
darkyamidesu
25-05-2020, 07:12
hey, hello there..
thanks for answering my question back there..
(about second shortcut and bat-to-exe. shortcut is now intergrated to ASIS itself so thankyou verry much about that @KaktoR!. and bat-to-exe program that @
Masquerade sugested, still learn to make some program to be AIO)
so i have another question..
let say i want to repack a game with winrar compression..
how can i integrated to ASIS itself?
(i've tried to change "#define compression='Winrar'/'rar'/'UnRAR' and from compression='lzma' to compression='Winrar'/'rar'/'UnRAR'. and came up error at Inno)
i hope that you guys can help me in this problem..
(i know, this question probably already answered or included in FAQ somewhere. but because i'm dumb, so forgive me ;).)
sorry, my english is so terrible..
Masquerade
30-05-2020, 05:26
I swapped Profrager's SREP out for Razor's srep and I've started having a few issues where the install will just stop at the end of an archive - so it never moves on to the next archive or finishes installing as srep64 will just hang in task manager.
I disabled the script lines that edit the config in cls.ini for the Profrager version and I tested the srep in a batch file unpack and it extracts well. The only text remaining in cls.ini is the lolz config, I never used precomp so I disabled those lines too.
Should I go back to using Profrager srep or is this something that could be hotfixed? I'm using v7.1.4.
Well I didn't used razor's srep ever, just because I didn't had any issues with profragger's one. So why you switched them? Just corious :p
I don't know if razor's srep use any extra code for iss, so...
Masquerade
30-05-2020, 10:19
Well I didn't used razor's srep ever, just because I didn't had any issues with profragger's one. So why you switched them? Just corious :p
I don't know if razor's srep use any extra code for iss, so...
I switched due to a few issues I had with Profrager, where srep would cause unarc corrupt data errors. I realised today that it was because I was using srep64.exe for compression but then using cls-srep for decompression - maybe some kind of incompatibility?
Razor's offering I tried and I liked how the ini file controlled the compression switches.
I went back to Profrager's cls-srep today, but after replacing it back into my compressor, I kept getting prompt issues - something on the lines of being unable to create mapping, so now I decided to use srepinside and I feel comfortable again I suppose.
darkyamidesu
31-05-2020, 07:10
Hello, thanks for reply @KaktoR
its too bad for that, oh well
can i ask something outside the topic?
Any recomendation for compression method that fast (not really using too much Resource) and can be splitted without rebuild the archive first?
currently im using
1. just simple arc with LZMA store compression. but the problem with this that i cant split it to multiple file that fit into disk..
2. Ultra arch with LZMA compression checked with disk-span for splicing the size of "data" archive. the problem with this, the thing need to rebuild main archive to be able for installing. so more time and space (tehnically you need double size for installing some game)..
any suggestion?
i'll verry grateful with any sugestion..
diskspan don't need to rebuild archives. They just install on the fly.
For fast method, try 1, 2, 3, ... for custom compression (1, 2, 3, ... are freearc compressions).
Masquerade
10-06-2020, 06:50
Hi
A friend of mine, zarus, has done a full translation of the custom messages into Russian.
Here's the ISS file to add to your script copy (replace in Resources\Modules\External):
Next update soon for testing.
https://i.imgur.com/dT3ZPFk.png
I have uploaded a new test update to previous post.
The full changelog so far
v7.2.0
__________________________________________________ ___
- Fixed CRC Check from previous update
- Fixed InfoBefore and EULA
> Before it was possible to change the texts
- It is now possible to use both TXT and RTF files for InfoBefore and EULA
- Updated russian localization
- Redone compressor settings
> It now uses COMPRESSOR_GUI to change the settings
> Thanks to Cesar82
- CompactMode now have it's own information page
> It is located near about button
> This opens a new window which will show you informations about the game or your repack
- If WebsiteButtonText is empty, a custom message 'Website' will be used instead
- Added Czech language to installer
> "a few" messages still have to be translated
- Added PrecompX (thanks to BLACKFIRE69)
- Added a new checkbox "Limit RAM and CPU usage" to both modes
> If this checkbox is checked, RAM and CPU usage will be limited during installation
> The limited settings were not really tested by me, so...
- Added a small bitmap to SelectDirPage to Free/Need space labels
I will made some further additions in the next days. I have to test new diskspan.bat now :p
pincoball
24-06-2020, 01:13
Clean installation of ASIS 7.2.0 + update. Why do I not see the "Next" button on welcome page when not using compact mode?
pincoball
24-06-2020, 01:31
Try with new update 3
Sorry, but not working either...
mausschieber
24-06-2020, 01:38
Sorry, but not working either...
here it work fine
https://abload.de/img/unbenannt-workzej6t.jpg (https://abload.de/image.php?img=unbenannt-workzej6t.jpg)
Did you change settings.ini? What desktop resolution do you have?
Try this
pincoball
24-06-2020, 01:46
Did you change settings.ini? What desktop resolution do you have?
Try this
Tried as well but still not working. I didn't change any setting except for the compact mode
1920x1080 (and 125% scaling set by default by Windows, if relevant)
Also the text seems to be misaligned
https://imgur.com/4VM6UWH
125% scaling is the problem. I will try to find a fix (I thought it were already fixes, well :D).
Use the attachment and see if the result is exactly the same as in the screenshot
https://i.imgur.com/yztYdmZ.png
If it's the same result then I know the problem.
The result should be the same on 100%, 125%, 150% and 175%.
pincoball
24-06-2020, 02:47
Use the attachment and see if the result is exactly the same as in the screenshot
It seems so.
https://imgur.com/a/9sVgYgB
Here is a fix. I tested on 125% and 150% scaling.
The BannerImage is still broken on 125% and above. Will fix this later :p
pincoball
26-06-2020, 08:35
The buttons seems to be still misaligned... (Edit: strangely less noticeable without skin)
The text is ok though
https://imgur.com/a/RDiQLxY
Edit: (no skin) https://imgur.com/a/ioV6O5a
parnexcodes
04-07-2020, 21:00
Hey how can i make this installation tab normal and not compact ? I have compact mode set to 0 or is it like this only ? https://i.imgur.com/Hd1unCu.png
@KaktoR please add my changes. And thank you for your work on ASIS.
- Added in Settings.ini options for NoCreateStartMenu, CreateIconDesktop, CreateUninstall and DirExistsWarning
EDIT :
- Updated french CustomMessages.iss
- It is now possible to use special characters like ™ for your application
> Before you got strange hieroglyphs
- Fixed time remaining check if [Record2] is present in records.ini
- Fixed misplaced buttons, texts and bitmaps on 125%+ desktop scale (hopefully for ever now)
- Fixed a bunch of small errors, misplacings and code duplicates
- Fixed a bunch of this annoying error messages on compiling
Here is a new test. I know there are still some misplacings on 150%+ scaling (like radio buttons on license page). I will fix them when I have time :p
Mortal Lord
15-07-2020, 05:24
Hello, can anyone tell me how to make ASIS unpack bpk archives?
Masquerade
15-07-2020, 06:14
Hello, can anyone tell me how to make ASIS unpack bpk archives?
You should be using cls-bpk.dll in order to compress your bink videos.
Enable BPK decompressor in COMPRESSOR.ini and it will be able to extract your bpk archives, since the BPK decompressor is also a cls-plugin.
With new version you can use COMPRESSOR_GUI.exe to enable what you need. If anything is fixed, hold CTRL button and press on 'Default' button to reset.
Good morning dear friend,
Again thank you for your work!
tell me, why are some inactive? example: Razor tools?
How to activate because I have just tried to modify the Compressor.ini file but that does not save my modifications!
Thank you in advance for your answers,
cordially
Like I said, hold CTRL key and press 'Default' button :p
https://i.imgur.com/jbye8UQ.png
Sanskar Mandothia
17-07-2020, 09:39
HELP ME PLEASE, Assume I have no knowledge and guide :(
Using Fox Kompressor to compress For Honor
But unable to install the Archive, getting this error...
https://ibb.co/r7RmMPf
https://ibb.co/6w88h4S
https://ibb.co/r7RmMPf
https://ibb.co/6w88h4S
That's because dispack is not supported. I don't know for what dispack actually is...
Sanskar Mandothia
17-07-2020, 10:26
Thanks for the info.
Can you please suggest me some tools(or . bat file) to compress .forge files (like AC/ For Honor files) which should support this Installer... (I don't understand any code like srep:dm20+lzma:d2 bla bla...)🥺
Masquerade
17-07-2020, 12:50
Thanks for the info.
Can you please suggest me some tools(or . bat file) to compress .forge files (like AC/ For Honor files) which should support this Installer... (I don't understand any code like srep:dm20+lzma:d2 bla bla...)🥺
AFR on the forge file, then srep, then lolz. See if AFR is included in UltraArc, it's GUI might be able to give you a kick-start.
Sanskar Mandothia
17-07-2020, 22:01
AFR on the forge file, then srep, then lolz. See if AFR is included in UltraArc, it's GUI might be able to give you a kick-start.
UltraArc has the option for srep & lolz...but not ARF (although its ARF_x64.exe is present in its folder)... that's a big issue for me as well
Sanskar Mandothia
17-07-2020, 22:03
Like I said, hold CTRL key and press 'Default' button :p
https://i.imgur.com/jbye8UQ.png
Give me this simple tool as well... which can compress files with ARF supported by ASIS
mausschieber
18-07-2020, 01:03
Give me this simple tool as well... which can compress files with ARF supported by ASIS
look in post 852 tool is in script
This is not an compression tool! It is only an "include-compressors-in-installer" tool.
Sanskar Mandothia
18-07-2020, 02:51
https://ibb.co/wzx3704
Still getting this error even after selecting afr,srep,lolz
ps5haznogamez
22-07-2020, 15:36
https://i.imgur.com/nS1SQsC.png
Does anyone know why there is no install button in compact mode? Did i disable/enable something by accident?
Use the new version here (https://fileforums.com/showpost.php?p=486802&postcount=852).
Hello everyone,
I just saw one thing is that the choice of the player's name is not taken into account at the end of the installation.
I tested on 2 different pc, I have of course checked in the Settings.ini file, in [INISettings] that: Enable = 1 and that the path is correct in INIFile =
How to fix this please
Thank you
Hello everyone,
I just saw one thing is that the choice of the player's name is not taken into account at the end of the installation.
I tested on 2 different pc, I have of course checked in the Settings.ini file, in [INISettings] that: Enable = 1 and that the path is correct in INIFile =
How to fix this please
Thank you
Here is a fix.
Section key from Settings.ini was interfering with [Files] section (there was a section key too, so I had to rename the INI related section to fix this).
It includes also a few other fixes.
Here is a fix.
Section key from Settings.ini was interfering with [Files] section (there was a section key too, so I had to rename the INI related section to fix this).
It includes also a few other fixes.
Hello KaktoR, thank you for your update !
thanks for your
Edit: Now what lines do I see added when a game has multiple steam_emu.ini files in different directories?
It is only possible to edit one ini file.
It is only possible to edit one ini file.
Hello KaktoR,
Yes I know! Maybe I spoke badly, I want to do it like this, look here => https://fileforums.com/showpost.php?p=483136&postcount=732
cordially
Line 4482, search for this and add the red parts
#if CompactMode == "1"
#if INIValue == ""
SetIniString('{#INISection}', '{#INIKey}', ExpandConstant('{username}'), ExpandConstant('{#INIFile}'));
SetIniString('{#INISection}', '{#INIKey}', ExpandConstant('{username}'), ExpandConstant('{app}\INIFile2.ini'));
#else
SetIniString('{#INISection}', '{#INIKey}', '{#INIValue}', ExpandConstant('{#INIFile}'));
SetIniString('{#INISection}', '{#INIKey}', '{#INIValue}', ExpandConstant('{app}\INIFile2.ini'));
#endif
#else
SetIniString('{#INISection}', '{#INIKey}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{#INIFile}'));
SetIniString('{#INISection}', '{#INIKey}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{app}\INIFile2.ini'));
#endif
Line 4482, search for this and add the red parts
#if CompactMode == "1"
#if INIValue == ""
SetIniString('{#INISection}', '{#INIKey}', ExpandConstant('{username}'), ExpandConstant('{#INIFile}'));
SetIniString('{#INISection}', '{#INIKey}', ExpandConstant('{username}'), ExpandConstant('{app}\INIFile2.ini'));
#else
SetIniString('{#INISection}', '{#INIKey}', '{#INIValue}', ExpandConstant('{#INIFile}'));
SetIniString('{#INISection}', '{#INIKey}', '{#INIValue}', ExpandConstant('{app}\INIFile2.ini'));
#endif
#else
SetIniString('{#INISection}', '{#INIKey}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{#INIFile}'));
SetIniString('{#INISection}', '{#INIKey}', WizardForm.UserInfoNameEdit.Text, ExpandConstant('{app}\INIFile2.ini'));
#endif
Hello KaktoR,
thank you so much
cordially
Hello,
I noticed a strange thing since the last Fix (ASIS.v7.2.0.Update.6.7z).
at the end of the installation, in the file eg: "steam_emu.ini" in "Language =" it adds a capital letter, eg: Language = French while the original is like this: Language = french!
hope you understand and how to fix this please
thanks in advance
Use this
It can be done with LowerCase function too I guess but don't have time atm to deal with this.
Use this
It can be done with LowerCase function too I guess but don't have time atm to deal with this.
Hello KaktoR,
thanks for your file, Problem solved
I looked in Script.iss LowerCase too
thank you
Masquerade
15-08-2020, 03:23
Hello,
My friend gigi has updated the Italian translations of this script, so they are correct.
New module: https://anonfiles.com/F9t9XaM1od/CustomMessages_iss
P.S. this contains the updated Russian translation from before.
Thanks.
Will post final version later.
If someone has found more bugs, tell me.
PS: Please use this file for translation. It has changed a lot since 7.1.7
https://anonfiles.com/f80bXcM9o4/CustomMessages_iss
Masquerade
15-08-2020, 06:34
PS: Please use this file for translation. It has changed a lot since 7.1.7
https://anonfiles.com/f80bXcM9o4/CustomMessages_iss
Alright, I'll give that version from now on - my script is a butchered 7.1.4 version and I haven't upgraded since.
Atakanbasturk
23-08-2020, 03:46
I compressed Spider-Man 3 files with UltraARC.
Config0.ini:
MASK = msc+lzma2
[External compressor:msc]
;Cls library in CIU
header = 0
default = -raw=1 -bmf=9 -bmp=1 -wav=1 -mp3=1
packcmd = "MEDIA\MSC\MSC" c -f -v -mp3=1 InFile OutFile
datafile = InFile
packedfile = OutFile
[External compressor:lzma2,Lzma2]
header = 0
default = :d25:fb=273:mf=bt4:mc=1000000:lc=4:lp=0
packcmd = "7z\7z_x64" a -txz -an -mcrc=0 -m1=lzma2:d1024m:mf=bt4:fb=273:lc=4:lp=0 -mmt=2 -mx9 -si -so <stdin> <stdout>
UltraARC's unpack.exe file can extract final file successfully. But When I use ASIS final version(compile script and run setup.exe), setup.exe closing when it reaches %87,7 everytime.
https://www.youtube. com/watch ?v=FYLmxA3TgvY
NOTE: I tried Spider-Man Web of Shadows and setup.exe successfully extract files.
Script.iss and Setting.ini in attachment.
NOTE 2: My RAMs, processor and SSD are fine. Tested with MemTest+, Aida64 Extreme and Samsung Magician.
Windows 10 pro 64 bit
32 GB DDR4 RAM
İntel i7 6700K
Hi KaktoR, In the first post there are some old updates and the initial version, I was wondering if one day you would upgrade the updated version that is the whole package, because I have seen several scattered here and there and I would not make mistakes by making some copies paste wrong ... if you ever have the time I hope you will update it in the first post all ASIS package Thanks bro, and hope it's not a nuisance.. that's a really great job!
LordxKinG
24-08-2020, 22:27
Why if I create diskpan lzma x4 cannot extract with ASIS Installer, it's always error at 50-70% installation Progress (it say file corupted) and if i tested on CIU v3 i'ts work normaly, any way for fix it?
Thanks and sorry for my bad english :D
Masquerade
28-08-2020, 03:51
Hi, is there any possibility of being able to change how the progress bar measures the archives? I know currently it sits at equal length for each archive, so 2 archives = 50% each.
In the cases where I make 1 big archive and 1 small archive, is there a part of the script so I could make it 60/40 or 80/20 instead of 50/50?
Yes, but code rework is needed inside procedure UltraArc. Or simply use the example for freearc unpacking for inno setup (isdone example) and replace procedure UltraArc with the example and call it on CurStep ssInstall.
The function you are looking for is ISArcExtract (possibly with a records.inf file, but not needed). I think there are some old scripts here which use this example (or sort of). If I'm not mistaken the old blackbox script use this too.
The records.inf file is only needed if you don't want to edit the script for each archive/size every time (it is like records.ini, but with addition for archive sizes, percentages, etc.).
I don't know if you can use components then, but I don't think so.
Here is a new preview.
- Updated PrecompX
> It now use the cls version (hopefully it works lol)
- Updated help file
- Updated VCL viewer source code
- Added UE4 decryption tool
> Thanks to Razor12911
- Added compatibility with "Tiny Compressor v1.4"
**Known bugs
- "Next Button" on CompactMode is still active on install process
- Radio buttons on LicensePage are misplaced on 125% sclaing and above (the more, the worst it gets lol)
LordxKinG
28-08-2020, 20:44
Here is a new preview.
- Updated PrecompX
> It now use the cls version (hopefully it works lol)
- Updated help file
- Updated VCL viewer source code
- Added UE4 decryption tool
> Thanks to Razor12911
- Added compatibility with "Tiny Compressor v1.4"
**Known bugs
- "Next Button" on CompactMode is still active on install process
- Radio buttons on LicensePage are misplaced on 125% sclaing and above (the more, the worst it gets lol)
Hi KaktoR, thanks for release Update,
I want ask how to fix if decompression fails like this? I use Diskspan Tools, Thanks
https://fileforums.com/attachment.php?attachmentid=27790&stc=1&d=1598672504
Hello KaktoR, I updated to the latest version you posted a little while ago .. But I found a very trivial problem but I can't solve it .. that is basically the background has changed and I can't understand where I have to change to put it back in its place .. here is a screen to make you understand between the 2 versions ..
The old version was: 7.1.7H2
The new version is: 7.2.0 Update 7
Skin in use: TabletDark.vsf
Thank you very much for helping. :)
No problem here
Problem solved, I had to clear the computer cache... I had messed up the memory all here. Thanks again
Thanks for all the hard work. I have a problem when I tried to do a setup of 32bits or 64bits it give me this error, I change in Settings.ini and that happens
Also KaktoR anychance to add suport to the new XTool 2020 (Main Project)? That would be awesome
kocchi96x
07-09-2020, 05:15
@KaktoR Have you ever fixed the remaining time for multiple archives?
No.
Maybe I will change the time system some day :D
Also KaktoR anychance to add suport to the new XTool 2020 (Main Project)? That would be awesome
I will wait until it's finished.
What is exactly SREP "new version" and "old version"?
It seems the majority of tools here use the old one (I guess from the ones I've tried, at least) and I can't find anything newer online or any changelog/documentation.
Masquerade
08-10-2020, 15:10
Old version: srepinside
A one piece software, cls-srep.dll handled all srep operations. This tool has limited cls options.
New version: cls-srep
A 3 piece software - cls-srep.dll with an x86 and x64 binary accompanying it. This tool has more options + greater stability under larger workloads.
alucard1973
24-10-2020, 02:27
how do you uninstall a save folder from a game?
Thanks
The installer doesn't do this automatically.
Maybe in next release.
alucard1973
24-10-2020, 04:47
The installer doesn't do this automatically.
Maybe in next release.
thanks
on the other hand there is a problem, when canceling an installation in progress, the installation folder is not deleted
alucard1973
25-10-2020, 03:32
Another but important problem, if the components like DLC and Languages of the game have been activated, we cannot check or uncheck
My ASIS is having issues decompressing something with plz4, (Unarc -2) even if ZTool is enabled on the GUI. What can I do to fix this? I tried adding different decompression files for ZTool in the BPK folder so it gets included in the installer, and I get the same issue.
Masquerade
10-12-2020, 10:59
@mr_gnar
make sure arc.ini is configured correctly. Unarc -2 is missing decompressor, so it's an error for you, not the installer.
v7.2.2
__________________________________________________ ___
- Updated compressors
- On cancelling installation the {app} folder will now be deleted
- Added XTool 2020 support
- Added DiskSpan_GUI support (thanks to Cesar82)
If everything is good I will use this as a final version (finished this script).
rishikrap
24-12-2020, 05:37
v7.2.2
__________________________________________________ ___
- Updated compressors
- On cancelling installation the {app} folder will now be deleted
- Added XTool 2020 support
- Added DiskSpan_GUI support (thanks to Cesar82)
If everything is good I will use this as a final version (finished this script).
Support for xzlib+srep_new+lolz_mtx please some day in the future.
Getting this error for my Rocket League (https://fileforums.com/showpost.php?p=489538&postcount=2060)
28634
Also, when I try compact installer, I get this error.
28635
Basically, it asks for the installation location but there's no next button to click so, it's just stuck there, also, the x button to end it doesn't work, have to end it via task manager.
I also got it in the old version, I thought, you'd have fixed it in this one but it still persists. It could also be my mistake in the settings file (https://paste2.org/fwCBLjy7), so I'm attaching it here for you to take a look just in case.
Also, I changed the AppName in the script.iss file because I got this error when I compiled the script, it compiled the script after that.
28636
What Inno Setup version you're using for compile the script? Did you test with Compile_Script.bat file?
rishikrap
24-12-2020, 06:45
What Inno Setup version you're using for compile the script?
Latest, 6.1.2
Did you test with Compile_Script.bat file?
Yes.
Here's my output, if you wanna check what's going wrong.
Rocket League xzlib+srep_new+lolz_mtx (https://drive.google.com/drive/folders/10bz-lPwfFfmoaRVXwdRbR2Cj4i_vVLAe)
Latest, 6.1.2
Unicode or ANSI?
You said you have changed AppName inside script.iss. Send me your script.iss file please. PS: Only change AppName inside Settings.ini file.
Also, when I try compact installer, I get this error.
28635
I don't have this error here so I can't say for sure. Maybe because of IS version. I will look in next days.
---------------------------------------
Here is a hotfix for the cancel button. I didn't had time to look further (christmas things).
Here is a proper fix for the cancel button along with some other fixes and changes.
L0v3craft
29-12-2020, 13:40
Hi, i like this installer but i want adapt it to my ways to compress videogames.
1. I don't want use UltraARC 2900 R9
2. I don't want use COMPRESSOR_GUI
To compress i'm using and old version of the masked compression. It has a .bat file to run the compression, Arc.exe, arc.ini (with methods and commands to compress inside), arc.groups and all the exe of the compressors/tools that i'm using. So to compress i must run the bat file, select the game folder and the compression starts. It is very simple and i can see how are working all the tools. And i can add new tools and commands to compress very simply.
I want that this installer has a folder with all my tools inside, compress all the tools inside the setup.exe (exactly like "Windows Phone Installer" does) and when i run it, it decompress all the tools files inside the temporary folder of windows.
Someone can help me please?
Hi, i like this installer but i want adapt it to my ways to compress videogames.
1. I don't want use UltraARC 2900 R9
2. I don't want use COMPRESSOR_GUI
To compress i'm using and old version of the masked compression. It has a .bat file to run the compression, Arc.exe, arc.ini (with methods and commands to compress inside), arc.groups and all the exe of the compressors/tools that i'm using. So to compress i must run the bat file, select the game folder and the compression starts. It is very simple and i can see how are working all the tools. And i can add new tools and commands to compress very simply.
I want that this installer has a folder with all my tools inside, compress all the tools inside the setup.exe (exactly like "Windows Phone Installer" does) and when i run it, it decompress all the tools files inside the temporary folder of windows.
Someone can help me please?
You can use an older version of ASIS. Perhaps KaktoR still has earlier versions.
Or make your changes to the current script to include your compressors within setup.exe.
L0v3craft
29-12-2020, 16:12
You can use an older version of ASIS. Perhaps KaktoR still has earlier versions.
Or make your changes to the current script to include your compressors within setup.exe.
Yes but how to do that exactly? For example the first problem is that the setup checks if is present a "setup.dll" file created from "COMPRESSOR_GUI". And i don't know how to remove that requisite.
Yes but how to do that exactly? For example the first problem is that the setup checks if is present a "setup.dll" file created from "COMPRESSOR_GUI". And i don't know how to remove that requisite.
I find it easier to use it with the Setup.dll external file.
Otherwise it would take a lot of stretches in the script for you to include your compressors.
Extracting the compressors from the Setup.dll file is much faster than extracting from within setup.exe.
You can create your own Setup.dll with your compressors, just by compressing the contents of your compressor folder with FreeArc using the -m1 method.
Then you can use your bat file to compress your game.
I think that in the UltraArc folder there is a BAT (_Compress Optional DLL) to you drop your compressors folder and Setup.dll will be generated.
Then just move Setup.dll to your Setup.exe.
Setup.dll supports including Arc.ini and CLS.ini with their original names.
You will also need the information of the compressed files in an external file records.ini (you can include Records.ini within Setup.dll).
You can also configure the methods on DiskSpan_GUI. DiskSpan_GUI is 95% configurable. DiskSpan_GUI will soon support freearc masks.
L0v3craft
30-12-2020, 09:55
I find it easier to use it with the Setup.dll external file.
Otherwise it would take a lot of stretches in the script for you to include your compressors.
Extracting the compressors from the Setup.dll file is much faster than extracting from within setup.exe.
You can create your own Setup.dll with your compressors, just by compressing the contents of your compressor folder with FreeArc using the -m1 method.
Then you can use your bat file to compress your game.
I think that in the UltraArc folder there is a BAT (_Compress Optional DLL) to you drop your compressors folder and Setup.dll will be generated.
Then just move Setup.dll to your Setup.exe.
Setup.dll supports including Arc.ini and CLS.ini with their original names.
You will also need the information of the compressed files in an external file records.ini (you can include Records.ini within Setup.dll).
You can also configure the methods on DiskSpan_GUI. DiskSpan_GUI is 95% configurable. DiskSpan_GUI will soon support freearc masks.
Tested. The problem is that it doesn't decompress my "data.arc" archive. Also the file "records.ini" is present where is the setup, same for the setup.dll (tried also to create it manually with freearc). No errors, simply doesn't install anything.
Tested. The problem is that it doesn't decompress my "data.arc" archive. Also the file "records.ini" is present where is the setup, same for the setup.dll (tried also to create it manually with freearc). No errors, simply doesn't install anything.
If you want to send me your project (by PM) I can help you more easily (send me the complete project including the compressors).
L0v3craft
31-12-2020, 05:11
If you want to send me your project (by PM) I can help you more easily (send me the complete project including the compressors).
Incredible, this is the reason:
the original file "records.ini" that comes with ASIS is this:
[Record1]
Type=Freearc_Original
Source={src}\data.arc
Output={app}\
Disk=1
and it doesn't work, works only changing that "Type=Freearc_Original" to "Type=FreeArc_Original".
Infact the code does this check:
if Data[i - 1].Arc[0] = 'FreeArc_Original' then
it is "FreeArc" and not "Freearc".
Incredible, this is the reason:
the original file "records.ini" that comes with ASIS is this:
[Record1]
Type=Freearc_Original
Source={src}\data.arc
Output={app}\
Disk=1
and it doesn't work, works only changing that "Type=Freearc_Original" to "Type=FreeArc_Original".
Infact the code does this check:
if Data[i - 1].Arc[0] = 'FreeArc_Original' then
it is "FreeArc" and not "Freearc".
But Inno setup is non case sensitive. isn't?
But Inno setup is non case sensitive. isn't?
ASIS even has a case sensitive comparison.
In CIU and LIS these options are compared with LowerCase.
You can change the ASIS script in 2 places, just by entering LowerCase.
if LowerCase(Data[i - 1].Arc[0]) = LowerCase('FreeArc_Original') then
if LowerCase(Data[i - 1].Arc[0]) = LowerCase('FreeArc_Split') then
hi, how to remove create uninstaller?
Thank you
https://nsm09.casimages.com/img/2020/12/31//20123109275213738817193571.png
hi, how to remove create uninstaller?
Thank you
https://nsm09.casimages.com/img/2020/12/31//20123109275213738817193571.png
Comment the UninstallCB in procedure CurPageChanged (add // before). Should be enough.
Comment the UninstallCB in procedure CurPageChanged (add // before). Should be enough.
thanks for answering, sorry but i don't know how.
what exactly should i put?
@velanne , do a search in the script (CTRL + F) and search the script for the lines:
UnInstallCB.Visible
UninstallCB.Show
Place // before each of the lines you find in the search.
//UnInstallCB.Visible ...
//UninstallCB.Show;
@velanne , do a search in the script (CTRL + F) and search the script for the lines:
UnInstallCB.Visible
UninstallCB.Show
Place // before each of the lines you find in the search.
//UnInstallCB.Visible ...
//UninstallCB.Show;
Thank you
did not work create an uninstaller and still visible.
I am using ASIS.v7.2.2 with Hotfix2 which is posted on page 61
Thank you
did not work create an uninstaller and still visible.
I am using ASIS.v7.2.2 with Hotfix2 which is posted on page 61
After changes of previous post, search this part and add red color line line.
UninstallCB := TNewCheckBox.Create(WizardForm);
with UninstallCB do
begin
Parent := WizardForm.SelectDirPage;
Left := ScaleX(270);
Top := ScaleY(150);
Width := ScaleX(240);
Height := ScaleY(17);
Caption := ExpandConstant('{cm:CreateUninstall}');
Checked := True;
Visible := False;
end;
After changes of previous post, search this part and add red color line line.
UninstallCB := TNewCheckBox.Create(WizardForm);
with UninstallCB do
begin
Parent := WizardForm.SelectDirPage;
Left := ScaleX(270);
Top := ScaleY(150);
Width := ScaleX(240);
Height := ScaleY(17);
Caption := ExpandConstant('{cm:CreateUninstall}');
Checked := True;
Visible := False;
end;
Thank you it works now
Updated a new package (you should use this as a new folder instead of overwrite existing files just for leftovers/deleted things).
v7.2.2
__________________________________________________ ___
- Updated compressors
- On cancelling installation the {app} folder will now be deleted
- Added XTool 2020 support
- Added DiskSpan_GUI support (thanks to Cesar82)
- Fixed cancel button
- Removed some leftovers from previous versions in script which are not used anymore
- Moved 'DefaultInstallDir=' key to [Settings] section
> [ExtractSettings] section removed
- Fixed title on ExitSetupMessageBox if special chars were used (no hieroglyphs)
- Updated DiskSpan_GUI to latest version
- Fixed a problem with lower/uppercase "FreeArc_X" in records.ini reading
- Updated COMPRESSOR_GUI.txt help file (this contains some usefull information now instead to be empty)
Note: Setup.exe/Setup.dll will be created inside ".\DiskSpan_GUI\Setup_Files" folder (in case you search for the file and get lost).
Snake288
12-01-2021, 08:30
COMPRESSOR_GUI
Compression tools marked with a red box in the image are not active when selected
https://i.imgyukle.com/2021/01/12/afME9G.jpg
COMPRESSOR_GUI
Compression tools marked with a red box in the image are not active when selected
https://i.imgyukle.com/2021/01/12/afME9G.jpg
These methods only have 64-bit compressors.
If the game to be compressed does not work on 32-bit systems (64-bit only), edit the Settings.ini file.
[Settings]
64BitOnly=1
If the game works on 32/64 bit systems I do not recommend using these methods because it will not be possible to install on 32 bit systems.
If you never need to install on 32-bit systems you can change the key of the Settings.ini file even if the game is compatible with 32/64-bit systems
Hi, I downloaded the new version 7.2.2 and modifying as usual only the info type name etc. etc. as always done, now the problem is that it does not install anything when I load the game the completion happens in a flash, like compression always used "FreeArc" method -m5 changing extension (as always done) how come now I can't install? how do i make everything work as before? (it seems that InternalRecords is no longer there or am I wrong?) Thanks for all friends :)
Use external records.ini (or you can include records.ini inside Setup.dll).
Use external records.ini (or you can include records.ini inside Setup.dll).
Hi KaktoR, you personally which configuration do you recommend to use? "Setup.dll"? if yes, could you show me how to do it? i have never used it differently from my usual do before, thats why i find myself a bit in trouble.. sorry if i waste your time and thanks in advance for all the work you do bro.
(sorry for my bad english)
Hi KaktoR, you personally which configuration do you recommend to use? "Setup.dll"? if yes, could you show me how to do it? i have never used it differently from my usual do before, thats why i find myself a bit in trouble.. sorry if i waste your time and thanks in advance for all the work you do bro.
(sorry for my bad english)
From this latest version of ASIS, it works with decompressors stored externally in a file of the same name as the installer with extension ".dll" (Setup.exe/Setup.dll "or Install.exe/Install.dll, etc.).
This DLL file is nothing more than a freeArc (.arc) file and it is necessary to have all the files necessary to do the decompression inside DLL file (Except ISDone.dll and UnArc.dll).
So the current ASIS is being shared with a decompression tool DiskSpan_GUI, which generates the Setup.dll file (with all necessary decompressors) when performing the compression depending on the method chosen to compress.
From this latest version of ASIS, it works with decompressors stored externally in a file of the same name as the installer with extension ".dll" (Setup.exe/Setup.dll "or Install.exe/Install.dll, etc.).
This DLL file is nothing more than a freeArc (.arc) file and it is necessary to have all the files necessary to do the decompression inside DLL file (Except ISDone.dll and UnArc.dll).
So the current ASIS is being shared with a decompression tool DiskSpan_GUI, which generates the Setup.dll file (with all necessary decompressors) when performing the compression depending on the method chosen to compress.
Ah here, I've always used only FreeArc with the simple method -m5 ...
I've never used the "DiskSpan_GUI" and I don't know where to put my hands at the moment .. in practice I would like to compress the files of a game (The Godfather) making it become "Data.AZA" is it possible to make it become this way?
ps: it is possible to translate the DiskSpan_GUI? in other language example Italian?
Thanks to much Cesar82
1. Create a folder somewhere
2. Inside this folder copy all your tolls/decompressors that you need + arc.ini
3. Select all files and compress them with freearc
4. Rename the freearc file to "Setup.dll" or whatever your Setup.exe is named
It has to look like this structure
https://i.imgur.com/Je8JKbF.png
1. Create a folder somewhere
2. Inside this folder copy all your tolls/decompressors that you need + arc.ini
3. Select all files and compress them with freearc
4. Rename the freearc file to "Setup.dll" or whatever your Setup.exe is named
It has to look like this structure
https://i.imgur.com/Je8JKbF.png
Thanks for having answered KaktoR, unfortunately even in this way I could not complete the installation, even if it says complete installation it does not actually install anything ... I will try to rebuild the old versions hoping to return to what worked for me before.
Thanks for the time you have given me, and sorry for the inconvenience. :'(
Did you changed the records.ini file properly with your archive name?
[Record1]
Type=FreeArc_Original
Source={src}\YourArchiveName.xyz
Output={app}\
Disk=1
Ah here, I've always used only FreeArc with the simple method -m5 ...
I've never used the "DiskSpan_GUI" and I don't know where to put my hands at the moment .. in practice I would like to compress the files of a game (The Godfather) making it become "Data.AZA" is it possible to make it become this way?
ps: it is possible to translate the DiskSpan_GUI? in other language example Italian?
Thanks to much Cesar82
If you use the m5 method you can use it from DiskSpan_GUI to compress your game (see the image below).
You can also just enter "5" in the method Memo.
https://i.imgur.com/V7hKeI4.png
This way, a Setup.dll file will be generated in the output folder.
So if you always use "-m5", you can use this same DLL (In all next projects) together with Setup.exe and you will no longer need DikskSpan_GUI.
You can choose to disable DiskSpan just by entering the GUI config mode and checking the "UltraARC MODE" checkbox, so CLS-DiskSpan.dll will not be included in Setup.dll.
Edit:
The last 3 methods are not working because after adding quotation marks to the methods they no longer work. I'll fix it in the next version of DiskSpan_GUI.
Did you changed the records.ini file properly with your archive name?
[Record1]
Type=FreeArc_Original
Source={src}\YourArchiveName.xyz
Output={app}\
Disk=1
Yes I had already tried to edit here but it didn't work.
__________________________________________________ ____________________________
If you use the m5 method you can use it from DiskSpan_GUI to compress your game (see the image below).
You can also just enter "5" in the method Memo.
https://i.imgur.com/V7hKeI4.png
This way, a Setup.dll file will be generated in the output folder.
So if you always use "-m5", you can use this same DLL (In all next projects) together with Setup.exe and you will no longer need DikskSpan_GUI.
You can choose to disable DiskSpan just by entering the GUI config mode and checking the "UltraARC MODE" checkbox, so CLS-DiskSpan.dll will not be included in Setup.dll.
Edit:
The last 3 methods are not working because after adding quotation marks to the methods they no longer work. I'll fix it in the next version of DiskSpan_GUI.
I had already removed the "mask" mode and inserted only that of "UltraARC MODE" but the files that I compress do not go anyway, (it is clear that I myself make something wrong and I do not realize it)
So in order not to waste a lot of time, I decided to take all versions and rebuild the old "script + options" and it went well... I stopped at version "7.2.0 update 7" and it works very well without any problem nowhere.
Sorry if it took me so long to answer, I was sorting out the ASIS script updates :)
The ASIS v7.2.2 has an error in the script (Thanks to XxAZAxX)
It is necessary to insert the part highlighted in "Orange" in the script.
procedure DeinitializeUninstall();
begin
#if VCL == "1"
if FileExists(ExpandConstant('{tmp}\VclStylesInno.dll ')) and FileExists(ExpandConstant('{tmp}\{#VCLName}')) then
UnLoadVCLStyles();
#elif Cjstyles == "1"
if FileExists(ExpandConstant('{tmp}\ISSkin.dll')) and FileExists(ExpandConstant('{tmp}\{#CjstylesName}') ) then
begin
ShowWindow(0, SW_HIDE);
UnloadSkin();
end;
#endif
end;
The ASIS v7.2.2 has an error in the script (Thanks to XxAZAxX)
It is necessary to insert the part highlighted in "Orange" in the script.
procedure DeinitializeUninstall();
begin
#if VCL == "1"
if FileExists(ExpandConstant('{tmp}\VclStylesInno.dll ')) and FileExists(ExpandConstant('{tmp}\{#VCLName}')) then
UnLoadVCLStyles();
#elif Cjstyles == "1"
if FileExists(ExpandConstant('{tmp}\ISSkin.dll')) and FileExists(ExpandConstant('{tmp}\{#CjstylesName}') ) then
begin
ShowWindow(0, SW_HIDE);
UnloadSkin();
end;
#endif
end;
Thanks go to you Cesar82, I just "found" the problem, but you solved it for me! so thank you very much bro. :)
AWildPotato
23-02-2021, 06:50
I got the 7.1.7 Update, and I'm getting an error when running Compile_Script.bat:
Line 1408:
Column 20:
Syntax Error.
Any way to fix this?
Masquerade
23-02-2021, 13:37
I got the 7.1.7 Update, and I'm getting an error when running Compile_Script.bat:
Line 1408:
Column 20:
Syntax Error.
Any way to fix this?
Install inno setup, open the script and press CTRL+F9. Then you see the error line when it compiles.
Here is the latest version. Have not worked on it for a while and probably never will work again on it.
LordxKinG
12-03-2021, 22:50
Hi, is Possible ASIS Installer add video at background Installing? thanks
this is cool epic i will use this when i do my next repack :D
L33THAK0R
31-03-2021, 08:33
hey so I'm pretty dumb/simple/touched in the head, how can I get like an optional .bin or whatever working with ASIS? Not looking to have it as a select-able option in the GUI just want to be able to put an "optional.bin" in the root directory for the installer and it to extract it, sorry if this is a silly question.
Add a second record to Records.ini
L33THAK0R
12-04-2021, 07:29
Add a second record to Records.ini
Thank you so much for your quick response, got another quick question, how can I select AFR 0.20 in the "COMPRESSOR_GUI.exe"? Using ASIS v7.2.0.0 and can only seem to select 0.19. Sorry if its a bit of a silly question.
I think you have to hold CTRL key and click on "default" if I remember right.
L33THAK0R
12-04-2021, 19:19
I think you have to hold CTRL key and click on "default" if I remember right.
sick as, cheers man, works like a charm
L33THAK0R
13-04-2021, 20:35
Hey dunno if anyone knows how to or if it's even possible with ASIS, but is there a way to get ASIS to delete a specified file at the end of install? Got this really annoying 40mb junk temp file that isn't getting cleaned up and was wondering if there was a way I can get the installer to remove it.
Masquerade
13-04-2021, 23:42
Hey dunno if anyone knows how to or if it's even possible with ASIS, but is there a way to get ASIS to delete a specified file at the end of install? Got this really annoying 40mb junk temp file that isn't getting cleaned up and was wondering if there was a way I can get the installer to remove it.
if CurStep = ssPostInstall then begin
DeleteFile(ExpandConstant('{app}\<path to file>'));
L33THAK0R
14-04-2021, 16:07
if CurStep = ssPostInstall then begin
DeleteFile(ExpandConstant('{app}\<path to file>'));
fuckkk absolute legend, cheers brother
L33THAK0R
14-04-2021, 18:33
Alright got 2 more questions for you lads and then I promise I'll stop spamming 'em.
So I've got a repack with a few optional components and I was wondering if its possible for the setup once launched to have a look to see if the component file is present, and if it comes back false, can the setup disable the user from selecting that component?
like changing Component1.Enabled=1 to Component1.Enabled=0
My second question kinda builds off this first one, by which I mean can you have multiple CRC check files for different combinations of components selected and tell ASIS which one to select based of the selected components?
(like checksums1.md5 for main files & checksums2.md5 for main files + ost)
L33THAK0R
16-04-2021, 20:55
Also a super small question, if I have a compressor that is name differently to how it is named in ASIS, is it possible to change this in ASIS? in this case I'm using "afr_019" but this isn't recognised by ASIS.
Alright got 2 more questions for you lads and then I promise I'll stop spamming 'em.
So I've got a repack with a few optional components and I was wondering if its possible for the setup once launched to have a look to see if the component file is present, and if it comes back false, can the setup disable the user from selecting that component?
like changing Component1.Enabled=1 to Component1.Enabled=0
My second question kinda builds off this first one, by which I mean can you have multiple CRC check files for different combinations of components selected and tell ASIS which one to select based of the selected components?
(like checksums1.md5 for main files & checksums2.md5 for main files + ost)
code change is neccessary for this
Also a super small question, if I have a compressor that is name differently to how it is named in ASIS, is it possible to change this in ASIS? in this case I'm using "afr_019" but this isn't recognised by ASIS.
In latest version asis will use whatever you put inside setup.dll.
asis itself doesn't have any compressor settings anymore.
L33THAK0R
17-04-2021, 20:19
code change is neccessary for this
In latest version asis will use whatever you put inside setup.dll.
asis itself doesn't have any compressor settings anymore.
Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it
Hey so this is a bit of a dumb question but where do you put setup.dll when you've generated it
Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.
In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.
The standard INI file names are:
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.
and
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.
P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.
L33THAK0R
18-04-2021, 02:57
Setup.dll is a ".arc" file (compressed -m0..-m8 and renamed to .dll) that contains the compressors that must be placed next to Setup.exe.
If you rename the Setup.exe file for example to Install.exe, you must also rename the Setup.dll file to Install.dll.
The Setup.dll file is automatically generated by DiskSpan_GUI when compressing the game, but you can include different compressors as long as you also create the settings in the INI files.
In the COMPRESSOR folder on DiskSpan_GUI you have a ".bat" file called "_Compress Optional DLL (Drop Folder or Setup.dll) .bat" that is especially useful for this situation.
You just create a folder and put compressors, cls libraries and .ini files
After placing all decompressor files in a folder just click on the folder and drop the folder on the .bat file to create Setup.dll file.
The standard INI file names are:
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Optimal.ini for when installation is done on 64-bit systems.
- ARC_Optimal_x64.ini / ARC_Standard_x64.ini / CLS_Standard.ini for when installation is done on 64-bit systems.
and
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Optimal.ini for when installation is done on 32-bit systems.
- ARC_Optimal_x86.ini / ARC_Standard_x86.ini / CLS_Standard.ini for when installation is done on 32-bit systems.
P.S: Arc.ini/CLS.ini is also compatible and will be read if the ones mentioned above do not exist.
I understand all this but what I mean is where physically should "setup.dll" be present when making the .exe with ASIS, or is it not included inside of the .exe generated by ASIS?
Setup.dll must be in the same folder where Setup.exe is
I understand all this but what I mean is where physically should "setup.dll" be present when making the .exe with ASIS, or is it not included inside of the .exe generated by ASIS?
I had already answered before...
Setup.dll must be next to Setup.exe (Same folder) when starting the decompression using ASIS.
Complementing the answer, for those who did not understand:
Setup.dll is not needed before build Setup.exe.
ASIS will check if there is a file with the same name as the executable, but with a .dll extension and will extract it using UnArc.dll/IsDone.dll.
Only these 2 libraries are included in ASIS and are required prior to build Setup.exe.
Nothing else is needed inside Setup.exe during the build of Setup.exe.
L33THAK0R
18-04-2021, 16:39
I had already answered before...
Setup.dll must be next to Setup.exe (Same folder) when starting the decompression using ASIS.
Complementing the answer, for those who did not understand:
Setup.dll is not needed before build Setup.exe.
ASIS will check if there is a file with the same name as the executable, but with a .dll extension and will extract it using UnArc.dll/IsDone.dll.
Only these 2 libraries are included in ASIS and are required prior to build Setup.exe.
Nothing else is needed inside Setup.exe during the build of Setup.exe.
Ah alright, sorry was just hoping that'd it'd be possible to put the needed resources inside of the ASIS generated .exe, as was possible with v7.2.0.0, guess I won't be using v7.2.2.0+ lol
Ah alright, sorry was just hoping that'd it'd be possible to put the needed resources inside of the ASIS generated .exe, as was possible with v7.2.0.0, guess I won't be using v7.2.2.0+ lol
If version 7.2.0.0 is working well for you, great ...
Older versions may contain a bug that may have been fixed in the newer version.
If you want you can include the Setup.dll file internally from Setup.exe just by adding 4 lines to the script (red lines below). But you must first create Setup.dll and include it with scritp.iss before compiling Setup.exe. To do this, change it in the script:
In the [Files] section add.
[Files]
....
///////////////////////////////////////////////////////////////////////////////////////////
//////////////// FreeArc/ISDone Files /////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
Source: "{#SetupSetting("OutputBaseFilename")}.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy nocompression
Source: "Resources\Includes\UnArc.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
Source: "Resources\Includes\ISDone.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
In the section, locate for "procedure UltraARC_Process;" and add the line:
[CODE]procedure UltraARC_Process;
var
Data: Array of TData;
I, MsgResult: Integer;
SourceDir, DataFile: String;
#if UseComponents == "1"
ComponentFile: String;
#endif
SysInfo: TSystemInfo;
Threads: Integer;
begin
ExtractTemporaryFile('{#SetupSetting("OutputBaseFilename")}.dll');
if CompareText('{#SetupSetting("OutputBaseFilename")}.dll', ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll'))) <> 0 then
FileCopy(ExpandConstant('{tmp}\{#SetupSetting("OutputBaseFilename")}.dll'), ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll')), False);
//BEGIN - DISK SPAN GUI CHANGES
I := 1;
ISDoneError := False;
ExtractTemporaryFile('UnArc.dll');
L33THAK0R
19-04-2021, 06:23
If version 7.2.0.0 is working well for you, great ...
Older versions may contain a bug that may have been fixed in the newer version.
If you want you can include the Setup.dll file internally from Setup.exe just by adding 4 lines to the script (red lines below). But you must first create Setup.dll and include it with scritp.iss before compiling Setup.exe. To do this, change it in the script:
In the [Files] section add.
[Files]
....
///////////////////////////////////////////////////////////////////////////////////////////
//////////////// FreeArc/ISDone Files /////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
Source: "{#SetupSetting("OutputBaseFilename")}.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy nocompression
Source: "Resources\Includes\UnArc.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
Source: "Resources\Includes\ISDone.dll"; DestDir: "COMPRESSORS"; Flags: dontcopy
In the section, locate for "procedure UltraARC_Process;" and add the line:
[CODE]procedure UltraARC_Process;
var
Data: Array of TData;
I, MsgResult: Integer;
SourceDir, DataFile: String;
#if UseComponents == "1"
ComponentFile: String;
#endif
SysInfo: TSystemInfo;
Threads: Integer;
begin
ExtractTemporaryFile('{#SetupSetting("OutputBaseFilename")}.dll');
if CompareText('{#SetupSetting("OutputBaseFilename")}.dll', ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll'))) <> 0 then
FileCopy(ExpandConstant('{tmp}\{#SetupSetting("OutputBaseFilename")}.dll'), ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll')), False);
//BEGIN - DISK SPAN GUI CHANGES
I := 1;
ISDoneError := False;
ExtractTemporaryFile('UnArc.dll');
Thank you for being so patient with me man, really appreciate this, I wish I was more competent with python or whatever the script is written in, so that I could save you the trouble of doing this, thanks once again man, you're a hero!
Thank you for being so patient with me man, really appreciate this, I wish I was more competent with python or whatever the script is written in, so that I could save you the trouble of doing this, thanks once again man, you're a hero!
The programming is paschal with preprogrammed functions as in delphi (based on delphi).
I had to change the location of the Setup.dll file (After these changes above it will be in the temporary folder).
It is also necessary to change just below by replacing in 3 lines.
ChangeFileExt(ExpandConstant('{srcexe}'), '.dll')
Replace with:
ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll'))
After the changes it will look like this;
//....
if FileExists(ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll'))) then
begin
if ISDoneInit(ExpandConstant('{tmp}\Records.inf'), $F777, 0,0,0, MainForm.Handle, 0, @UnpackDLLCallback) then
begin
if not ISArcExtract(0, 0, ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll')), ExpandConstant('{tmp}'), '', False, '', ExpandConstant('{tmp}\Arc.ini'), ExpandConstant('{tmp}'), False) then
begin
ISDoneError := True;
SysErrorMessage(DLLGetLastError);
end;
ISDoneStop;
UnloadDLL(ExpandConstant('{tmp}\ISDone.dll'));
end;
//...
Good luck!
L33THAK0R
19-04-2021, 21:47
The programming is paschal with preprogrammed functions as in delphi (based on delphi).
I had to change the location of the Setup.dll file (After these changes above it will be in the temporary folder).
It is also necessary to change just below by replacing in 3 lines.
ChangeFileExt(ExpandConstant('{srcexe}'), '.dll')
Replace with:
ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll'))
After the changes it will look like this;
//....
if FileExists(ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll'))) then
begin
if ISDoneInit(ExpandConstant('{tmp}\Records.inf'), $F777, 0,0,0, MainForm.Handle, 0, @UnpackDLLCallback) then
begin
if not ISArcExtract(0, 0, ExpandConstant('{tmp}\') + ExtractFileName(ChangeFileExt(ExpandConstant('{src exe}'), '.dll')), ExpandConstant('{tmp}'), '', False, '', ExpandConstant('{tmp}\Arc.ini'), ExpandConstant('{tmp}'), False) then
begin
ISDoneError := True;
SysErrorMessage(DLLGetLastError);
end;
ISDoneStop;
UnloadDLL(ExpandConstant('{tmp}\ISDone.dll'));
end;
//...
Good luck!
Thanks man, really appreciate everything you've done!
pratikpatel8982
27-04-2021, 09:11
Can someone plz give link to latest ASIS version? I did not find it in the OP.
https://fileforums.com/showpost.php?p=490512&postcount=944
L33THAK0R
27-04-2021, 21:16
Is it possible for the CRC checking utility in ASIS compact mode to list "bad", "ok" and files not present, or would this require a code rewrite?
pratikpatel8982
28-04-2021, 21:33
Will it work with diskspan_gui 1.0.0.4 if I delete the contents inside diskspan_gui folder and extract the contents of compressor folder inside it.
EDIT: NVM, I'll test myself.
Will it work with diskspan_gui 1.0.0.4 if I delete the contents inside diskspan_gui folder and extract the contents of compressor folder inside it.
EDIT: NVM, I'll test myself.
Yes it works.
Is it possible for the CRC checking utility in ASIS compact mode to list "bad", "ok" and files not present, or would this require a code rewrite?
Code changes are needed.
L33THAK0R
29-04-2021, 08:50
Code changes are needed.
Drat! Had a feeling that would be the case.
alucard1973
30-04-2021, 06:27
Hello,
I have a problem, here, as shown in the image, when I select the file that I want to install, it does not give me the number of MB or GB it uses for French Langage, there are 4 games in total but just put 1 with different language to test.
Likewise, with CIU there is the Task, but not on ASIS 7.2.2a, is it possible to put it manually?
I also want to know what is Component1.Level=0
Thank you
https://nsm09.casimages.com/img/2021/04/30//21043003354713335917395259.png
mausschieber
30-04-2021, 08:48
I also want to know what is Component1.Level=0
Thank you
read the Help file that should help you
alucard1973
30-04-2021, 12:01
How do I put comp in the records.ini file?
I tried everything and it doesn't work for me when I want to install the game
[Record1]
Type=Freearc_Original
Source={src}\Setup1FR.cab
Output={app}\SteamApps\common\Commandos Behind Enemy Lines\
Disk=1
Comp=2
[Record2]
Type=FreeArc_Original
Source={src}\Setup1.cab
Output={app}\SteamApps\common\Commandos Behind Enemy Lines\
Disk=1
Comp=3
[Record3]
Type=Freearc_Original
Source={src}\Setup2FR.cab
Output={app}\SteamApps\common\Commandos Beyond the Call of Duty\
Disk=1
Comp=5
[Record4]
Type=FreeArc_Original
Source={src}\Setup2.cab
Output={app}\SteamApps\common\Commandos Beyond the Call of Duty\
Disk=1
Comp=6
[Record5]
Type=Freearc_Original
Source={src}\Setup3FR.cab
Output={app}\SteamApps\common\Commandos 2 Men of Courage\
Disk=1
Comp=8
[Record6]
Type=FreeArc_Original
Source={src}\Setup3.cab
Output={app}\SteamApps\common\Commandos 2 Men of Courage\
Disk=1
Comp=9
[Record7]
Type=Freearc_Original
Source={src}\Setup4FR.cab
Output={app}\SteamApps\common\Commandos 3 Destination Berlin\
Disk=1
Comp=11
[Record8]
Type=FreeArc_Original
Source={src}\Setup4.cab
Output={app}\SteamApps\common\Commandos 3 Destination Berlin\
Disk=1
Comp=12
it is in relation to this, to have the choice of which game I want to install
[ComponentsSettings]
Enable=1
FlatPageMode=0
ShowComponentSize=1
Component1.Name=Commandos Behind Enemy Lines
Component1.Level=0
Component1.Exclusive=0
Component1.Checked=1
Component1.Enabled=1
Component2.Name=French
Component2.File=Setup1FR.cab
Component2.Size=930
Component2.Level=1
Component2.Exclusive=1
Component2.Checked=0
Component2.Enabled=1
Component3.Name=English
Component3.File=Setup1.cab
Component3.Size=930
Component3.Level=1
Component3.Exclusive=1
Component3.Checked=0
Component3.Enabled=1
Component4.Name=Commandos Beyond the Call of Duty
Component4.Level=0
Component4.Exclusive=0
Component4.Checked=1
Component4.Enabled=1
Component5.Name=French
Component5.File=Setup2FR.cab
Component5.Size=660 MB
Component5.Level=1
Component5.Exclusive=1
Component5.Checked=0
Component5.Enabled=1
Component6.Name=English
Component6.File=Setup2.cab
Component6.Size=660 MB
Component6.Level=1
Component6.Exclusive=1
Component6.Checked=0
Component6.Enabled=1
Component7.Name=Commandos 2 Men of Courage
Component7.Level=0
Component7.Exclusive=0
Component7.Checked=1
Component7.Enabled=1
Component8.Name=French
Component8.File=Setup3FR.cab
Component8.Size=3.82 GB
Component8.Level=1
Component8.Exclusive=1
Component8.Checked=0
Component8.Enabled=1
Component9.Name=English
Component9.File=Setup3.cab
Component9.Size=3.82 GB
Component9.Level=1
Component9.Exclusive=1
Component9.Checked=0
Component9.Enabled=1
Component10.Name=Commandos 3 Destination Berlin
Component10.Level=0
Component10.Exclusive=0
Component10.Checked=1
Component10.Enabled=1
Component11.Name=French
Component11.File=Setup4FR.cab
Component11.Size=3.76 GB
Component11.Level=1
Component11.Exclusive=1
Component11.Checked=0
Component11.Enabled=1
Component12.Name=English
Component12.File=Setup4.cab
Component12.Size=3.76 GB
Component12.Level=1
Component12.Exclusive=1
Component12.Checked=0
Component12.Enabled=1
L33THAK0R
30-04-2021, 21:17
How do I put comp in the records.ini file?
I tried everything and it doesn't work for me when I want to install the game
I'm in no way qualified to say anything on this but I'm fairly sure you don't need to put component files in records.ini
pratikpatel8982
30-04-2021, 21:25
I'm in no way qualified to say anything on this but I'm fairly sure you don't need to put component files in records.ini
Component settings should be in settings.ini file.
There is also a helpfile for settings.ini.
pratikpatel8982
01-05-2021, 00:27
I wanted to ask if I can add multiple music files like background images. For example:
For background images in settings.ini
[Background]
//---------------Setup\Background\#.jpg
Enable=1
InstallBGDuration=5000
InstallBGAnimation=1
BGAfterInstall=1
Similarly for music:
[Music]
Enable=1
MusicFile=Setup\Music\Track#.mp3
OR ALTERNATIVELY,
MusicFile=Setup\Music\*.mp3 [To Load all mp3 files]
MusicVolume=10
So if I can use Setup\Music\Track#.mp3 and then in the "Music" folder, place files with name:
Track1.mp3
Track2.mp3
Track3.mp3
Track4.mp3
Track5.mp3
Track6.mp3
...
Does this require code change??
And one more thing, does it loop music like FG Repacks?
If it's not possible, then I will merge all the tracks into a single music file.
alucard1973
01-05-2021, 03:58
Component settings should be in settings.ini file.
There is also a helpfile for settings.ini.
I know that there is the task= but as it is not in the Setting.ini, I had to adapt myself with the Component1 etc ... but I look at the help file, there is nothing on
pratikpatel8982
01-05-2021, 08:24
I know that there is the task= but as it is not in the Setting.ini, I had to adapt myself with the Component1 etc ... but I look at the help file, there is nothing on
You have to add the whole component thing in settings.ini to be able to choose which component to install. Just copy everything starting from [Component] and paste it at the end of settings.ini
Also you forgot to add this line for each component:
Component#.File=(The archive linked for the component)
For example:
Component1.File=Component1.arc
You have to add it for each component to make it work properly.
alucard1973
01-05-2021, 09:42
You have to add the whole component thing in settings.ini to be able to choose which component to install. Just copy everything starting from [Component] and paste it at the end of settings.ini
Also you forgot to add this line for each component:
Component#.File=(The archive linked for the component)
For example:
Component1.File=Component1.arc
You have to add it for each component to make it work properly.
yes, I removed it because the setup I want to choose for installation is in components2.file and components3.file
the concern is that in the record, I do how, I understood correctly that you tell me to do nothing, but unfortunately, it installs me everything every time and I would like to choose in the pack, the game and the language of the game that I want to install, for example, commando beyond line and commando 2 without installing the others
I don't know if I'm explaining myself well
what I want to do, is therefore if I choose to install commandos 2, is that it installs me this version as well as this file
[Record5]
Type=Freearc_Original
Source={src}\Setup3FR.cab
Output={app}\SteamApps\common\Commandos 2 Men of Courage\
Disk=1
[Record13]
Type=Freearc_Original
Source={src}\Setup3STEAM.cab
Output={app}\SteamApps\
I would test more or less what you tell me because they don't laugh to put in the record.ini as in CIU which was for me Task = 2 for example, I doubt that it works for me, but I have nothing more to lose :)
another thing, to uninstall a backup, is there a line to put in setting.ini?
yes, I removed it because the setup I want to choose for installation is in components2.file and components3.file
the concern is that in the record, I do how, I understood correctly that you tell me to do nothing, but unfortunately, it installs me everything every time and I would like to choose in the pack, the game and the language of the game that I want to install, for example, commando beyond line and commando 2 without installing the others
I don't know if I'm explaining myself well
what I want to do, is therefore if I choose to install commandos 2, is that it installs me this version as well as this file
[Record5]
Type=Freearc_Original
Source={src}\Setup3FR.cab
Output={app}\SteamApps\common\Commandos 2 Men of Courage\
Disk=1
[Record13]
Type=Freearc_Original
Source={src}\Setup3STEAM.cab
Output={app}\SteamApps\
I would test more or less what you tell me because they don't laugh to put in the record.ini as in CIU which was for me Task = 2 for example, I doubt that it works for me, but I have nothing more to lose :)
another thing, to uninstall a backup, is there a line to put in setting.ini?
I don't know if the ASIS 7.2.2 I have here is the latest version, but from what I found in the code it doesn't have any reading of key Component= or Comp= in records.ini
The installation is done normally from the Records.ini files (like Main Game).
After the main extraction, the ASIS configuration is checked in the [ComponentsSettings] section, key Component#.File= (starting with 1) and if any of them are checked and the file exists, it will be extracted.
NOTE: For the data file to work, it must be in the same path as Setup.exe, so if it is burned to disk or ISO it must be on the last disk, otherwise (folders) it must be next to Setup.exe.
Component#.File should only be the name of the component or <SubDir>\<DataFile> in relation to {src} (Setup.exe directory)
The Component will always be extracted to {app} so if you need to put the files in subfolders they must be in subfolders before compression.
If you understand a little bit, see the code below the component extraction process done after installing the main game.
{Unpack selected components}
#if UseComponents == "1"
if ComponentsPageAvai then
begin
for I := 0 to GetArrayLength(CompIndexList) - 1 do
if ComponentsList.Checked[CompIndexList[I]] then
begin
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
if (ISDoneError = False) and FileExists(ComponentFile) then
if not ISArcExtract(0, 0, ComponentFile, ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
ISDoneError := True;
end;
end;
#endif
alucard1973
01-05-2021, 14:53
I don't know if the ASIS 7.2.2 I have here is the latest version, but from what I found in the code it doesn't have any reading of key Component= or Comp= in records.ini
The installation is done normally from the Records.ini files (like Main Game).
After the main extraction, the ASIS configuration is checked in the [ComponentsSettings] section, key Component#.File= (starting with 1) and if any of them are checked and the file exists, it will be extracted.
NOTE: For the data file to work, it must be in the same path as Setup.exe, so if it is burned to disk or ISO it must be on the last disk, otherwise (folders) it must be next to Setup.exe.
Component#.File should only be the name of the component or <SubDir>\<DataFile> in relation to {src} (Setup.exe directory)
The Component will always be extracted to {app} so if you need to put the files in subfolders they must be in subfolders before compression.
If you understand a little bit, see the code below the component extraction process done after installing the main game.
{Unpack selected components}
#if UseComponents == "1"
if ComponentsPageAvai then
begin
for I := 0 to GetArrayLength(CompIndexList) - 1 do
if ComponentsList.Checked[CompIndexList[I]] then
begin
ComponentFile := ExpandConstant('{src}\' + GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.File', '', ExpandConstant('{tmp}\Settings.ini')));
if (ISDoneError = False) and FileExists(ComponentFile) then
if not ISArcExtract(0, 0, ComponentFile, ExpandConstant('{app}'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}'), false) then
ISDoneError := True;
end;
end;
#endif
So if I put this, it should extract the components2.file if I choose the FRENCH version
The components1 I left empty because it is to deselect if I do not want to install it, suddenly I guess I have a problem with setting.ini
Component1.Name=Commandos Behind Enemy Lines
Component1.File=
Component1.Size=
Component1.Level=1
Component1.Exclusive=0
Component1.Checked=1
Component1.Enabled=1
Component2.Name=French
Component2.File=Setup1FR.cab
Component2.Size=930
Component2.Level=0
Component2.Exclusive=1
Component2.Checked=0
Component2.Enabled=1
Component3.Name=English
Component3.File=Setup1.cab
Component3.Size=930
Component3.Level=0
Component3.Exclusive=1
Component3.Checked=0
Component3.Enabled=1
I will see and try to find a solution for it, but there is also the problem of registry.iss, suddenly, how do I put componets for the one I chose to install in relation to the settings.ini?
yes, the version I am using is 7.2.2a
Component settings was made only for single game, not for collection of games.
So without code editing, your goal can not be reached here.
alucard1973
01-05-2021, 15:25
Component settings was made only for single game, not for collection of games.
So without code editing, your goal can not be reached here.
I don't know enough about code :confused:
Thank you anyway for helping me and responding
alucard1973
03-05-2021, 08:39
well, after testing, it decompresses the files that I select, but here is my problem, I cannot use the record.ini, otherwise it installs all the game files for me, if I don't put it, it lets me know. install well what I ask, but my problem therefore comes from the installation directory.
Can we add, I suppose it's here, a command (if you can help me because I don't know much about it) to put for example "components1.Dir = {sd} \ steamapps \ common \ test1" in settings.ini
#if UseComponents == "1"
procedure ComponentsOnCheck(Sender: TObject);
var
I: Integer;
begin
ComponentsSize := 0;
for I := 0 to GetArrayLength(CompIndexList) - 1 do
if ComponentsList.Checked[CompIndexList[I]] then
ComponentsSize := ComponentsSize + GetSizeBytes(GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.Size', '0', ExpandConstant('{tmp}\Settings.ini')), ComponentsSize);
ComponentsDiskSpaceLabel.Caption := FormatDiskSpaceLabel(SetupMessage(msgComponentsDis kSpaceMBLabel), ComponentsSize + GetSizeBytes(GetIniString('Settings', 'Size', '0', ExpandConstant('{tmp}\Settings.ini')), ComponentsSize));
ComponentsDiskSpaceLabel.Refresh;
end;
Hello! Is it possible for ASIS to decompress archives with a password? (Not someone elses, archives, archives created by myself with a password) I can't seem to find anything about it in settings.ini or the script.
pratikpatel8982
03-05-2021, 08:55
well, after testing, it decompresses the files that I select, but here is my problem, I cannot use the record.ini, otherwise it installs all the game files for me, if I don't put it, it lets me know. install well what I ask, but my problem therefore comes from the installation directory.
Can we add, I suppose it's here, a command (if you can help me because I don't know much about it) to put for example "components1.Dir = {sd} \ steamapps \ common \ test1" in settings.ini
#if UseComponents == "1"
procedure ComponentsOnCheck(Sender: TObject);
var
I: Integer;
begin
ComponentsSize := 0;
for I := 0 to GetArrayLength(CompIndexList) - 1 do
if ComponentsList.Checked[CompIndexList[I]] then
ComponentsSize := ComponentsSize + GetSizeBytes(GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I]) + '.Size', '0', ExpandConstant('{tmp}\Settings.ini')), ComponentsSize);
ComponentsDiskSpaceLabel.Caption := FormatDiskSpaceLabel(SetupMessage(msgComponentsDis kSpaceMBLabel), ComponentsSize + GetSizeBytes(GetIniString('Settings', 'Size', '0', ExpandConstant('{tmp}\Settings.ini')), ComponentsSize));
ComponentsDiskSpaceLabel.Refresh;
end;
I am supposing that you want to install each component in a different folder inside the {app} directory but so far I haven't found such feature in this script.
If you want to install in specific directory just compress the files with the folder structure. For example, you want to install component 1 inside {app}\Component1\
You can't specify it. For this to work, you need to pack file with folder structure. For example, in component1.arc:
Component 1\file1,file2......file10
So after extraction, it will automatically extract inside {app}\component1\file1,file2......file10.
alucard1973
03-05-2021, 11:13
I am supposing that you want to install each component in a different folder inside the {app} directory but so far I haven't found such feature in this script.
If you want to install in specific directory just compress the files with the folder structure. For example, you want to install component 1 inside {app}\Component1\
You can't specify it. For this to work, you need to pack file with folder structure. For example, in component1.arc:
Component 1\file1,file2......file10
So after extraction, it will automatically extract inside {app}\component1\file1,file2......file10.
ok thanks
alucard1973
03-05-2021, 12:28
I would like to know, if I provided my blackbox script that I had to modify, could you help me on the subject of scaling, I mean that since I have a 4k screen, I have to put Windows at 200% and I can't adapt the code to match the resolution. when I run my setup, it is obviously very small with the icons to move, I adapted with this script for practically everything except for the scaling and the setup.dll that I don't think it is too complicated to make it adapt with my blackbox.
Thank you
pratikpatel8982
03-05-2021, 19:05
I would like to know, if I provided my blackbox script that I had to modify, could you help me on the subject of scaling, I mean that since I have a 4k screen, I have to put Windows at 200% and I can't adapt the code to match the resolution. when I run my setup, it is obviously very small with the icons to move, I adapted with this script for practically everything except for the scaling and the setup.dll that I don't think it is too complicated to make it adapt with my blackbox.
Thank you
Yes, I also want to use it with CorePack Script by BlackFire69 but it doesn't support setup.dll. But I can't help you with scaling stuff since I don't know coding.
Hello! Is it possible for ASIS to decompress archives with a password? (Not someone elses, archives, archives created by myself with a password) I can't seem to find anything about it in settings.ini or the script.
bump...
bump...
Example
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
to
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, 'YourPassword', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
Example
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
to
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, 'YourPassword', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
Am i looking in the wrong place? I cannot find that exact line to change it to that.
Am i looking in the wrong place? I cannot find that exact line to change it to that.
Line 4097
pratikpatel8982
06-05-2021, 05:49
Example
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
to
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, 'YourPassword', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
Hey, If possible can you add it like other settings so that it can be modified using settings.ini
For example, create a password section:
[Password]
Enabled=1
Password=YourPassword
BTW, I don't mind modifying the script, but it would be a great addition to ASIS if it will be supported by default. And I think it should not be too difficult to implement. Just need to modify Settings.iss and script.iss
I don't working on the script anymore.
But you're right, only things to be added is in Settings.iss, Settings.ini and script.iss. Very simple.
Example
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, '', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
to
if not ISArcExtract(0, 100, ExpandArcFile(Data[i - 1].Arc[1],SourceDir), Data[i - 1].Arc[2], '', false, 'YourPassword', ExpandConstant('{tmp}\Arc.ini'), Data[i - 1].Arc[2], false) then
Would this be possible with an older version like 7.2.0? I saw this and I wanted to try adding this, but I still have issues with the newest version of ASIS. In the script, this exact line is there, but instead of ExpandArcFile, it's UpdateSource. Adding the password part set to the password of the test archive makes it start to read the files, but gets stuck at 0.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.