FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   [CIUv3] Custom Installer Ultimate v3 (https://fileforums.com/showthread.php?t=102510)

Cesar82 08-08-2020 13:12

CIU 3.0.0.1 (Beta 6) bug found
 
After testing the conversion of @Prettyboy099 I found a bug when switching to the installer finish page.
Displays an error when not add the Close button in the installer and going to the finish page.
To fix this, do the following... Open the CIU 3.0.0.1.b6 script and search for:
Code:

CstmBtn[BtnI(CloseBtn)].ClickAction := @NextBtnClick;
Insert the line highlighted in red.
Code:

CstmBtn[BtnI(NextBtn)].ClickAction := @NextBtnClick;
if BtnI(CloseBtn) >= 0 then
  CstmBtn[BtnI(CloseBtn)].ClickAction := @NextBtnClick;

If other errors arise I share an HF.
Thanks @Prettyboy099 for using CIU 3.0.0.1.b6, thanks to him this bug will no longer be present in next version.

Prettyboy099 08-08-2020 20:09

Thanks, I tested and the problem is fixed...
Quote:

Originally Posted by Cesar82 (Post 487312)
thanks to her this bug will no longer be present in next version.

I am not 'her' though??..:mad::mad:

Cesar82 09-08-2020 07:03

@Prettyboy099, sorry, I didn't even notice.

To CIU translators:
The next versions of CIU will have 4 more label (caption) in the miniature buttons in case you want to use as normal buttons.
These labels below are like the name for buttons Minimize, Maximize, Restore, Close in Windows windows.
So ask users who have collaborated with translations before, to translate these labels into the same languages as before.
I will send the request by PM to the users who translated the previous labels in the last few months.
If possible send me the translation by PM so that I don't get so many posts here.
Code:

ButtonMinimize=Minimize
ButtonMaximize=Maximize
ButtonRestore=Restore
ButtonClose=Close

The Maximize (Installer) and Restore (SmallInstaller) button are used to switch between Installer/SmallInstaller and vice versa.
Minimize and Close are the buttons present (or not) on the Autorun, Installer or SmallInstaller pages.
The label will be included in buttons of this type:
https://i.imgur.com/TlgwIeQ.png

Cesar82 09-08-2020 09:34

UltraARC 2900 R8 (DiskSpan BAT) - Update
 
2 Attachment(s)
Updated some files in the "UltraARC 2900 R8" folder (DiskSpan Files).
This version has "CLS-DiskSpan.dll R2" compatible with CIU 3.0.0.0.u9.
To use this updated files with CIU 3.0.0.1.b6 simply download the attached file 2 (CLS-DiskSpan.dll R3) and replace it in the "UltraARC 2900 R8" folder.
Code:

Changes:
- Fixed errors in some compression methods.
- Added BD100 size option to media selection.
- Added a new ".bat" file to create the ".7z" file divided into parts by the maximum attachment size supported on the forum.


mausschieber 09-08-2020 13:53

how do i set Steam and GOG for both games in 3.0.0.1
in 3.0.0.0.u9 it was set in rekords.ini

Kitsune1982 09-08-2020 14:27

hey cesar i am having an issue with CIU 3.0.0.1.b6. even when i delete the videos and wallpapers and add my own then recompile it nothing in the install screen changes. it still shows a gray screen then plays the 'world war z' video trailer even when i dont have any videos in the background folder. how do i re-enable the still image slide show again and disable the video? please help, its really frustrating me..

-Kitsune

Cesar82 09-08-2020 15:03

Quote:

Originally Posted by mausschieber (Post 487329)
how do i set Steam and GOG for both games in 3.0.0.1
in 3.0.0.0.u9 it was set in rekords.ini

In version 3.0.0.1.b6 it changed a little (For the better).
Now the key used to determine the type of installation to be performed on (If the installer is a double) is determined by the key:
Code:

[InstallerSettings]
InstallerType=

Supported values are:
NORMAL, STEAM, GOG, UWP
Only one value can be entered.
STEAM and NORMAL are the same functionality.
If the value is empty it is considered as STAM/NORMAL
The key can be inserted in Records.ini, or in external Setup.ini, or internal Setup.ini and will be verified in that order.
If there is no key in Records.ini it will be checked in external Setup.ini and if it does not exist, it will be checked in the internal Setup.ini file.

Example to config internal "Setup.ini" file:
To attach the Exe from the executable section to an installation type in the [Executable#] section use the same keywords as above na key Type=.
Also add the key Type= in the [Play#Button] sections;
To attach a play button to the executable use the ExecutableID= key, like This:
Code:

[Executable1]
Type=GOG
Exe=game.exe
ExePath=

[Executable2]
Type=STEAM
Exe=game.exe
ExePath=bin64

[Executable3]
Type=STEAM
Exe64=game.exe
ExePath64=bin32

;; play atached to gog executable 32 bits
[Play1Button]
Type=GOG
ExecutableID=1

;; play atached to steam executable 32 bits
[Play2Button]
Type=STEAM
ExecutableID=3

If you do not include ExecutableID= the value of the section ass will be used [Play1Button] = value 1
For more details see the file "_Setup.ini" in the Help folder.

Cesar82 09-08-2020 15:08

Quote:

Originally Posted by Kitsune1982 (Post 487330)
hey cesar i am having an issue with CIU 3.0.0.1.b6. even when i delete the videos and wallpapers and add my own then recompile it nothing in the install screen changes. it still shows a gray screen then plays the 'world war z' video trailer even when i dont have any videos in the background folder. how do i re-enable the still image slide show again and disable the video? please help, its really frustrating me..

ou must be doing something wrong.
If you want, send me by PM the source as you are compiling (With your changes).

mausschieber 09-08-2020 17:11

another question what is //AddDXFilter=0

must i be enable or leave it blank

Cesar82 09-08-2020 17:28

Quote:

Originally Posted by mausschieber (Post 487335)
another question what is //AddDXFilter=0

must i be enable or leave it blank

This option if using value "1" includes the LAV and DirectVobSub filters to Setup.exe.
Adding these filters in Setup.exe allows IsMediaLib.dll to play audio or video even without having the K-Lite Codec Pack installed on the system.
When using only .mp3 files if there are no codecs on the system and it fails to play, then it will be played by BASS.dll, but bass.dll does not support playing audio online.
These filters are 22 MB which after compressing are approximately 8 MB (Setup.exe is 8 MB larger with the filters).
The different .mp3 play feature for smallinstaller still doesn't work with BASS.dll so it will only play if you have codecs installed, or if you activate the key.
If you use video or audio online (Youtube for example) in your installer it is recommended to use a value of "1" in the AddDXFilter key.
Otherwise you can use a value of "0" or delete key to reduce the size of Setup.exe in 8 MB.

Cesar82 09-08-2020 17:36

@mausschieber
The AllowYouTube= key has the ability to include or not include the library that allows you to obtain the direct link to the audio or video from youtube.
If your conversion is not going to play video or audio from youtube you can use value 0 or delete this key.
To play videos from direct links (such as STEAM videos link) it is not necessary to activate the key AllowYouTube=1,
just include the filters if you want the reproduction to not fail due to lack of codecs in the user's system.

mausschieber 10-08-2020 07:35

next Question about RedistSettings in beta 6

what are these settings

[Launch1]
;Exclusive=0
;Level=0
;Group=0

Cesar82 10-08-2020 08:01

Quote:

Originally Posted by mausschieber (Post 487348)
next Question about RedistSettings in beta 6

what are these settings

[Launch1]
;Exclusive=0
;Level=0
;Group=0

Exclusive = If use value "1", add RadioButton (not CheckBox), more need 2 or more items in same Group to work with radiobuton (When you check one, uncheck the others in the same group).
Level = Shift of items to the right.
Group = They are created automatically at each Level =, only in some cases you will need to use this key (When you have other larger Levels within the group).
P.S. Groups are incremented by changing to a higher or lower Level = by grouping the RadioButtons so that when selecting one deselect the others in the same group.
View the Tasks page of the CIU theme installer to better understand.

pincoball 11-08-2020 02:40

I post it here since I wasn't able to send it via DM

Code:

ButtonMinimize=Minimizza
ButtonMaximize=Massimizza
ButtonRestore=Ripristina
ButtonClose=Chiudi


VAISH 12-08-2020 05:59

Hello What i had to do for an dialog of install directory

Cesar82 12-08-2020 08:43

Quote:

Originally Posted by VAISH (Post 487372)
Hello What i had to do for an dialog of install directory

Explain further, I at least did not understand the question.
Update the same previous post with more details.

VAISH 12-08-2020 17:41

root
 
how can i make a dialog box of select the directory to instaal i had tried many times it not working

Joe Forster/STA 13-08-2020 08:23

Quote:

Originally Posted by VAISH (Post 487381)
how can i make a dialog box of select the directory to instaal i had tried many times it not working

Don't multi-post; instead, use the Edit button to add details to your post.

Cesar82 13-08-2020 09:15

Quote:

Originally Posted by VAISH (Post 487381)
how can i make a dialog box of select the directory to instaal i had tried many times it not working

You are referring to CIU, right?
Which version of CIU are you using?
Is this window equivalent to the image below not being displayed?
If so, are you choosing the "Customize" button option in the installer?
Because if you click directly on the "Install" button you will install it in the default directory.
https://i.imgur.com/b1pCN6Y.png
Here CIU displays the window correctly in all conversions I downloaded, and there have been no other reports of this problem.
If CIU is present and this is not the solution to the problem, you can send me the link to download your project by PM which I will analyze for you.

Prettyboy099 13-08-2020 22:16

CIU 3.0.0.1.b6
 
3 Attachment(s)
Can someone help with the following font -
Attachment 27688

Attachment 27689

It's getting cut at the end..
Following font is being used...


houcine80 14-08-2020 02:51

just problem size bro
increase button size or reduce font size

test the font size with German or Rus language not English only

Prettyboy099 14-08-2020 03:02

2 Attachment(s)
Then, is it same problem for these cases????

Attachment 27693

Attachment 27694

Prettyboy099 14-08-2020 03:09

Quote:

Originally Posted by houcine80 (Post 487409)
test the font size with German or Rus language not English only

Same for all language...

Cesar82 14-08-2020 04:05

@PRETTYBOY099
Check if the same error happens with the font "Arial".
If not, and using right alignment, try moving the label, using LabelX=-5 or more.

Prettyboy099 14-08-2020 04:28

@Cesar82
I have tried as you said. 'Arial' looks fine. But problem with the font. I have changed font size but all seems same. I have send the project via PM.

Cesar82 14-08-2020 08:10

1 Attachment(s)
Quote:

Originally Posted by Prettyboy099 (Post 487413)
@Cesar82
I have tried as you said. 'Arial' looks fine. But problem with the font. I have changed font size but all seems same. I have send the project via PM.

I think I understand what's going on.
the width of the label is defined by obtaining the caption with the font defined by the user.
But since the font you used is an italic font, the width does not include the slant of the text.
I'll put a key in the button group sections to increase the width when necessary (When using Italic fonts).
I will not have time for this now, only at night (noon now here).
Wait for a hotfix that I will post here with this correction and also with the error correction of the finish page.

@Prettyboy099
I downloaded your project, and from what I saw, all labels that have self-adjusting width were cut (Checkbox, Buttons, labels).
Perhaps the correction is a little more complex than I imagined, requiring a different width addition for each fontsize.
Then I see what I can do.
The error was not in my code. Inno Setup's own TLabel with the AutoSize= True property cuts the end of the label when using this font from your project.

------------------------------------------------------------
I added a new key in all sections where it has the Font= key.
The new key added was:
Code:

FontItalicFix=1            // 0 / 1
Attached is 3 scripts for testing.
Add the scripts to the folder and rename the AutorunScript_3.0.0.1.b6 script date to the same date as the hotfix script.
1) One of them contains the correction changes when using italic fonts for testing.
2) Other Includes only a few fixes which are listed below.
3) A third party includes the fixes and also correction changes when using italic fonts (More complete).
Possibly one or the other section may not respond to the command because I didn't have time to analyze each independent label.

