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)

Kitsune1982 06-06-2018 07:11

1 Attachment(s)
kaktor, here is the issue i am having. take a look at the attached pic and my script.iss and tell me what i need to do to get it to the resolution i want. i want the installer to be 720x455 though preferably 800x600 or higher resolution. how do i do this?

KaktoR 06-06-2018 08:22

Change resolution for image in

Code:

WizardForm.WizardBitmapImage.Width := 497;
  WizardForm.WizardBitmapImage.Height := 314;

WizardForm.WizardBitmapImage2.Width := 497;
  WizardForm.WizardBitmapImage2.Height := 314;

and buttons for example
Code:

MusicButton := TNewButton.Create(WizardForm);
      with MusicButton do begin
        Parent  := WizardForm;
        Left    := ScaleX(169);
        Top    := ScaleY(327);

        Width  := ScaleX(75);
        Height  := ScaleY(23);
        Caption := ExpandConstant('{cm:MusicButtonCaptionSoundOff}');
        OnClick := @MusicButtonClick;
      end;


TheGeekyGamer 25-06-2018 22:05

Thank you... i was looking for a simple and clean installer creator.

Schabik 02-07-2018 05:50

2 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 471508)
Change resolution for image in

Code:

WizardForm.WizardBitmapImage.Width := 497;
  WizardForm.WizardBitmapImage.Height := 314;

WizardForm.WizardBitmapImage2.Width := 497;
  WizardForm.WizardBitmapImage2.Height := 314;

and buttons for example
Code:

MusicButton := TNewButton.Create(WizardForm);
      with MusicButton do begin
        Parent  := WizardForm;
        Left    := ScaleX(169);
        Top    := ScaleY(327);

        Width  := ScaleX(75);
        Height  := ScaleY(23);
        Caption := ExpandConstant('{cm:MusicButtonCaptionSoundOff}');
        OnClick := @MusicButtonClick;
      end;



Nope, Website button is moving but when I tried to resize the image it's not resizing. My image has 750x500 but when I Tried to resize This happens:Attachment 22212


Original image looks like this:
Attachment 22213

pakrat2k2 02-07-2018 09:00

did you change BOTH sets of lines where KaktoR posted them ?
https://www.fileforums.com/showpost....&postcount=322

KaktoR 02-07-2018 12:04

Nah he is right. Something is wrong.

Schabik 02-07-2018 22:35

Quote:

Originally Posted by pakrat2k2 (Post 472202)
did you change BOTH sets of lines where KaktoR posted them ?
https://www.fileforums.com/showpost....&postcount=322


I've changed both variables.
As KaktoR said, something really Isn't right.


Edit:


OK, KaktoR please tell me the installer has 2 or 3 layers if I think correctly. The layer that is responsible for the image size is not resizing correctly and I think that it has a constant size.

KaktoR 03-07-2018 05:52

1 Attachment(s)
Hm yeah

I think the problem is WelcomeLabel1 + WelcomeLabel2 transparency

I have not worked on it for a long time.

Anyway, script was initialy not made to change all that stuff.

Schabik 04-07-2018 00:57

Quote:

Originally Posted by KaktoR (Post 472213)
Hm yeah

I think the problem is WelcomeLabel1 + WelcomeLabel2 transparency

I have not worked on it for a long time.

Anyway, script was initialy not made to change all that stuff.


KaktoR Can You please work on that?
I'm not a programmer, so I can't solve this problem.
I'm trying to solve the problem but no results.


I've occured another problem, The wizard does not always run correctly.
the steps are: running setup, splashscreen appears, after thar nothing happens.

Stor31 04-07-2018 06:39

https://nsa39.casimages.com/img/2018...4754422979.png

Schabik 07-07-2018 22:43

Quote:

Originally Posted by Stor31 (Post 472243)

Please specify Your problem Stor31

Jiva newstone 08-07-2018 00:47

Quote:

Originally Posted by Schabik (Post 472236)
KaktoR Can You please work on that?
I'm not a programmer, so I can't solve this problem.
I'm trying to solve the problem but no results.


