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 09-02-2024 07:46

Quote:

Originally Posted by K4miKaZe (Post 503571)
So i might have found a long standing bug (or maybe im just too dumb to make it work xD). It's about the [CustomIniFile] section. To make it simple, i've used a copy paste from the CIU Documentation to test it out and the Value entry never got applied to the .ini file, it always put into Value the path and .ini name instead.

Setup.ini:
Code:

{app}\IniFile3.ini; Section: Settings; Key: Language; Create: 1; Value: EN=english|ES=Spanish|FR=French|DE=German
After installation the IniFile3.ini is created, the section also is created inside the .ini and the Key also works too. But the Value returns the path instead of the value.

IniFile3.ini created by CIU after install:
Code:

[Settings]
Language={app}\IniFile3.ini

I've tried out a few diff ways on the .ini but none worked, so i took a look into the .iss file and found this:

Code:

          begin
            if FileExists(IniName) or (StrToIntDef(LineDecode(TmpStr, 'Create', '0'), 0) = 1) then
            begin
              IniValue := LineDecode(TmpStr, '', '');

And changed it to this:

Code:

IniValue := LineDecode(TmpStr, 'Value', '');
On the setup.ini now its working fine, just needs to remove the spacing between Value: and the value, like this:

Code:

{app}\IniFile3.ini; Section: Settings; Key: Language; Create: 1; Value:EN=english|ES=Spanish|FR=French|DE=German
Not sure if this was intended on the .iss and i'm just using a wrong string on the setup.ini. I just leave it here if you want to take a look into it.

Regards !!!

Thank you for the informations.

It really is wrong and the solution is the same.
Maybe including something to remove the first space in the value if it exists would be interesting.

K4miKaZe 09-02-2024 12:08

Quote:

Originally Posted by Cesar82 (Post 503575)
Thank you for the informations.

It really is wrong and the solution is the same.
Maybe including something to remove the first space in the value if it exists would be interesting.

Yeah, that should be easy now, i just leaved it that way because i was too tired yesterday to keep looking. Will take a look in a few and update this message with the full code change. I'm still testing out the new CIU, lot of things have changed since 2020.

Thank's to you for keeping this up !!!

EDIT:

So seems like adding Trim to the LineDecode was enough to fix the spacing issue. I've done some tests and all went fine. 1st test was to just let CIU make a clean .ini with the language feature, second test was letting CIU modify an existent .ini to replace the value with the language feature and another test to add custom values without the language feature. All went fine. So here is the original code on the latest beta hf2 (from december) and the only little change i made to it.

Original:
Code:

          begin
            if FileExists(IniName) or (StrToIntDef(LineDecode(TmpStr, 'Create', '0'), 0) = 1) then
            begin
              IniValue := LineDecode(TmpStr, '', '');
              if (IniValue = '') or ((Pos('=', IniValue) > 0) and (Pos('|', IniValue) > 0) and (Pos(LowerCase(ActLangShort + '='), LowerCase(IniValue)) = 0)) then

Modified (marked in red):

Code:

          begin
            if FileExists(IniName) or (StrToIntDef(LineDecode(TmpStr, 'Create', '0'), 0) = 1) then
            begin
              IniValue := Trim(LineDecode(TmpStr, 'Value', ''));
              if (IniValue = '') or ((Pos('=', IniValue) > 0) and (Pos('|', IniValue) > 0) and (Pos(LowerCase(ActLangShort + '='), LowerCase(IniValue)) = 0)) then


nachitoponce1419 21-03-2024 02:53

Hello and how can I add images to the installer?

mausschieber 21-03-2024 06:47

Quote:

Originally Posted by nachitoponce1419 (Post 503930)
Hello and how can I add images to the installer?

in Folder Setup/Background

nachitoponce1419 21-03-2024 10:00

thank you

nachitoponce1419 21-03-2024 10:08

What BMP jpg format and size does it accept?

mausschieber 21-03-2024 16:46

Quote:

Originally Posted by nachitoponce1419 (Post 503935)
What BMP jpg format and size does it accept?

yes Look in the Setup Folder there is all you need

nachitoponce1419 22-03-2024 02:14

Thank you, I left it as impossible, I will continue with the Light Installer Scrip, which is easier

Cesar82 13-08-2024 18:34

C.I.U. 3.0.0.1 (Final)
 
1 Attachment(s)
Code:

