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)

Gehrman 25-06-2022 12:19

I meant the EXIT window.
https://www.upload.ee/image/14268581...-25_234600.jpg

Selecting "NO" exits the installer.

abror 26-06-2022 01:52

Quote:

Originally Posted by KaktoR (Post 497342)
@abror
Will be added in next update

thanks ^_^

ScOOt3r 30-06-2022 07:50

This looks nice, but when i try and run it.. the splash screen shows up and i hear the music and the icon on the taskbar shows up but it doesnt take you to the installer itself.. any ideas how to fix this??

ScOOt3r

KaktoR 02-07-2022 03:45

1 Attachment(s)
Here is Update 2 for v7.3.4 wip

Code:

- Temporary removed the ability to change font to all elements except welcome screen due to misplacing elements such as Task/Components lists in certain circumstances
- Fixed a bug which exits the installer if searching for a archive and if installer asks if to quit, you select "No" the installer quits (this)
  > The problem was a false ISDoneError boolean in function BrowseArcFile
- The MediaPlayer library is no longer required to play button sounds (thanks to Cesar for the hint)
- Some other things


KaktoR 02-07-2022 07:46

Sorry I forgot to include the settings.iss file.

Reapply the last update. This should fix it.

KaktoR 18-07-2022 07:29

Seems like I have forgot to change it... :D

Thanks for this ;)

However, new version will be shared in a few days. Made many tests and it's working good so far.

fabrieunko 20-07-2022 23:28

my question may be zero but I would like to add a 2nd SPLASH.
how to do?

KaktoR 29-07-2022 04:26

Added v7.3.4 stable

L33THAK0R 02-08-2022 17:57

Quote:

Originally Posted by KaktoR (Post 497792)

The update feature sure seems handy! Is there any chance you could clue me into the label names for the compact mode start screen buttons? I'm a sucker for efficiency and do miss the old cramped nature of the previous compact mode designs. Been reading through but cant seem to quite figure out which ones to modify (it doesn't help my brains a tad smooth haha)

KaktoR 03-08-2022 02:36

What do you mean exactly?

In script you just have to search for "CompactMode" (without ! char. ! char means "not" in ispp). Then you have all parts which belongs to compact mode.

L33THAK0R 03-08-2022 18:54

1 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 497857)
What do you mean exactly?

In script you just have to search for "CompactMode" (without ! char. ! char means "not" in ispp). Then you have all parts which belongs to compact mode.

I was talking about the composition on the install/home page, as seen here

Also is there a certain option needed to get the "Setup.dll" to extract during install? I unpacked a generated 7.3.4 executable and can confirm "Setup.dll" is included in the executable.

However the installer doesnt seem to extract the contents of "Setup.dll", as attempting to start the installation skips the target archives and fails immediately.

If you'd be willing to offer any tips I've included my example Setup.dll, Settings/Records .ini & the Script.iss (for 7.3.4).

Thanks again for your continued support and interest in this script, it's really quite a versatile tool!

KaktoR 04-08-2022 00:59

Well I have changed the appereance a bit from previous changes because on some languages some text was cut off.

Setup.dll inclusion and password settings have to be done in script.iss (at the beginning) by removing ; in front of the lines. Make sure you set the same password there as you did for the setup.dll file.

Setup.dll will be extracted as first step as soon as you click the install button. You can check that in tmp folder.

L33THAK0R 04-08-2022 23:02

Ah fair enough, given those reasons can't see any reason for me to further pursue reverting the adjustments.

I was also dead wrong, and you completely right in regards to my issues with using Setup.dll, it turns out the reason nothing was happening was because I forgot to include the "records.ini" in the "Setup.dll" file, I had thought it was also included when placed in the root directory for ASIS, as was the norm with v7.2.0. Seems like I'm getting somewhere now but for some reason attempting to copy over the de-compressors and CLS-related tools from v7.2.0 (ie. CLS-[AFR/BPK/LOLZ/MPZMT/MSC/OGGRE/PZLIB/SREP/UELR), & the CLS-DISKSPAN.dll doesn't seem to work, since I get a fairly basic message after attempting to install the files, reading: "Incompatible version of the "CLS-DiskSpan.dll" library".

Is there a required version of DiskSpan-dll required with the newer versions of ASIS? Apologies for the seemingly never ending stream of queries, seems like I cant catch a break with troubleshooting!

KaktoR 04-08-2022 23:59

Yes. Grab the diskspan cls from diskspan gui tool ;)
However the diskspan cls is only required if you use it actually. You can also just create freearc archives without diskspan cls. They working fine too. If you don't want to use the spanning method.

