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)

KaktoR 01-08-2023 07:14

Code:

B9 UPDATE 5:
- Updated BASS.dll from v2.4.16.7 to v2.4.17.0
- Updated CIU_Tools to build 230730, updated help files.
- Updated XHashEx.dll library to v1.0.0.0 build 230729 no UPX version.
- Updated (redone) translation of ChineseS, ChineseT (@wangfeilong0317) and Romanian (@andreiutzu21) language files.
- Fixed bug where Hash page would not enable.
- Fixed the ChineseS and ChineseT language flags (the images of the flags were inverted).
- Fixed bug on click in next button on maintenance page when selecting "Reinstall" option.
- Fixed Registrer, Unregister, Play game from Autorun installer page for UWP games that contain Wildcard characters like "[", "]", etc in the installation path.
- Fixed not to display decimal point in space required labels on Components, Tasks and SelectDir pages when values are integers.
- Fixed getting the correct VRAM value on some laptops (Value is now read from Windows registry).
  >> After this correction, VRAM may not be correctly detected when using graphics cards in SLI/Crosfire.
- Changed name of key OnlyLabel= to OnlyLabelClick= (It is necessary that the label is being displayed).
  >> This key only serves to disable the click outside the label area even if it is inside the button image area.
- Changed name of the key Exe= to ExeFile= in [Executable#] section.
- Changed name of the key Icon= to IconFile= in [Executable#] section.
- Added new key IconIndex= to [Executable#] section to choice index image if IconFile= is a executable file.
- Added new key ShowMaintenanceAlways= in [InterfaceSettings] section.
  >> This option is active by default, but if you use value 0, when you run "Setup.exe" after all components or tasks are already installed.
  >> It will not display the maintenance page, displaying the uninstall page directly.
- Added new "Repair" option on maintenance page that allows to re-install previously installed items.
- Added new key ShowImage= in all buttons sections and group buttons section.
  >> If use value 0 in this key disable the loading of the button image loading a transparent image (It is necessary that the label is being displayed).
- Added new key Language= to the [Component#] section.
  >> The corresponding item will be disabled if the key value does not match.
- Added new keys Component= and Language= to the [Task#] section.
  >> The corresponding item will be disabled if the key value does not match.
- Added new keys Component=, Task= and Language= to the [Launch#] section.
  >> The corresponding item will be disabled if the key value does not match.
- Added new keys Component=, Task= and Language= to the [Executable#] section.
  >> These 3 new keys will be analyzed and the creation of shortcuts or AddToGameExplorer will only be done for the executable that matches the key information.
  >> After installed, only the play buttons will be shown on the autorun page that match with information about components, tasks and language.
- Added new key CreateShortcut= to the [Executable#] section.
  >> This key allows you to deactivate the creation of shortcuts for the executable of the current section.
  >> This will allow you to attach a Play button to the executable that the shortcut will be created on.
- Added support for new Edit.bmp image to delimit the OnMouse access area when using DirectoryEditOnMouse=1.
- Added support for hexadecimal result using "0x" in GetLangNR function like below:
  >> Example to english language use GetLangNR('0x') to return hexadecimal format 0x409, GetLangNR('$') to return hexadecimal format $409 or GetLangNR('') to return decimal value 1033.
- Removed key Type= from [Play#Button] sections.
  >> Now the "Type" information will be inherited from the [Executable#] section appended from the ExecutableID= key in the [Play#Button] sections.

Thanks to César

Cesar82 18-09-2023 17:52

CIU 3.0.0.1.b9.u5 (Hotfix 1 & 2)
 
2 Attachment(s)
CIU_3.0.0.1.b9.u5 hotfix 1 fixes a compilation error that locks the compiler in preprocessing mode when using more than 1 executables in INTERNAL mode (mode without Setup.bin).
The same error also compromised the use of PNG images as icons in UWP games.
Thanks to user @mausschieber for reporting the bug.

EDIT:
CIU_3.0.0.1.b9.u5 hotfix 2 fixes some errors related to the [CMDCommands] section of Setup.ini.

KaktoR 30-12-2023 09:35

Commenting to let you know that a fix was shared :D

K4miKaZe 27-01-2024 18:44

Hi guys, after some long time i came back and wanted to start all over again with CIU. So i got the latest xx.b9 version from the first post and the hf2. Everything was turning great till i was testing the installer. Besides that i couldn't get hash to work like on old version were i manually put the .md5 (i solved this by just using the diskspan option) i had a problem with the Executable entry to create a desktop shortcut. I've been struggling for the last hour trying to fix it and got it working. It's actually an error on the setup.ini that comes with the CIU package, the Executable1 entry is named to Executable_1 (it shouldnt have the _). Just to let you know, in case anyone else starts over with the default setup.ini that comes with CIU.

Regards !!!

PD: Also thank's KaktoR and Cesar for keeping working on CIU, you guys are amazing as always.

EDIT 2:

Also i found this two strings not translated in the SpanishES.txt file, i corrected them myself but will share them here too:

Code:

CreateDesktopIcon=Crear acceso directo en el escritorio
OptimalInstallation=Instalación óptima (Más rápido)

And changed an already translated one from
DiskSpaceGBLabel=Setup requiere [size] en:
to
DiskSpaceGBLabel=La instalación requiere [size] en:

That's for the SpanishES but should be fine for the MX too


K4miKaZe 08-02-2024 18:50

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 !!!

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.

fabrieunko 29-12-2024 10:11

Hello I have another question. for webSite2button images. is it possible to make it non-clickable?
I tried to remove site= but the button disappears

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

how to create a new setup.ini?

Cesar82 29-12-2024 13:02

1 Attachment(s)
Quote:

Originally Posted by fabrieunko (Post 506545)
Hello I have another question. for webSite2button images. is it possible to make it non-clickable?
I tried to remove site= but the button disappears

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

how to create a new setup.ini?

See attached video file.

fabrieunko 10-01-2025 21:36

hello, can you help me? I have the button to close the installer which looks like these. but when I hover over it there is the white cross and the square which is detected to be clicked the space between the two remains inactive. how to make the transparent part selectable?
https://img.intoxzone.me/images/2025...357fc04b92.png

mausschieber 11-01-2025 05:34

1 Attachment(s)
Quote:

Originally Posted by fabrieunko (Post 506573)
hello, can you help me? I have the button to close the installer which looks like these. but when I hover over it there is the white cross and the square which is detected to be clicked the space between the two remains inactive. how to make the transparent part selectable?
https://img.intoxzone.me/images/2025...357fc04b92.png

you have to use closeARButton .png and CloseARSelectedButton.png
also you can use the CIU_Tools with the MaskTab or Equalisertab for the Settings

Code:

[CloseButton]
------------------------------------------------------- Setup\Close.png \ CloseSelected.png \ CloseClicked.png \ CloseDisabled.png \ Close.bmp
Left=840
Top=38
Width=24
Height=24
Visible=1


KaktoR 12-01-2025 01:38

Wrong topic!

fabrieunko 19-01-2025 02:31

Hello, I'm improving every day thanks to you, but I still have a little question.
in my installation I have a button UnInstall.png\UnInstallSelected.png and
WebSite1.png \ WebSite1Selected.png

I created the masks with the ciu tools (standard and selected) in auto mode and or 100%

the uninstall.png button is on the left the website button in the middle of the image both on the same line

but I have the same result when I put the mouse on website.png it selects the two buttons. to overcome this problem I add in the setup.ini the line

OnlyLabelClick=1

and it works much better except that the selection is made if I point the mouse on the install text and not on the uninstall.png button
and I would like the selection to face when the mouse pointer hovers over the button. but how to do it?

Cesar82 20-01-2025 18:33

Quote:

Originally Posted by fabrieunko (Post 506629)
Hello, I'm improving every day thanks to you, but I still have a little question.
in my installation I have a button UnInstall.png\UnInstallSelected.png and
WebSite1.png \ WebSite1Selected.png

I created the masks with the ciu tools (standard and selected) in auto mode and or 100%

the uninstall.png button is on the left the website button in the middle of the image both on the same line

but I have the same result when I put the mouse on website.png it selects the two buttons. to overcome this problem I add in the setup.ini the line

OnlyLabelClick=1

and it works much better except that the selection is made if I point the mouse on the install text and not on the uninstall.png button
and I would like the selection to face when the mouse pointer hovers over the button. but how to do it?

If your button is rectangular, you don't need to use click masks.

fabrieunko 22-01-2025 10:24

Good morning ,
can you tell me if the UNPACKER function of CIU Tools works? because I try on my Setup.bin but I get an error message.

Created by Cesar82, based on pckr protecty library by altef_4.
Compatible with CIU v3 version: 3.0.0.1

----------------------------------------------------------------------------------------------------------------------------------
Unpacking Setup.bin file, Please Wait...
----------------------------------------------------------------------------------------------------------------------------------
ERROR: general pckr error.

mausschieber 22-01-2025 13:15

1 Attachment(s)
Quote:

Originally Posted by fabrieunko (Post 506646)
Good morning ,
can you tell me if the UNPACKER function of CIU Tools works? because I try on my Setup.bin but I get an error message.

Created by Cesar82, based on pckr protecty library by altef_4.
Compatible with CIU v3 version: 3.0.0.1

----------------------------------------------------------------------------------------------------------------------------------
Unpacking Setup.bin file, Please Wait...
----------------------------------------------------------------------------------------------------------------------------------
ERROR: general pckr error.

here it works with or without Password
you have to use the external Checkbox push compress setup.exe and when done Push the Compress setup.bin Button

so I packing my setup.bin with an Password when i will unpack it i put the password in the Field load the Setup.bin file an then push the extrackt Setup.bin Button.

there is also an Help file Push the Right mousebutton over the title with right klick to the Helpfile

fabrieunko 22-01-2025 21:54

Hello, I just understood. you must choose in compression: none for decompression to work
if you choose a compression mode it does not work.

mausschieber 23-01-2025 05:45

1 Attachment(s)
Quote:

Originally Posted by fabrieunko (Post 506650)
Hello, I just understood. you must choose in compression: none for decompression to work
if you choose a compression mode it does not work.

Here is a Video

fabrieunko 23-01-2025 09:00

I did the same thing at mi and it didn't work. watch the video (file attached)

https://mega.nz/file/dRIG3TSa#YVl8kg...x3Pz4cKitruLzM

mausschieber 23-01-2025 11:49

Quote:

Originally Posted by fabrieunko (Post 506654)
I did the same thing at mi and it didn't work. watch the video (file attached)

https://mega.nz/file/dRIG3TSa#YVl8kg...x3Pz4cKitruLzM

you using the wrong Script
my is InstallerScript_3.0.0.1 [2024.11.14].iss
yours is InstallerScript_3.0.0.1 [2024.08.10].iss
i think thats the problem and i think Cesar82 forgot to share CIU 3.0.0.1 (2024.11.14)


I PM you

fabrieunko 23-01-2025 22:55

Thank you very much, this actually works better. thank you very much for your help

fabrieunko 03-02-2025 04:17

Hello, I'm coming back to you again because I still have a problem.

I played several games and everything worked fine, until this morning when I wanted to play another one. but this time I have a box unchecked and I can't check it.this is the create a shortcut box on the desktop

see the photo.

https://img.intoxzone.me/images/2025...4b0b0bac5b.png

mausschieber 03-02-2025 05:18

Quote:

Originally Posted by fabrieunko (Post 506744)
Hello, I'm coming back to you again because I still have a problem.

I played several games and everything worked fine, until this morning when I wanted to play another one. but this time I have a box unchecked and I can't check it.this is the create a shortcut box on the desktop

see the photo.

https://img.intoxzone.me/images/2025...4b0b0bac5b.png

check your setup.ini there is an error somewhere it also happened to me when copying and pasting

fabrieunko 06-02-2025 06:41

Hello, I am coming back to you once again because I have another problem (all the others have been solved thanks to you).
This is about the progress bar.
I have the progress bar with the percentage that is displayed when I install a game.
I have the progress bar with the percentage that is displayed when checking the files.
But when uninstalling the game, I only have the percentages I don't have the progress bar.
I have the frame around it but only that.

for the progress bar I use the following two images:

ProgressBackground.png AND ProgressImg.png

https://img.intoxzone.me/images/2025...e6a9b3106f.png
https://img.intoxzone.me/images/2025...096a2be39b.png

mausschieber 06-02-2025 07:50

Quote:

Originally Posted by fabrieunko (Post 506781)
Hello, I am coming back to you once again because I have another problem (all the others have been solved thanks to you).
This is about the progress bar.
I have the progress bar with the percentage that is displayed when I install a game.
I have the progress bar with the percentage that is displayed when checking the files.
But when uninstalling the game, I only have the percentages I don't have the progress bar.
I have the frame around it but only that.

for the progress bar I use the following two images:

ProgressBackground.png AND ProgressImg.png

https://img.intoxzone.me/images/2025...e6a9b3106f.png
https://img.intoxzone.me/images/2025...096a2be39b.png

i think this sold solve this if not i don't know
Code:

[ProgressBarSI]
------------------------------------------------------- Setup\ProgressBackgroundSI.png \ ProgressBackground2SI.png \ProgressImgSI.png
Left=40
Top=200
Width=520
Height=16
SendToBack=1


mausschieber 23-04-2026 00:48

Hi Guys
have anyone forgotten to upload the new Script from CIU 3.0.0.2 (2026.02.15)
i cant find him. Can someone upload it?
thanks

KaktoR 23-04-2026 08:45

The latest I have is 3.0.0.2 (2026.02.14)


All times are GMT -7. The time now is 15:24.

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