Code:

CHANGES:
- Added key FontItalicFix=0  (0 / 1) to all sections that have the Font= key.
- Fixed to use VideoBG.bmp (RGN) / VideoBG.png (Frame) when using only online video (DirectLink or Youtube Link).
- Fixed DesktopCheckbox that didn't work as it should.
  >> Now it is displayed disabled when it has no executables configured for the type of installation being performed (such as when using GOG + STEAM and not configuring an executable for one of them).
- Fixed error in ProgressBar mode when canceling progressbar mode on the Pre-Requiriments page.
- Fixed not to pause the music when minimizing the installer while installing.
- Fixed to display the components of the fullscreen screen (slide, Frame, Logo) before attempting to load the video file (Visible mainly when using online video).
- Fixed OneLiner key = of the [SmallButton] section to make it independent with default value False.
  >> Maximum value 100 (100%) is set in the Opacity key of the equalizers.
- Fixed font of special thanks labels on the about page. I was using the same font size as the translator labels.
- Fixed Left=, Width=, FontColor= keys of the [PageBigTitle] section that did not work.

@Prettyboy099
For your project I think the key should be activated using value 1 at least in the sections: [StandardButton], [StandardButtonAR], [SmallButton] (If you have a smallinstaller), [TextStage] (For labels).
In the [LauncherSettings] section (Checkboxes fonts) is optional because if [TextStage] is enabled it activates as the default value.
Example. If you use a non-italic font on one button and italic on another, you can enable or disable the key (If enabled in the button group section) on the corresponding button.