I've occured another problem, The wizard does not always run correctly.
the steps are: running setup, splashscreen appears, after thar nothing happens.

Yes, u can add transparency- go to wizardform and add this

WizardForm.WelcomeLabel1.Transparent:=true;
WizardForm.WelcomeLabel2.Transparent:=true;

or use this

http://krinkels.org/resources/transparentstatic.180/

Jiva newstone 08-07-2018 00:52

1 Attachment(s)
Quote:

Originally Posted by TheGeekyGamer (Post 472100)
Thank you... i was looking for a simple and clean installer creator.

Any ideas on your simple and clean installer,

Schabik 11-07-2018 23:20

Ok, I have another problem.


When trying to install the game the installer freezes on 57% the cls-srep process closes and installation won't continue.

saeid 12-07-2018 05:10

i used : srep:m3f:l128+lzma2 to compress in Diskspan and use ASIS.v7.0.8 Compiler to run setup.
when run setup, i give isdone.dll and unarc.dll error
please help me.

Schabik 12-07-2018 05:12

Quote:

Originally Posted by saeid (Post 472415)
i used : srep:m3f:l128+lzma2 to compress in Diskspan and use ASIS.v7.0.8 Compiler to run setup.
when run setup, i give isdone and unarc.dll error
please help me.

What version od srep are You using?

saeid 12-07-2018 05:26

Quote:

Originally Posted by Schabik (Post 472416)
What version od srep are You using?

I use SREP64 which be in Diskspan in ASIS.v7.0.8 package.

Schabik 12-07-2018 05:30

Quote:

Originally Posted by saeid (Post 472417)
I use SREP64 which be in Diskspan in ASIS.v7.0.8 package.


Show me Your arc.ini file.

saeid 12-07-2018 05:34

1 Attachment(s)
Quote:

Originally Posted by Schabik (Post 472418)
Show me Your arc.ini file.

Edit attach file!
Please help me!

saeid 12-07-2018 13:53

finally, I solved it.
I edited Settings.ini in ASIS.v7.0.8 folder and set:
"UltraARC=0
DiskSpan=1"

repair isdone.dll and unarc.dll error.
I edited Compressor.ini in ASIS.v7.0.8 folder and set (for "srep:m3f:l128+lzma2" method):

Quote:

[External Compressor]
#Define SrepInside "N" ;O, N

// Precompressors //
//#Define ReflateDLL "x64"
//#Define pZLib3 "x64"
//#Define ZTool "x64"
//#Define XTool "x86"
//#Define pOodle
//#Define AFR "019" ;019, 020
//#Define UELR

// For Media Streams //
//#Define MSCInside "TAK"
//#Define MPZSlimmer
//#Define OGGRE
//#Define BPK

// Final compressor //
#Define SevenZip "x64"
//#Define RAZOR
//#Define LOLZ
//#Define ZSTD "x64"
//#Define DLZ

#Define Facompress
//#Define Rar
//#Define OggDec
//#Define XDelta

mahbodsx 03-08-2018 14:20

https://cdn.pbrd.co/images/HxvXrYh.png

I use the Ultra Arc
Pzlib3-srep-Lzma
but get error 11 unarc help me please

pakrat2k2 19-08-2018 07:32

error 11, unable to write to disk. try install to anything except Program files (x86), try just C:\games\... or different HD partition.

ZAZA4EVER 02-09-2018 08:22

1 Attachment(s)
Quote:

Originally Posted by Schabik (Post 472200)
Nope, Website button is moving but when I tried to resize the image it's not resizing. My image has 750x500 but when I Tried to resize This happens:Attachment 22212


Original image looks like this:
Attachment 22213

For this problem i reach for solution for make setup suitable for any resolutions ... But we want cjstyle file transparent or crystal for setup.if anyone have it please upload it ... My try in picture ...

KaktoR 02-09-2018 09:09

I think you have to move all labels from WizardForm.xxxxxxxx to WizardForm and make pages invisible.

ZAZA4EVER 02-09-2018 10:26

Quote:

Originally Posted by KaktoR (Post 475492)
I think you have to move all labels from WizardForm.xxxxxxxx to WizardForm and make pages invisible.