- Updated CIULib.dll library to v1.0.0.2 build 240404.
- Updated CIU script support for DiskSpan GUI 2.0.2.1+
- Updated CIU_Tools to build 240810, updated help documentation files.
- Updated internal DXFilters files (LAV Filter 0.79.2 and VSFilter.dll 3.2.0.810).
- Updated (redone) translation of SpanishES, SpanishMX (@K4miKaZe) language files.
- Fixed bugs when using the [CustomIniFile] section that inserted the wrong value in the key.
- Fixed an information error in the hash check results label that showed wrong values after completion.
- Added new flag template number 27 (square flag template based on the old rectangular template number 12).
- Added support for new image "NotifyBallon.png" for custom notification ballon.
  >> It also supports optional "NotifyBallon.bmp" image to define the transparent area.
- Added new section [NotifyBallon] with several keys to the "Setup.ini" file.
  >> See the help file for more details on supported keys in [NotifyBallon] section.
- Added support to flags "uninsclearvalue", "uninsdeletekey", "uninsdeletekeyifempty" and "uninsdeletevalue" in [Registry] section.
  >> If you do not specify any uninstallation flag, the key or value will not be changed.
- Added new parameter "Algo:<valkue>;" in the key HashFile#= of the [HashSettings] section of the "Setup.ini" file.
  >> If you use "Records.ini" to configure hash checking you can use the Size= key to inform the type of algorithm.
  >> If algorithm parameter exists, CIU will use the "VerifyHashesFromFileEx" function from "XHashEx.dll", otherwise it will use the "VerifyHashesAutoFromFileEx" function.
  >> If you enter the type of algorithm you will have 21 algorithm options to use, otherwise you will have 5 algorithm options to use.
    Example: HashFile#={src}\HashFile.dat; DestDir:{app}; Algo:crc32; Comp:1,3; Lang:EN,DE; Task:3;
    ** crc32, md5, sha1, sha256, sha512 (These 5 algorithm are supported in auto mode).
    ** sha512_256, sha3_256, sha3_512, blake2_128, Blake2_256, blake3_256, haval3_128, haval3_256,
    ** ripemd_128, ripemd_256, tiger_128, tiger_192, tiger2_128, tiger2_192, murmurhash_32, xxhash_32
  >> If you prefer, you can also enter just the algorithm number from "0" to "21' in the parameter value.
  >> Now the HashFile#= key can also be used even if you use external compression mode (Even if you have the Records.ini file).
- Added new key StartCheck= to [HashSettings] section of the external "Setup.ini" file.
- Added new key FasterCheck= to [HashSettings] section of the "Setup.ini" file and also the external "Setup.ini" file.
  >> If you use the value 1 in this key during the hash check, the button image fade/transition update timer and the equalizer animation timers will be disabled.
  >> This feature, if enabled, will reduce hash checking time by almost half.
- Added support to include compressor inside Setup.exe file.
  >> Add the compressors to a "DECOMPRESSOR" folder next to the script before compiling to include the desired compressors within "Setup.exe" file.
  >> It also supports using folder structure with desired compressors.
- Added localized Name<LNG>= keys in [Component#], [Task#] and [Executable#] sections.
  >> The Name= key is required to validate task or components page or validate executable file.


demon964 14-08-2024 10:15

script functions very well but design very ugly, can i change total?

KaktoR 14-08-2024 10:36

Yes

fabrieunko 26-12-2024 22:38

hello, I'm trying my hand with this installer but it's still more complex to understand.
in the example provided with in the autorun we have at the bottom of the screen 5 icons (eidos montreal, crystal dunamics, square enix, custom installer v3, and cesar82) how to remove them?

there is also on the left part (open, open 2, flags folder, english us) how to remove them too?

Cesar82 27-12-2024 01:56

Quote:

Originally Posted by fabrieunko (Post 506533)
hello, I'm trying my hand with this installer but it's still more complex to understand.
in the example provided with in the autorun we have at the bottom of the screen 5 icons (eidos montreal, crystal dunamics, square enix, custom installer v3, and cesar82) how to remove them?

there is also on the left part (open, open 2, flags folder, english us) how to remove them too?

Remove the corresponding [Play#Button] sections and [Open#Button] and [Website#Button] sections from the Setup.ini file and recompile the script.

fabrieunko 27-12-2024 09:02

hello, I have one more question, I created an Exit.png button it appears well but how do I center the text on the button?

https://img.intoxzone.me/images/2024...2e908a6b65.jpg

KaktoR 27-12-2024 09:42

Code:

Alignment=center
I suggest to use a fresh Setup.ini with all possible options.


All times are GMT -7. The time now is 07:45.

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