P.S. I'm redoing a large part of the button code for beta 7 so these changes to fix italic will have to be redone later so I won't do many tests just correcting the errors that arise regarding this fix.

Prettyboy099 15-08-2020 00:41

1 Attachment(s)
Thanks for ur hard work.....
I have checked with the script [ALL FIXES]. Problem has been fixed at all places except -

Attachment 27701

Cesar82 15-08-2020 15:57

1 Attachment(s)
@Prettyboy099
Corrected the default value of the OneLiner key for SmallInstaller buttons to True (It was wrong).
If possible, test attached script in your project with SmallInstaller.
You will need to add the key OneLiner = 0 in the [SmallMusicButom] section to display the button text on two lines.
Check if the SmallMusicButtom button error continues with error and let me know.

Prettyboy099 15-08-2020 19:48

Thanks, now there is no cutting end..

Snake288 16-08-2020 09:32

Hi Pretyboy099
Hi Cesar82

Need For Speed The Run (Autorun.exe) does not open, gives an error warning

https://i.hizliresim.com/PEzpRy.jpg

Prettyboy099 16-08-2020 09:54

Well, I may have made mistake.. I send an recompiled version via PM..

Snake288 16-08-2020 10:21

I keep getting the same error

Cesar82 16-08-2020 13:52

