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)

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 12:32.

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