How i can do it ... I am not programer ... But i want one example to make it

K4miKaZe 22-09-2018 23:38

Hi, first i want to give thanks to KaktoR for this beautiful inno script. Im new to inno and scripts, it tooked me all this night to learn how to set everything up (ultraarc, inno, scripts, etc...) and now i managed how to create correctly the installers. But i have a little question, i looked over this forum first but didnt find anything related to this (maybe ive not searched right).
My question is basicly about the "system requirements" tab, how does the OS works, on the original script its setted up to 611 but i cant find a table or something that converts windows versions to numbers (hummm). So my question here is how i can see every windows editions equivalent number to set it up. On other hand on the same tab i also have problems with the DirectX section, if i set it to 9.0c it doesnt work, setting it to 9 works fine. Is there any table for this too?

Thanks again and im very sorry if you donīt understand my bad english, feel free to ask me if you dont understand something.

Regards !!!

KaktoR 23-09-2018 02:56

611 is Windows 7
1000 is Windows 10
(Major/Minor/SPPack)

Search in wikipedia for their numbers.

DirectX is only 9/10/11/12

K4miKaZe 23-09-2018 05:21

Many thanks KaktoR for your fast reply. So, if i understand it for example Windows Xp should be 510, with sp1 511, sp2 512, sp3 513 right? Trust me, i looked already on wiki too and didnt find those 3 numbers xD. But after your reply i think i have understood it now.

Thanks again !!!

KaktoR 23-09-2018 05:53

For example: Windows XP 5.1 Build 2600.5512 (SP 3)

Windows Major version is 5, the minor version is 1 and the SP number is 3
= 513
If you want to check for SP1 or SP2, use 511 or 512.

Windows 7 6.1 Build 7600 (Service Pack 1: 6.1 Build 7601)
Windows major version is 6, minor version is 1 and SP number is 1
= 611

Here is the link with all versions:
https://en.wikipedia.org/wiki/Windows_NT

Look in "Releases" tab

K4miKaZe 23-09-2018 06:21

Wow, this fits all my needs. Many many thanks again. For this moment all is working fine, i was changing some colors and some other things but for now tested it on 3 little games and it works perfect. The only thing that has driven me crazy was the OS parameters (not needed now but i like to understand how anything works for the future because im sure i will need it).

Thanks again and sorry for my bad english !!!

K4miKaZe 24-09-2018 04:43

Hi again, this is only if someone else has the same problem i have got yesterday/today creating installers for the Assassins Creed Games. I started yesterday to rip Syndicate, all went fine on ultraarc with afr+srep+ll2 for forge, srep+ll2 on other files and bpk for the bink files. Got my packed game in around 6 hours from around 68gb to only 18,7gb. After that i created the installer on ASIS but here is when problems arrived xDD. When i tried to install the game it breaks every time on the same forge file with the isdone.dll fail, no other error message (just a blank box). So i looked over on the compilator.ini and changed the AFR version from 19 to 20, this time the installer was faster but same problem on same file. After that and for testing myself i installed the first Assassins Creed because its small, packed it the same way (without -a2 on afr) and the same happened on the installer. Changed a lot of things and finally found the solution. Changing on the compiler the define srep from "N" to "O" did solve the install problems for me. This only happens on the forge files, i already packed other games (small games yesterday) with srep and lolz and it had no problems but the "N" value on Srep seems not to like Assassins.
So if everyone has the same problem try this setting, hope it helps.

Schabik 24-09-2018 04:57

Quote:

Originally Posted by K4miKaZe (Post 475876)
Hi again, this is only if someone else has the same problem i have got yesterday/today creating installers for the Assassins Creed Games. I started yesterday to rip Syndicate, all went fine on ultraarc with afr+srep+ll2 for forge, srep+ll2 on other files and bpk for the bink files. Got my packed game in around 6 hours from around 68gb to only 18,7gb. After that i created the installer on ASIS but here is when problems arrived xDD. When i tried to install the game it breaks every time on the same forge file with the isdone.dll fail, no other error message (just a blank box). So i looked over on the compilator.ini and changed the AFR version from 19 to 20, this time the installer was faster but same problem on same file. After that and for testing myself i installed the first Assassins Creed because its small, packed it the same way (without -a on afr) and the same happened on the installer. Changed a lot of things and finally found the solution. Changing on the compiler the define srep from "N" to "O" did solve the install problems for me. This only happens on the forge files, i already packed other games (small games yesterday) with srep and lolz and it had no problems but the "N" value on Srep seems not to like Assassins.
So if everyone has the same problem try this setting, hope it helps.