1 Attachment(s)
Quote:

Originally Posted by Snake288 (Post 487442)
Hi Pretyboy099
Hi Cesar82

Need For Speed The Run (Autorun.exe) does not open, gives an error warning

https://i.hizliresim.com/PEzpRy.jpg

@Prettyboy099
I am analyzing this, but here it seems to work perfectly.
At least with the old source of your project.

For it to work you cannot change the name of the scripts of this format like:
InstallerScript_?.?.?.?.?? [????.??.??]*.iss
Not change the version within the script (Like "3.0.0.1.b6"), or change in both scripts before compile both exes.
Preferably both scripts (AutorunScript / SetupScript) must have the same date, or the most current script will always be read.

P.S: Autorun icon is optional if using different icon (not required)

Do the following...
Delete or move all scripts from the source code folders of your conversion.
Extract the attachment files to the source folder.
Compile both script files.
If the error persists, let me know.

Snake288 16-08-2020 14:15

Hi Cesar82
 
Hi Cesar82

I keep getting the same error

https://i.imgyukle.com/2020/08/17/uNisB1.jpg

Snake288 16-08-2020 14:58

Hi Cesar82

I keep getting the same error

Snake288 16-08-2020 15:27

Hi Cesar82

I keep getting the same error

https://i.imgyukle.com/2020/08/17/uNmDJc.jpg

mausschieber 16-08-2020 16:04

Quote:

Originally Posted by Cesar82 (Post 487453)
Attachment 01
I compiled the source code files here.
It's working here. Check if it worked there.

Attachment 02
I also added the scripts with the file check removed, for you to test.
So I will know if the error is in that function.
Move the original scripts from the folder before compiling these scripts.
Compile both script files again.

here it work also fine
i compiled the autorun script and it work

Cesar82 16-08-2020 16:18

1 Attachment(s)
Quote:

Originally Posted by Snake288 (Post 487454)
Hi Cesar82

I keep getting the same error

Does it answer me if running the Setup.exe directly displays the autorun page or not?

I attached 2 autorun scripts for testing.
Remove the previous script from the location before compiling.
Test both scripts by including only one at a time in the source code folder.

Snake288 16-08-2020 20:01

Hi Cesar82

Thank you very much working


https://i.imgyukle.com/2020/08/17/uNtaIH.jpg

happy result

Cesar82 16-08-2020 20:11

Quote:

Originally Posted by Snake288 (Post 487459)
Hi Cesar82

Thank you very much working
happy result

Could you tell me which of the 2 scripts (Last Post) worked, or if both worked?


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

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