L33THAK0R 05-08-2022 01:09

Quote:

Originally Posted by KaktoR (Post 497866)
Yes. Grab the diskspan cls from diskspan gui tool ;)
However the diskspan cls is only required if you use it actually. You can also just create freearc archives without diskspan cls. They working fine too. If you don't want to use the spanning method.

Eureka! That's done it! I had tried 3 different versions of the DiskSpan dll, and hadn't thought to try the latest version, finally got a working setup for v7.3.3 now it seems.

I honestly just use the cls versions for some compressors just because I started off with them and it was convenient, thanks again for all the help, can't wait to see what the future holds for ASIS!

fabrieunko 06-08-2022 22:32

Hello, I have a problem with the following game:Dying Light 2 Stay Human
compression and installtion is going very well.

but the icon does not launch the game but just opens the directory

Code:

[Settings]
Name=Dying Light 2
Size=45.2 GB
Creator=UnK
DefaultInstallDir={sd}\Games
UnInstallFolder=_UnInstall
ShowLanguageBox=0
CompactMode=0
UWPGame=0
Savegamefolder=0
UpdateMode=0
//FileCheck=Game\Launcher\MassEffectLauncher.exe


[Executable1]
ShortcutName=Dying Light 2
ExePath=ph\work\bin\x64\DyingLightGame_x64_rwdi.exe
ExeParam=
IconFileName={app}\ph\work\bin\x64\DyingLightGame_x64_rwdi.ico
Component=1

I do not understand why the icon is good (there is the image) but it does not work

When I right click on the icon I get the following properties
"C:\Games\Dying Light 2"

KaktoR 07-08-2022 00:18

Test without IconFileName key

There is no reason to select the very same file for the icon.

Cesar82 07-08-2022 07:17

Quote:

Originally Posted by fabrieunko (Post 497880)
Hello, I have a problem with the following game:Dying Light 2 Stay Human
compression and installtion is going very well.

but the icon does not launch the game but just opens the directory

Code:

[Settings]
Name=Dying Light 2
Size=45.2 GB
Creator=UnK
DefaultInstallDir={sd}\Games
UnInstallFolder=_UnInstall
ShowLanguageBox=0
CompactMode=0
UWPGame=0
Savegamefolder=0
UpdateMode=0
FileCheck=Game\Launcher\MassEffectLauncher.exe


[Executable1]
ShortcutName=Dying Light 2
ExePath=ph\work\bin\x64\DyingLightGame_x64_rwdi.exe
ExeParam=
IconFileName={app}\ph\work\bin\x64\DyingLightGame_x64_rwdi.exe
Component=1

I do not understand why the icon is good (there is the image) but it does not work

When I right click on the icon I get the following properties
"C:\Games\Dying Light 2"

Your config has information about the Mass Effect game in the FileCheck= key, remove this key or include the correct information for this game.

Maybe you need a different path to workdir.
Try changing in workdir shortcut properties to {app} folder path and see if it works.
I don't remember if ASIS has configuration for this in Settings.ini.

pcblizzard 08-08-2022 01:55

Hey,

I have a question: in the "Script.iss" file, there is the "[Files]" section, I would like to copy files / folders, depending on what was selected during setup as a component, which I can define in the "Settings.ini" under "[ComponentsSettings]".

But somehow I'm at a loss and don't know what to specify in the "[Files]" section, in the "Script.iss", so that either only the files from the Update 1 or Update 2 folder are copied.

Script.iss:
Code:

[Files]
Source: "Path to the Update 1-folder\*"; DestDir: "{app}"; Flags: external ignoreversion recursesubdirs createallsubdirs
Source: "Path to the Update 2-folder\*"; DestDir: "{app}"; Flags: external ignoreversion recursesubdirs createallsubdirs

Settings.ini:
Code:

[ComponentsSettings]
Enable=1
FlatPageMode=0
ShowComponentSize=1

;; requires at least two components to enable page.
;; if components is used the global size will be ignored.

Component1.Name=Update 1
Component1.ItemType=RADIO
Component1.Size=2,12 MB
Component1.Level=0
Component1.Checked=1
Component1.Enabled=1

Component2.Name=Update 2
Component2.ItemType=RADIO
Component2.Size=7,34 MB
Component2.Level=0
Component2.Checked=0
Component2.Enabled=1


KR blizz

KaktoR 08-08-2022 02:16

You have to add such tasks with the use of records.ini

Add files to a freearc archive and add this archive to Settings.ini and records.ini

You can do it with either [TasksSettings] or [ComponentsSettings] in Settings.ini. You have to decide which fits better.
Example with [TasksSettings]
Code:

