FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ASIS: Advanced Simple Installer Script (https://fileforums.com/showthread.php?t=99481)

Masquerade 29-04-2020 12:43

Quote:

Originally Posted by Cesar82 (Post 485530)
@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.

Cesar82 29-04-2020 16:24

@Masquerade
Send me your src code

KaktoR 30-04-2020 04:12

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

Quote:

Originally Posted by KaktoR (Post 485497)
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.

KaktoR 01-05-2020 02:41

For the shortcuts...
Just add this to both issp code lines
Code:

""";"
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.

KaktoR 01-05-2020 15:52

1 Attachment(s)
Here is a fix for the shortcuts (thanks to Cesar).

Schabik 05-05-2020 00:32

Quote:

Originally Posted by KaktoR (Post 485572)
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?

KaktoR 07-05-2020 01:38

No, not yet.

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

KaktoR 07-05-2020 04:03

Wrong positioning :D

Send me your Settings.ini please

shakhnaften 07-05-2020 05:24

1 Attachment(s)
here you go thank you

KaktoR 07-05-2020 06:41

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

Cesar82 07-05-2020 12:24

Quote:

Originally Posted by KaktoR (Post 485637)
Well this only happens with vcl skin.

I will investigate this soon.

Find this part in ASIS code and add line in red color.
Code:

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


KaktoR 07-05-2020 13:05

@Cesar: I already did this. But I don't know why this happens with vcl skin... Any ideas? Just to inform myself :D

Cesar82 07-05-2020 15:24

2 Attachment(s)
@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.

Suryam 07-05-2020 22:26

Hello Kaktor please name the compressor which i can use in this inno installer

Suryam 08-05-2020 01:28

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

Suryam 08-05-2020 01:35

How to Create crc file for checking The file
 
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

KaktoR 08-05-2020 03:58

Use Compressor.ini to find out.

Create crc file with HashCheck, QuickSFV, ...

Yes it is possible to use rtf.
Change inside script
Code:

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

KaktoR 08-05-2020 04:28

1 Attachment(s)
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.

Suryam 08-05-2020 07:49

CRC Checksum Problem
 
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

Grumpy 08-05-2020 08:03

@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 08-05-2020 20:51

Quote:

Originally Posted by Grumpy (Post 485674)
@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

KaktoR 10-05-2020 08:50

There is a problem from last update with crc file

change
Code:

CheckHashesFromFile(ExpandConstant('{tmp}\{#CRCFileName}'),ExpandConstant('{tmp}'),@HandleHashes,True);

to

CheckHashesFromFile(ExpandConstant('{tmp}\{#CRCFileName}'),ExpandConstant('{app}'),@HandleHashes,True);


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

KaktoR 25-05-2020 08:55

rar is not compatible.

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.

KaktoR 30-05-2020 06:20

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

Quote:

Originally Posted by KaktoR (Post 486103)
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..

KaktoR 01-06-2020 02:01

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

Complete Translation
 
1 Attachment(s)
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):

KaktoR 22-06-2020 02:31

Next update soon for testing.

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

KaktoR 23-06-2020 04:30

I have uploaded a new test update to previous post.

The full changelog so far
Code:

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?

KaktoR 24-06-2020 01:21

Try with new update 3


All times are GMT -7. The time now is 14:25.

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