First and only question is what version of Srep did You use for compression. Version 3.93a causes problems with CRC and decompression overall. This version also causes false compression ratio so for example I've comressed The Sims 3 with srep3.93a and it seemed that the game was compressed to 15GB but that was a bogus and archives were damaged.

K4miKaZe 24-09-2018 05:17

Quote:

Originally Posted by Schabik (Post 475877)
First and only question is what version of Srep did You use for compression. Version 3.93a causes problems with CRC and decompression overall. This version also causes false compression ratio so for example I've comressed The Sims 3 with srep3.93a and it seemed that the game was compressed to 15GB but that was a bogus and archives were damaged.

I have used 3.92 but it was not a compression problem. As i said, the same packed files doesnt install with the "N" command but it installs fine with the "O" command, the problem here was unpack related (my packed bin file is the same). I also checked crc after getting it to work and crc is fine (on AC1 and Syndicate). Maybe its me but using also 020 on AFR instead 019 seems to be a little bit faster on installing, i will let it this way and test all other AC games. For non forge files if i pack with the "N" command it works fine, it only doesnt like the forge files (i mean the unpacker/installer).

Edit: SREP64 3.9.2, thats the version i used.

K4miKaZe 29-09-2018 08:17

Mmmm this is a bit strange, its about the redists. I have a small problem here and was testing it in many ways without solution. The problem is if i want to install only the redist 2 it doesnt install or do anything. If i enable/tick the first one it works good for both but if i only enable/tick the second one on the installer it doesnt work. Maybe im missing something, did anyone checked this?

Thanks !!!

Jawahir95 29-09-2018 08:18

Hi Mr (s), thanks for every thinks, just i have a problem with the method (xZLib+srep+lolz), i'm using:
* UltraARC 2900 R5 Stable Release
* ASIS.v7.0.8
The error is: Unsupported compress method (xZLib+srep+lolz)!
Please if any one help me, i'm tired to solve this 0_0.

I'm using the following ini(s):

Compressor.ini:
Quote:

[External Compressor]
#Define SrepInside "N" ;O, N

// Precompressors //
#Define ReflateDLL "x64"
//#Define pZLib3 "x64"
//#Define ZTool "x64"
#Define XTool "x86"
//#Define pOodle
//#Define AFR "019" ;019, 020
//#Define UELR

// For Media Streams //
//#Define MSCInside "TAK"
//#Define MPZSlimmer
//#Define OGGRE
//#Define BPK

// Final compressor //
//#Define SevenZip "x64"
//#Define RAZOR
#Define LOLZ
//#Define ZSTD "x64"
//#Define DLZ

//#Define Facompress
//#Define Rar
//#Define OggDec
//#Define XDelta
CLS.ini:
Quote:

[Srep]
Bufsize=24m
transfer_ReadBufSize=512k
transfer_WriteBufSize=512k
Memory=50%-512m
TempPath=.\

[Precomp]
Memory=128
TempPath=.\

[Lolz]
Bufsize=512k
transfer_ReadBufSize=512k
transfer_WriteBufSize=512k
MaxThreadsUsage=100%
MaxMemoryUsage=75%-10m

[AFR]
Threads=Auto

[uelr]
Bufsize=16m
transfer_ReadBufSize=2048k
transfer_WriteBufSize=4096k
ARC.ini:
Quote:

[External compressor:pzlib,plz4,plzo,pzstd]

header = 0
unpackcmd = ZTool d:{compressor}{:option}:t100p:cm0mb - - <stdin> <stdout>

[External compressor:pZLib3]
header = 0
unpackcmd = pZLib3 d {options} -t100p - -o - <stdin> <stdout>

