Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #886  
Old 09-02-2024, 08:46
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,028
Thanks: 1,740
Thanked 2,201 Times in 752 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by K4miKaZe View Post
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.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
K4miKaZe (09-02-2024)
Sponsored Links
  #887  
Old 09-02-2024, 13:08
K4miKaZe's Avatar
K4miKaZe K4miKaZe is offline
Registered User
 
Join Date: Sep 2018
Location: Spain
Posts: 146
Thanks: 177
Thanked 234 Times in 84 Posts
K4miKaZe is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
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

Last edited by K4miKaZe; 09-02-2024 at 16:31.
Reply With Quote
The Following User Says Thank You to K4miKaZe For This Useful Post:
Cesar82 (09-02-2024)
  #888  
Old 21-03-2024, 03:53
nachitoponce1419 nachitoponce1419 is offline
Registered User
 
Join Date: Jun 2023
Location: spanish
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
nachitoponce1419 is on a distinguished road
Hello and how can I add images to the installer?
Reply With Quote
  #889  
Old 21-03-2024, 07:47
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 3,689
Thanks: 5,800
Thanked 10,305 Times in 2,729 Posts
mausschieber is on a distinguished road
Quote:
Originally Posted by nachitoponce1419 View Post
Hello and how can I add images to the installer?
in Folder Setup/Background
__________________
It would be nice if you appreciate my work with the thanks Button
Reply With Quote
  #890  
Old 21-03-2024, 11:00
nachitoponce1419 nachitoponce1419 is offline
Registered User
 
Join Date: Jun 2023
Location: spanish
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
nachitoponce1419 is on a distinguished road
thank you
Reply With Quote
  #891  
Old 21-03-2024, 11:08
nachitoponce1419 nachitoponce1419 is offline
Registered User
 
Join Date: Jun 2023
Location: spanish
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
nachitoponce1419 is on a distinguished road
What BMP jpg format and size does it accept?
Reply With Quote
  #892  
Old 21-03-2024, 17:46
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 3,689
Thanks: 5,800
Thanked 10,305 Times in 2,729 Posts
mausschieber is on a distinguished road
Quote:
Originally Posted by nachitoponce1419 View Post
What BMP jpg format and size does it accept?
yes Look in the Setup Folder there is all you need
__________________
It would be nice if you appreciate my work with the thanks Button
Reply With Quote
  #893  
Old 22-03-2024, 03:14
nachitoponce1419 nachitoponce1419 is offline
Registered User
 
Join Date: Jun 2023
Location: spanish
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
nachitoponce1419 is on a distinguished road
Thank you, I left it as impossible, I will continue with the Light Installer Scrip, which is easier
Reply With Quote
  #894  
Old 13-08-2024, 19:34
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,028
Thanks: 1,740
Thanked 2,201 Times in 752 Posts
Cesar82 is on a distinguished road
C.I.U. 3.0.0.1 (Final)

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.
Attached Files
File Type: 7z CIU 3.0.0.1 (2024.08.10).7z (51.88 MB, 38 views)

Last edited by Cesar82; 13-08-2024 at 19:42.
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
Lord.Freddy (13-08-2024), mausschieber (14-08-2024), sajmon83 (14-08-2024)
  #895  
Old 14-08-2024, 11:15
demon964 demon964 is offline
Registered User
 
Join Date: Feb 2014
Location: Azerbaijan
Posts: 35
Thanks: 3
Thanked 7 Times in 5 Posts
demon964 is on a distinguished road
script functions very well but design very ugly, can i change total?
Reply With Quote
  #896  
Old 14-08-2024, 11:36
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,414
Thanks: 1,078
Thanked 7,026 Times in 2,659 Posts
KaktoR is on a distinguished road
Yes
__________________
Haters gonna hate
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05
[GSERIES] Custom Installer Ultimate V2g Gupta Conversion Tutorials 226 01-06-2018 14:12
Crysis 3 DVD9 to 3xDVD5 Custom Installer spawniectes PC Games - CD/DVD Conversions 79 31-08-2017 08:19



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


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