Task1.Name=Updates
Task1.ItemType=GROUP
Task1.Size=0
Task1.Level=0
Task1.Checked=1
Task1.Enabled=1

Task2.Name=Update 1
Task2.ItemType=CHECKBOX
Task2.Size=104.867 b
Task2.Level=1
Task2.Checked=1
Task2.Enabled=1

PS: If you don't want to use a GROUP for sorting items, then delete Task1 and change Task2 to Task1.

---

records.ini
[Record1]
Type=Freearc_Original
Source={src}\Main_Files.bin
Output={app}\
Disk=1
Size=10 GB

[Record2]
Type=Freearc_Original
Source={src}\Update_1.bin
Output={app}\
Disk=1
Size=2.12 MB
Task=2

If you use [ComponentsSettings] then use Components= key in records.ini


KaktoR 08-08-2022 04:07

2 Attachment(s)
I felt the need to further explain the component and task settings, so here is update 7.3.5

Code:

v7.3.5
_____________________________________________________
- Added additional help for components and tasks settings in Help folder
- UpdateMode and FileCheck keys are now in a new settings section [UpdateSettings]


pcblizzard 08-08-2022 07:55

Thank you KaktoR for your help, everything worked!

KaktoR 08-08-2022 08:36

I have added a small fix for the help files to previous post.

Edit: added a new fix. Sorry

fabrieunko 08-08-2022 11:54

I allow myself to give you the translation in French.

Find
Code:

french.SavegameFolder=Do you want to delete savegame folder?
Remplace
Code:

french.SavegameFolder=Voulez-vous supprimer le dossier de sauvegarde?
A small correction or a space is missing

Find
Code:

french.label2={#if CompactMode}Progression générale:{#else}Total des fichiers: %1  Fichiers traités: %2    Ok: %3manquants: %4  mauvais: %5{#endif}
Remplace
Code:

  french.label2={#if CompactMode}Progression générale:{#else}Total des fichiers: %1  Fichiers traités: %2    Ok: %3 manquants: %4  mauvais: %5{#endif}

fabrieunko 09-08-2022 22:16

Quote:

Originally Posted by fabrieunko (Post 497880)
Hello, I have a problem with the following game:Dying Light 2 Stay Human
compression and installtion is going very well.

but the icon does not launch the game but just opens the directory

Code:

[Settings]
Name=Dying Light 2
Size=45.2 GB
Creator=UnK
DefaultInstallDir={sd}\Games
UnInstallFolder=_UnInstall
ShowLanguageBox=0
CompactMode=0
UWPGame=0
Savegamefolder=0
UpdateMode=0
//FileCheck=Game\Launcher\MassEffectLauncher.exe


[Executable1]
ShortcutName=Dying Light 2
ExePath=ph\work\bin\x64\DyingLightGame_x64_rwdi.exe
ExeParam=
IconFileName={app}\ph\work\bin\x64\DyingLightGame_x64_rwdi.ico
Component=1

I do not understand why the icon is good (there is the image) but it does not work

When I right click on the icon I get the following properties
"C:\Games\Dying Light 2"

hello again, so I'm coming back to you because I've done many tests and corrected the ini and nothing has worked the shortcut only opens the game directory but does not launch the game. I even changed the name of the game. exe and rename it and it didn't work.
I will therefore abandon this game because I really do not understand why it does not work

KaktoR 10-08-2022 01:02

Send me the executable via private message

Edit: I tested with the game executable, used the same oiginal folder paths for my test, and it works fine here.
Icon is changed to what it is set in settings.ini.
It does not open the game directory with the desktop icon but run the executable.

So I really don't know what is happening for you. Is this only with this game or other games too?

fabrieunko 10-08-2022 11:54

hello, it's the only and first game that does this to me, I have the game icon, but it opens the game directory only.I still sent you the exe in case you want to test.
thank you

its_gnar_again 17-08-2022 20:11

Heyo, I just started moving to v.7.3.4, and I had a question relating to the Tasks page. Is there anyway to not include this section when in non-compact mode? I feel like it's unnecessary when the following page with the install dir/start menu shows the size anyway, and I rather have it skip to that page. It's not often I have anything selective/optional.

https://i.ibb.co/hH1syzN/image.png

KaktoR 18-08-2022 07:34

Just don't use Taskpage then ;)

its_gnar_again 18-08-2022 07:51

Quote:

Originally Posted by KaktoR (Post 498001)
Just don't use Taskpage then ;)

I was under the assumption that it was needed by default for this version, thanks for the heads up. :eek:

KaktoR 20-08-2022 00:56

2 Attachment(s)
Code:

v7.3.8
_____________________________________________________
- Fixed INI options if the file was not present in {app} dir the installer has created the file instead
- Removed RunFromAppFolder setting temporarily if you use QuickSFV

v7.3.7
_____________________________________________________
- Added QuickSFV option again as alternative crc check option after installation
  > Note: You can't use both options
- Fixed redist installation (thanks to Cesar)
- Fixed some other things

v7.3.6
_____________________________________________________
- Updated french language (thanks to fabrieunko)
- Updated Portuguese Brazil language (thanks to Cesar)
- Corrected some translations
- Settings.iss removed


Gehrman 20-08-2022 11:42

Help and Problem in Components and ISExec
 
How can the Exec function work only by selecting Component 2?

Component2.Name=Patch
Component2.ItemType=CHECK
Component2.Size=1 MB
Component2.Level=0
Component2.Checked=1
Component2.Enabled=1

I tried the below function but it didn't work.:(
Code:

if ComponentsList.Checked[2] then
 begin   
 if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\Patch.exe'), ExpandConstant('/Dir={app}'), ExpandConstant('{tmp}'), '...',false) then break;
end;

please help.

Lord.Freddy 20-08-2022 20:40

Quote:

Originally Posted by Gehrman (Post 498031)
How can the Exec function work only by selecting Component 2?

Component2.Name=Patch
Component2.ItemType=CHECK
Component2.Size=1 MB
Component2.Level=0
Component2.Checked=1
Component2.Enabled=1

I tried the below function but it didn't work.:(
Code:

if ComponentsList.Checked[2] then
 begin   
 if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\Patch.exe'), ExpandConstant('/Dir={app}'), ExpandConstant('{tmp}'), '...',false) then break;
end;

please help.

Try this

Code:

if IsComponentSelected('NAME') then begin
[Your Code]
End;


Gehrman 21-08-2022 02:37

Thanks Lord Freddy
But it doesn't work.

Lord.Freddy 21-08-2022 04:07

Quote:

Originally Posted by Gehrman (Post 498035)
Thanks Lord Freddy
But it doesn't work.

Code:


if IsComponentSelected('Patch') then
var
  ResultCode: Integer;
begin
  // Launch EXE file and wait for it to terminate
  Exec(ExpandConstant('{tmp}\Patch.exe'), ExpandConstant('/Dir={app}'), '', SW_SHOW,ewWaitUntilTerminated, ResultCode);
end;

I think this is work for you now:)

Masquerade 23-08-2022 08:31

Hey, how would we go about doing the following in ASIS?

- Extract first Archive in records.ini

- Run a batch file

- Resume extracting the next archives

Thanks!

If it helps, I'm using v7.1.4

KaktoR 23-08-2022 08:57

@Masquerade
This needs some changes in "procedure Unpack_Process".

Honestly I don't know if this even exists on v7.1.4, since many changes come along since then.

L33THAK0R 26-08-2022 23:40

I've been trying to do a minor redesign to the compact mode layout, by moving all the contents of the "AboutForm" to the main-page of the installer. I've managed to accomplish all I set out to do save for getting the "LogoImage" to display, even after changing the parent to "WizardForm", Is there something I'm missing? I'm using the latest version of the script if it helps.

L33THAK0R 01-09-2022 18:01

Sorry to fire off all these questions but got one more quickie, would anyone happen to know what variables determine the default Font used for CompactMode, and which ones disable the use of custom fonts for CompactMode? I un-commented the parts disabling the use of custom fonts, as present in v7.3.4-Update-2 and onwards and played around with the script a bit. "Font.ttf" is definitely being added to the installer but theres something in the script preventing a custom font being used on CompactMode, since its definitely working for most elements, save the AboutForm & InfoForm, in non-CompactMode.

KaktoR 02-09-2022 00:06

Custom Font is used only by NormalMode (non-CompactMode) on Start page and Finish page.

Custom fonts were never added to compact mode, simply because of its size and design. In former tests most fonts (especially but not only included by default in windows) were unreadable, means cut off texts and such. I think the standard font used by Inno Setup is "Arial" font.

However if you want to change the fonts of all elements in compact mode, you have to add "Font.Name :=" to all the elements manually which are used by compact mode, like this
Code:

Font.Name := 'Times New Roman';
Example for Icons checkbox

Code:

IconsCB := TNewCheckBox.Create(WizardForm);
  with IconsCB do
  begin
    #if !CompactMode
    ...
    #else
    Font.Name := 'Times New Roman';
    ...
    ..
    #endif
end;



All times are GMT -7. The time now is 08:41.

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