[External compressor:zstd,zst]
header = 0
unpackcmd = ZSTD -d {options} -f <stdin> <stdout>

[External compressor:Lzma2,lzma2,xz,XZ]
header = 0
unpackcmd = 7z x -txz -an -y -si -so <stdin> <stdout>

[External compressor:lz4,LZ4]

header = 0
unpackcmd = LZ4 -d - -c <stdin> <stdout>



[External compressor:lz5,LZ5,lizard,Lizard]

header = 0

unpackcmd = Lizard -d - -c <stdin> <stdout>

[External compressor:mpz]
header = 0
unpackcmd = MPZ d <stdin> <stdout>

[External compressor:razor,rz]
header = 0
solid = 0
unpackcmd = RZ x Output Input
datafile = Input
packedfile = Output

[External compressor:afr]
header = 0
unpackcmd = AFR_x64.exe d #in #out <stdin> <stdout>

[External compressor:xprecomp]
header = 0
unpackcmd = xtool.exe d:precomp:t75p - - <stdin> <stdout>

[External compressor:xZLib,xOodle,xLZ4,xLZO,xZSTD]
header = 0
unpackcmd = xtool.exe d:precomp:t75p - - <stdin> <stdout>

[External compressor:xCriLayla]
header = 0
unpackcmd = xtool.exe d:precomp:t50p - - <stdin> <stdout>

K4miKaZe 29-09-2018 08:37

Mmmm i cant edit my last message, i actually fixed it myself. There is a small error on the code on the Script.iss file. All redists sections are checking if redist1 is enabled, so if number 1 is disabled no other works. Here is the code, its easy to fix, just changing the number for every redist on the script.

Code:

#if Redist2 == "1"
    if (CurStep = ssPostInstall) then begin
    if Redist1CB.Checked then begin
      #if UltraARC == "1"
        WizardForm.ProgressGauge.Hide;
      #endif
        WizardForm.StatusLabel.Caption := ExpandConstant('{cm:InstallingRedist2}');
        if not IsWin64 then begin
          Exec2(ExpandConstant('{#Redist2Exe32}'),'{#Redist2Param}',true);
        end else
          Exec2(ExpandConstant('{#Redist2Exe64}'),'{#Redist2Param}',true);
          Exec2(ExpandConstant('{#Redist2Exe32}'),'{#Redist2Param}',true);
      end;
    end;

As you can see in the red part the redist2 is checking for redist1, the same happens to all others. Just change 2 for 2, 3 for 3 and so on.

KaktoR 29-09-2018 08:59

@Jawahir95
Have you disabled diskspan and enabled ultraarc in Settings.ini?

K4miKaZe 29-09-2018 09:00

Jawahir95 mmm i had problems too from UltraArc 2900 but i solved it downloading Xtools and replace it with the Asis and Ultraarc version, it was mainly because it didnt work for zstd. Maybe you can first try to add // to #Define ReflateDLL "x64" to disable it, i didnt used it on ME when i used your same method (Xtools+srep+lolz) and it worked but as said above i used the same xtools version on Uarc and Asis. Another check is maybe changing on the first option the SREP "N" to "O" ("N" didnt worked for me on the AC Games).

KaktoR 29-09-2018 09:02

Xtool on current ASIS version is very outdated (it's the first XTool version, some missing files).

Maybe I will fix the problems tomorrow.

K4miKaZe 29-09-2018 09:27

Quote:

Originally Posted by KaktoR (Post 475983)
Xtool on current ASIS version is very outdated (it's the first XTool version, some missing files).

Maybe I will fix the problems tomorrow.

Ok !!! I tested it again now on my fixed script and its fine. Should be only this little typo (that usually happens when we copy and paste some code for categories that always looks same with little variation). Happened to me so many times xDD. And yes, the xtools is a bit outdated but its easy to fix/replace, i didnt mention it because i thought that maybe you dont have permission or something to add newer versions. Already used your script for all AC Games and ME Andromeda this week and its perfect, tooks a while to learn how everything works and more if you didnt use programs like ultraarc or inno in the life but after spending some time its very easy.


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

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