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)

Proxson 11-12-2019 17:34

Quote:

Originally Posted by Cesar82 (Post 483815)
In which part of the script?

Man, you're confusing me. I'm not a inno-script pro ! :p ;)

Well, during the uninstalling process. I want a folder, created by the game, vanish from Saved Games folder. Btw, I'm using Win7 and the path is:

C:\Users\My Name\Saved Games\Metro Exodus

Sorry I know, I'm a pain in da ass. I suffer from perfectionism OCD, btw. It's nasty :o

Edit: I sorted it out in Setup.ini --> SaveGameFolder3=C:\Users\{username}\Saved Games\Metro Exodus ...aaaand the folder is gonsky ! I'm happy with it. Well, the only problem is
where Metro Exodus dumps this save game folder in Win10.

@Cesar m8, your priority is to fix the registry issue ! :D

Btw, Metro Exodus creats 3 folders and 2 registry entries during the first launch:

1. My Documents --> 4A Games
2. Users\Username\Appdata\Roaming --> CPY_Saves (ermmm...cough)
3. Users\Username\Saved Games --> Metro Exodus

Registry:

1. HKEY_CURRENT_USER\Software\4A-Games
2. HKEY_USERS\S-1-5-21-1998757662-2675839664-690416582-1000\Software\4A-Games

Cesar82 12-12-2019 01:32

Quote:

Originally Posted by Proxson (Post 483817)
Man, you're confusing me. I'm not a inno-script pro ! :p ;)

Well, during the uninstalling process. I want a folder, created by the game, vanish from Saved Games folder. Btw, I'm using Win7 and the path is:

C:\Users\My Name\Saved Games\Metro Exodus

Sorry I know, I'm a pain in da ass. I suffer from perfectionism OCD, btw. It's nasty :o

Edit: I sorted it out in Setup.ini --> SaveGameFolder3=C:\Users\{username}\Saved Games\Metro Exodus ...aaaand the folder is gonsky ! I'm happy with it. Well, the only problem is
where Metro Exodus dumps this save game folder in Win10.

@Cesar m8, your priority is to fix the registry issue ! :D

Btw, Metro Exodus creats 3 folders and 2 registry entries during the first launch:

1. My Documents --> 4A Games
2. Users\Username\Appdata\Roaming --> CPY_Saves (ermmm...cough)
3. Users\Username\Saved Games --> Metro Exodus

Registry:

1. HKEY_CURRENT_USER\Software\4A-Games
2. HKEY_USERS\S-1-5-21-1998757662-2675839664-690416582-1000\Software\4A-Games

The registry entries for work well for me.

To remove the save folder inside the Saved Games folder using the key SaveGameFolder#= use {sd} to set a system drive:
SaveGameFolder3={sd}\Users\{username}\Saved Games\Metro Exodus

I will include a constant {savedgames} in the next CIU update.
If you want to change it in the current CIU script the text in red color.
Code:

function GetSavedGameFolder: String;
begin
  Result := ExpandConstant('{userdocs}\My Games');
  RegQueryStringValue(HKEY_CURRENT_USER, 'Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders', '{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}', Result);
end;


function UpdateConstant(Current: String) : String;
begin
  Result := Current;
  if UninstallMode then
    StringChangeEx(Result, '{app}', UninstallPath, True)
  else
    StringChangeEx(Result, '{app}', WizardForm.DirEdit.Text, True);
  StringChangeEx(Result, '{savedgames}', GetSavedGameFolder, True);
  StringChangeEx(Result, '{win}', ExpandConstant('{win}'), True);
  StringChangeEx(Result, '{sys}', ExpandConstant('{sys}'), True);
  ...///The code goes on...

After code changed, use SaveGameFolder3={savedgames}\Metro Exodus

Proxson 12-12-2019 07:21

Great ! That makes things easier. Thanks ! :D

Btw, regarding registry. Yes, it works but as long as the subkey is empty, the uninstaller will delete it. But if it's not empty, it will remain.
Where is the switch in the script to make registry entries uninstall whether they're empty or not ?
Thanks mate for your work !

KaktoR 14-12-2019 10:03

Will be released soon after some testing. Just letting you know.

Code:

----------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------
CHANGELOG CIU 3.0.0.0.u7
----------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------
- Changed "ISDone.dll" to "ISDone 0.6 final - for FreeArc Alpha 2012" (2012-09-27).
- Removed "DLZ" compressor from CIU, because it's no longer needed.

- Updated decompressor RAR (UnRAR.dll) from v5.21 to v5.80
- Updated compressor/decompressor "ZStandard" from v1.43 to v1.44 (x64 + x86).
- Updated decompressor pZLib3 from v3.0.1 to v3.2.0 (Final release)
  >> Now pzLib3 supports DUAL mode for 32 or 64 bit operating systems.

- Fixed conflicts between all current compressors (Thanks to Simorq for help).
  >> It is now possible to activate all compressors (not recommended) without conflicting, but probably the compression will get worse.

- Added Ultra HD compatibility functionality (Resolutions above Full HD).
  >> When booting the installer verifies that the monitor's vertical resolution is greater than 1080.
  >> If true, it inserts compatibility information into the registry and automatically relaunches a new instance of the installer closing the original instance.
  >> If this compatibility mode has been used the installer will clear the registry information upon termination.

- Changed the key name of Exe64Path= to ExePath64= in [Executable#] sections (now use 64 always at the end of all compatibles keys).
- Changed sections name from [Title] to [PageTitle] and also [BigTitle] to [PageBigTitle].
- Changed alignment of the directory selection form (SelectFolderForm) to align with the installer center.
- Changed the text of the welcome page by removing unnecessary information by slightly decreasing the lag in the eastern languages on this page.

- Added new keys WorkDir= and WorkDir64= keys in the [Executable#] sections.
  >> The keys WorkDir= or WorkDir64= determine the "Start In" directory (Work Dir) of executable shortcut.
  >> Use the value "\" in the key WorkDir= or WorkDir64= to display the value as "{app}\<ExePath>\" with backslash at the end.

- Added some new keys in the [Executable#] section for additional information for GOG or UWP installers.
  >> For information about the new keys see the file "_Setup.ini" from the "Help" folder.

- Fixed BigTitle label display on installer pages (Before was not visible).
- Fixed some errors when using commented lines after key value in creator mode.
- Fixed unknown constant "usersendto" error when using Inno Setup version 5.59 or older.
- Fixed some bugs related to removing keys from the registry where subkeys have constants.

- Fixed the size of the installer window by moving to the top leading off the screen.
  > Prior to this fix, this action changes the height of the installer, and the buttons/labels disappear from the installer.

- Fixed SelectDirBrowseLabel position for when using negative values for MoveDirectoryInfo= key so that Edit does not overlap the label.
  >> SelectDirBrowseLabel now vents together to the top when using negative values on the MoveDirectoryInfo = key.

- Added new constant {savedgames} in keys SaveGameFolder#= to inform correct save game folder as "C:\Users\%username%\Saved Games".

- Added new key FirstBGImage= in all [Component#] sections.
  >> This functionality lets you specify the first slide show image for each component.
  >> When the component is not selected, images from the corresponding component key value to the next component key value will not be displayed in the slideshow.

- Added new key CenterInstaller= in [InterfaceSettings] section, default value is 1.
  >> This key allows you to center the screen or display the installer where the autorun page was.

- Missing documentation added to supported functions for use in the "Registry.iss" file as string parametter.
  >> To know the values returned for each language, see InstallerScript na função "AddLanguageByName".
  {code:GetAppName}                  >> Return GameName according to the installation language from "Setup.ini" [InstallOptions]/ApplicationName<LNG>=/ApplicationName=
  {code:GetAppPublisher}              >> Return Publisher of the game from "Setup.ini" [InstallOptions]/Publisher=
  {code:GetMyAppExeName}              >> Return first executable name from "Setup.ini" [Executable1]/Exe= or [Executable1]/Exe64= if the system is 64-bit and the game has 64-bit executable.
  {code:GetMyAppExeName|<INDEX>}      >> Return the executable name corresponding to index from "Setup.ini" [Executable<INDEX>]/Exe= or [Executable1]/Exe64= if the system is 64-bit and the game has 64-bit executable.
  {code:GetMyAppExePath}              >> Return first path name from "Setup.ini" [Executable1]/ExePath= or [Executable1]/ExePath64= if the system is 64-bit and the game has 64-bit path.
  {code:GetMyAppExePath|<INDEX>}      >> Return the path name corresponding to index from "Setup.ini" [Executable<INDEX>]/ExePath= or [Executable1]/ExePath64= if the system is 64-bit and the game has 64-bit path.
  {code:GetGameVersion}              >> Return Version of the game from "Setup.ini" [InstallOptions]/GameVersion=
  {code:GetLangISO}                  >> Return ISO name of the selected language using "-". (en-US, es-ES, de-DE, etc)
  {code:GetLangISO|_}                >> Return ISO name of the selected language using "_". (en_US, es_ES, de_DE, etc)
  {code:GetLangISO|<DEFAULT>}        >> Return ISO name of the selected language. Return value with "_" if default value contain "_". (en-US, etc or en_US, etc)
  {code:GetLangFull}                  >> Return FULL name of the selected language. (English, Spanish, German, etc)
  {code:GetLangShort}                >> Return SHORT name of the selected language. (EN, ES, DE, etc)
  {code:GetLangShortLC}              >> Return SHORT name of the selected language in lowercase. (en, es, de, etc)
  {code:GetLangOld}                  >> Return OLD name of the selected language. (eng, esp, ger, etc)
  {code:GetLangOldUC}                >> Return OLD name of the selected language in uppercase. (ENG, ESP, GER, etc)
  {code:GetLangNR}                    >> Return decimal string of selected language UI. (1033, 1034, 1031, etc) 
  {code:GetLangNR|$}                  >> Return hexadecimal string of selected language UI. ($0409, $040a, $0407, etc)
  {code:GetLangNR|<DEFAULT>}          >> Return decimal/hexadecimal string of selected language UI. If default value contain "$", return hexadecimal. (1033, etc or $0409, etc)
  {code:GetSerialKey}                >> Return first SerialKey of the game from "EXTERNAL_Setup.ini" [InstallOptions]/Key1=
  {code:GetSerialKey|#}              >> Return SerialKey of the game from "EXTERNAL_Setup.ini" [InstallOptions]/Key#= 
  {code:GetSerialKey|<DEFAULT>}      >> Return first SerialKey of the game from "EXTERNAL_Setup.ini" [InstallOptions]/Key1= and if key empty return default value.
  {code:GetSerialKey|#,<DEFAULT>}    >> Return serial key from "EXTERNAL_Setup.ini" [InstallOptions]/Key#= and if key empty return default value.
  {code:UninstallShortcut}            >> Return the name of the uninstall shortcut in the current language followed by the name of the game as example: Uninstall My Game Name
  {code:GetSavedGameFolder}          >> Return the windows "Saved Games" folder as C:\Users\%username%\Saved Games if Windows XP return {userdocs}\My Games (expanded).
  {code:GetSavedGameFolder|<DEFAULT>} >> Return the windows "Saved Games" folder as C:\Users\%username%\Saved Games if Windows XP return <DEFAULT> value expanded.

Code:

_Tools update
-Added Game name to UltraArc Diskspan folder and ISO creation
  > Only for _DiskSpan.bat (single game)
-Added components for DiskSpan (_DiskSpan Components.bat)
  > Thanks to Cesar82
-Added cls-mpzmt (thanks to 78372)
-Added Inno Setup 6.0.3 Repack (Lite version)
  > This is needed for future CIU versions (v3.0.0.1 and above!)
-Updated Notepad++ to v7.8.2
-Updated some compressors and settings
-Removed DLZ
-Removed Too_lazy_to_copy_myself


andreiutzu21 14-12-2019 13:15

PFX and CER files extension
 
does anyone know how to get work in.setup.ini with these two files extension? name.pfx and name.cer there is a section in setup ini ? if it is can someone give me an example? these 2 files is for forza horizon 3 and if i install these 2 files in order DLC1 and DLC2 works. thanks in advice

pakrat2k2 14-12-2019 13:19

if those are just the normal dlc files, then they should be compressed with the game no need to have them specifically in setup.ini. Unless you mean that 'name' .pfx / .cer are for each game owner ...

Proxson 14-12-2019 13:48

2 Attachment(s)
It's me again ! :p

There is a tiny problem with UI in Win10. Black fonts on black background. Anyone else ?

And one more tiny problem. It's not showing the size in add/remove programs.

Cesar82 15-12-2019 07:03

Quote:

Originally Posted by Proxson (Post 483851)
It's me again ! :p

There is a tiny problem with UI in Win10. Black fonts on black background. Anyone else ?

And one more tiny problem. It's not showing the size in add/remove programs.

Thanks for reporting ...
This different window is probably displayed by DiskSpan, and then stays inside the DLL. Because it is displayed differently I can not explain. Maybe it's because ISDone DLL was created a long time ago with very old software (maybe) and the diskspan DLL is called by it.

As for the size not displayed... I am aware of this.
It would be easy to enter a key for i game size. but if using components this would have to be calculated depending on the component selected. This function will be included in version 3.0.0.1 (Remind me in the future).

GTX590 15-12-2019 08:01

I noticed 2 bugs in InstallerScript_3.0.0.0.u6:
1-Progress bar does'nt reach 100%. It's stuck at something like 70% but it doesn't affect installation process.
2-LogoAB2 in About page doesn't show no matter what value you put in Setup.ini.

Cesar82 15-12-2019 08:31

Quote:

Originally Posted by GTX590 (Post 483855)
I noticed 2 bugs in InstallerScript_3.0.0.0.u6:
1-Progress bar does'nt reach 100%. It's stuck at something like 70% but it doesn't affect installation process.
2-LogoAB2 in About page doesn't show no matter what value you put in Setup.ini.

The image you created from the progress bar should be smaller than necessary.

There are 2 options to fix this.
1) Use the old progressbar mode by setting value 1 on the Stretch keys of both progressbar sections.

2) This is the recommended mode. Use different images for each bar (ProgressImg.png, ProgressBackground.png) and (ProgressImgSI.png, ProgressBackgroundSI.png). For each bar create the image with the exact width of the value that is displayed on the label (xxx x xxx) when running in progressbar mode.


I don't know if this is so, but to display Logo2.png on the about page requires the value of the key SmallLogoOpacity= in [AboutSettings] to be greater than 0... to display 100% opaque use value 255 on this key.
In the CIU 3.0.0.0.u6 [2019.10.30] theme installer is normally displaying the "LogoAB2.png" logo which is in the "Setup\About" folder. (PS: The default logo in theme installer does not mark Yener90 vertically).

If you want you can send me a pm with your project that I check for you.

KaktoR 23-12-2019 07:29

New version added.

Code:

[14.12.2019]
-Added components for DiskSpan (_DiskSpan.bat)
  > Thanks to Cesar82
-Added cls-mpzmt (thanks to 78372)
-Added Inno Setup 6.0.3 Repack (Lite version)
  > This is needed for future CIU versions (v3.0.0.1 and above!)
-Updated Notepad++ to v7.8.2
-Updated some compressors and settings
-Removed DLZ
-Removed Too_lazy_to_copy_myself

Code:

----------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------
CHANGELOG CIU 3.0.0.0.u7
----------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------
- Changed the default value of the DirectoryEditMouseMove= key to value 0.
  >> Now if you want to display the actual Edit when hovering over it use the value 1 in this key.

- Fixed the correct label alignment position to the CheckAll checkbox that is next to the redist items (SelectDir Page)

- Added a new library to CIU with CIU specific functions called "CIULib.dll".
  >> Few functions are currently being used, but in future versions it will be more useful.

- Fixed the correct progressbar's display (I hope for the last time).
  >> Now when the progressbar's images do not have the exact widths this image will be resized to the required size using the "CIULib.dll" library.

- Changed (again) the progressbar's SpaceLeft and SpaceRight options.
  >> Now the value SpaceLeft and SpaceRight is the start and end offset of the progress displayed in the installer.
  >> If the progress bar is smaller or larger the value will not be equivalent by measuring in the image.

- Changed "ISDone.dll" to "ISDone 0.6 final - for FreeArc Alpha 2012" (2012-09-27).
- Removed "DLZ" compressor from CIU, because it's no longer needed.

- Updated decompressor RAR (UnRAR.dll) from v5.21 to v5.80
- Updated compressor/decompressor "ZStandard" from v1.43 to v1.44 (x64 + x86).
- Updated decompressor pZLib3 from v3.0.1 to v3.2.0 (Final release)
  >> Now pzLib3 supports DUAL mode for 32 or 64 bit operating systems.

- Fixed conflicts between all current compressors (Thanks to Simorq for help).
  >> It is now possible to activate all compressors (not recommended) without conflicting, but probably the compression will get worse.

- Added Ultra HD compatibility functionality (Resolutions above Full HD).
  >> When booting the installer verifies that the monitor's vertical resolution is greater than 1080.
  >> If true, it inserts compatibility information into the registry and automatically relaunches a new instance of the installer closing the original instance.
  >> If this compatibility mode has been used the installer will clear the registry information upon termination.

- Changed the key name of Exe64Path= to ExePath64= in [Executable#] sections (now use 64 always at the end of all compatibles keys).
- Changed sections name from [Title] to [PageTitle] and also [BigTitle] to [PageBigTitle].
- Changed alignment of the directory selection form (SelectFolderForm) to align with the installer center.
- Changed the text of the welcome page by removing unnecessary information by slightly decreasing the lag in the eastern languages on this page.

- Added new keys WorkDir= and WorkDir64= keys in the [Executable#] sections.
  >> The keys WorkDir= or WorkDir64= determine the "Start In" directory (Work Dir) of executable shortcut.
  >> Use the value "\" in the key WorkDir= or WorkDir64= to display the value as "{app}\<ExePath>\" with backslash at the end.

- Added some new keys in the [Executable#] section for additional information for GOG or UWP installers.
  >> For information about the new keys see the file "_Setup.ini" from the "Help" folder.

- Fixed BigTitle label display on installer pages (Before was not visible).
- Fixed some errors when using commented lines after key value in creator mode.
- Fixed unknown constant "usersendto" error when using Inno Setup version 5.59 or older.
- Fixed some bugs related to removing keys from the registry where subkeys have constants.

- Fixed the size of the installer window by moving to the top leading off the screen.
  > Prior to this fix, this action changes the height of the installer, and the buttons/labels disappear from the installer.

- Fixed SelectDirBrowseLabel position for when using negative values for MoveDirectoryInfo= key so that Edit does not overlap the label.
  >> SelectDirBrowseLabel now vents together to the top when using negative values on the MoveDirectoryInfo = key.

- Added new constant {savedgames} in keys SaveGameFolder#= to inform correct save game folder as "C:\Users\%username%\Saved Games".

- Added new key FirstBGImage= in all [Component#] sections.
  >> This functionality lets you specify the first slide show image for each component.
  >> When the component is not selected, images from the corresponding component key value to the next component key value will not be displayed in the slideshow.

- Added new key CenterInstaller= in [InterfaceSettings] section, default value is 1.
  >> This key allows you to center the screen or display the installer where the autorun page was.

- Missing documentation added to supported functions for use in the "Registry.iss" file as string parametter.
  >> To know the values returned for each language, see InstallerScript na função "AddLanguageByName".
  {code:GetAppName}                  >> Return GameName according to the installation language from "Setup.ini" [InstallOptions]/ApplicationName<LNG>=/ApplicationName=
  {code:GetAppPublisher}              >> Return Publisher of the game from "Setup.ini" [InstallOptions]/Publisher=
  {code:GetMyAppExeName}              >> Return first executable name from "Setup.ini" [Executable1]/Exe= or [Executable1]/Exe64= if the system is 64-bit and the game has 64-bit executable.
  {code:GetMyAppExeName|<INDEX>}      >> Return the executable name corresponding to index from "Setup.ini" [Executable<INDEX>]/Exe= or [Executable1]/Exe64= if the system is 64-bit and the game has 64-bit executable.
  {code:GetMyAppExePath}              >> Return first path name from "Setup.ini" [Executable1]/ExePath= or [Executable1]/ExePath64= if the system is 64-bit and the game has 64-bit path.
  {code:GetMyAppExePath|<INDEX>}      >> Return the path name corresponding to index from "Setup.ini" [Executable<INDEX>]/ExePath= or [Executable1]/ExePath64= if the system is 64-bit and the game has 64-bit path.
  {code:GetGameVersion}              >> Return Version of the game from "Setup.ini" [InstallOptions]/GameVersion=
  {code:GetLangISO}                  >> Return ISO name of the selected language using "-". (en-US, es-ES, de-DE, etc)
  {code:GetLangISO|_}                >> Return ISO name of the selected language using "_". (en_US, es_ES, de_DE, etc)
  {code:GetLangISO|<DEFAULT>}        >> Return ISO name of the selected language. Return value with "_" if default value contain "_". (en-US, etc or en_US, etc)
  {code:GetLangFull}                  >> Return FULL name of the selected language. (English, Spanish, German, etc)
  {code:GetLangShort}                >> Return SHORT name of the selected language. (EN, ES, DE, etc)
  {code:GetLangShortLC}              >> Return SHORT name of the selected language in lowercase. (en, es, de, etc)
  {code:GetLangOld}                  >> Return OLD name of the selected language. (eng, esp, ger, etc)
  {code:GetLangOldUC}                >> Return OLD name of the selected language in uppercase. (ENG, ESP, GER, etc)
  {code:GetLangNR}                    >> Return decimal string of selected language UI. (1033, 1034, 1031, etc) 
  {code:GetLangNR|$}                  >> Return hexadecimal string of selected language UI. ($0409, $040a, $0407, etc)
  {code:GetLangNR|<DEFAULT>}          >> Return decimal/hexadecimal string of selected language UI. If default value contain "$", return hexadecimal. (1033, etc or $0409, etc)
  {code:GetSerialKey}                >> Return first SerialKey of the game from "EXTERNAL_Setup.ini" [InstallOptions]/Key1=
  {code:GetSerialKey|#}              >> Return SerialKey of the game from "EXTERNAL_Setup.ini" [InstallOptions]/Key#= 
  {code:GetSerialKey|<DEFAULT>}      >> Return first SerialKey of the game from "EXTERNAL_Setup.ini" [InstallOptions]/Key1= and if key empty return default value.
  {code:GetSerialKey|#,<DEFAULT>}    >> Return serial key from "EXTERNAL_Setup.ini" [InstallOptions]/Key#= and if key empty return default value.
  {code:UninstallShortcut}            >> Return the name of the uninstall shortcut in the current language followed by the name of the game as example: Uninstall My Game Name
  {code:GetSavedGameFolder}          >> Return the windows "Saved Games" folder as C:\Users\%username%\Saved Games if Windows XP return {userdocs}\My Games (expanded).
  {code:GetSavedGameFolder|<DEFAULT>} >> Return the windows "Saved Games" folder as C:\Users\%username%\Saved Games if Windows XP return <DEFAULT> value expanded.

I wish you all merry christmas.

Grumpy 23-12-2019 16:18

Quote:

Originally Posted by KaktoR (Post 483936)
New version added.

Code:

[14.12.2019]
-Added components for DiskSpan (_DiskSpan.bat)
  > Thanks to Cesar82
-Added cls-mpzmt (thanks to 78372)

- Fixed conflicts between all current compressors (Thanks to Simorq for help).
 
..........

I wish you all merry christmas.

Thankyou KaktoR, Cesar82, 78372, Simorq and to everyone else involved, your work is very much appreciated :)

Merry Christmas to you all, stay safe and all the best for the New Year.

Proxson 23-12-2019 17:12

I have a bug report (actually it's not a bug but something that should be implemented in the next version) but I'll wait till the end of holidays. :p ;)

Merry Christmas and a Happy New Year folks! :)

Cesar82 23-12-2019 17:50

DISKSPAN.bat (FIXED FILES)
 
DiskSpan.bat fixed re-uploaded in "_Tools.7z" file. (Thanks KaktoR)
The DiskSpan.bat file may result in a few bytes or even smaller megabytes than specified for each disk.
This small error is due to limitation of calculations in the "set /a" function of bat files (maxing-out 32-bit number limitation).
Then the calculation was cut off the last 3 digits to work with large size values.
As long as only games are smaller than 2000 GB the current calculation will work.

Merry Christmas everyone!
Thanks!

KaktoR 24-12-2019 03:40

Quote:

Originally Posted by Cesar82 (Post 483941)
DiskSpan.bat partially redone.
The previous version that is in the _Tools.7z file has bugs related to disk size division.
This new version here worked fine.
But if anyone finds bugs, please report it.

Replace the files in both folders:
UltraARC 2900 R7 FULL
UltraARC 2900 R7 PUBLIC


Sorry for the buggy version... I didn't realize it wasn't working properly.
When kaktoR update the _Tools.7z file again I remove this post.

Merry Christmas everyone!
Thanks!

Re-uploaded :)

KaktoR 24-12-2019 09:22

Hello people.

Please give us some screenshots of your most favourite installers of all time.

We want to add some "preview" to the opening post to give people some ideas of what's possible with CIU, since most of us know, CIU is pretty complex with all its settings to new people (some would call it "overwhelming" :D).

So please share with us a few fancy installers you like, but, if possible, a few more complex installers (something more just like the "standard things enabled") would be nice too.

Merry Christmas to all of you and your fams and friends. Keep the good moods.

KaktoR 24-12-2019 16:03

1 Attachment(s)
There is another bug in _Diskspan.bat.

I will fix this tomorrow

Change
Code:

copy /y ".\!SETUPPATH!\!SETUPNAME!" ".\!CONVFOLDR!\!DISKLABEL!!DVDCount!\!SETUPICON!" >nul

to

copy /y ".\!SETUPPATH!\!SETUPICON!" ".\!CONVFOLDR!\!DISKLABEL!!DVDCount!\!SETUPICON!" >nul


KaktoR 24-12-2019 17:00

One more bug

1. Select "Yes" to use same compression method to all games
2. Use option [18] and type something...
3. You will be on the previous step again (Methods types available)

Only if you select options [0] to [17] all is fine.

Cesar82 24-12-2019 18:07

CI/CIU installer printscreen
 
1 Attachment(s)
Quote:

Originally Posted by KaktoR (Post 483952)
Hello people.
Please give us some screenshots of your most favourite installers of all time.

Here are some print screen of conversions that used CI (CI is the old CIU - The beginning of everything)...
There must be some great ones here, but these ones in my opinion were very good (design) by limiting the old versions of CI/CIU.
I will post part II with images of conversions between CIU 1.0.0.0 to 1.0.14 and so on!
I will post the following parts in this same post!
Then you choose the best images this pack in your opinion.

I will check DiskSpan.bat again. Glad you're testing. I didn't see these errors you commented on.

At the end of the bat file put the red line to fix the bug in "Custom Method" [18] to ALL COMP change:
Code:

set /p %~1=  Method:
exit /b
:PreviousMethod
set "%~1=!previous!"
exit /b

To:
Code:

set /p custom=  Method:
set "%~1=!custom!"
set "previous=!custom!"

exit /b
:PreviousMethod
set "%~1=!previous!"
exit /b

Are these custom sample methods correct?
It does not work for me. Only the first custom example works here.
Code:

echo.                  xZ1+srep:m3f+4L1
echo.                  UR+srep:m3f+XZ

If wrong give me examples that work and not on the list of 17.

KaktoR 25-12-2019 03:36

Quote:

Originally Posted by Cesar82 (Post 483959)
Are these custom sample methods correct?
It does not work for me. Only the first custom example works here.
Code:

echo.                  xZ1+srep:m3f+4L1
echo.                  UR+srep:m3f+XZ

If wrong give me examples that work and not on the list of 17.

Use this instead (or make your own :D)

Code:

echo.        Example: bpk+xCriLayla+srep:m3f+lolz:d128m:mc1023
echo.                  xZLib+srep:m3f:l512:m512+LZMA-MT
echo.                  zstdrec+srep:m3f:a16:d1g+XZ

UR is not really usable in diskspan, because you have to seperate the files which are processed by UELR into another archive (the same for AFR, OGGRE, MPZ, maybe MSC too but not sure...). The only way to use it in single archive is the file masking method. Unfortunatelly diskspan doesn't support it, and I don't know if it's possible somehow - theoretically.

Edit: Fixed version uploaded. I have used my example from "Trine Ultimate Collection" for how to use components with Diskspan.

Cesar82 25-12-2019 06:26

DiskSpan bat FIXED.
 
2 Attachment(s)
- Fixed copy of icon file to destination folder.
- Fixed to work custom mode correctly.
- Fixed aditional Records.ini path if the "Setup_Files" folder name is changed now will make the copy correctly.
- Changed compression examples in custom mode.
- Disabled the option to display component sum because when component size values do not have same unit (MB, GB) the calculation is done wrong.
- Fixed correct time in log file.

-----------------------------------------------------------------------
NEW DISKSPAN.bat TO TEST
The new version is for testing (Extract also the Resource folder contain files).
There may be some bugs yet.

NEWS:
- Added an external calculator for calculating folder sizes in bytes because it is not possible to calculate large numbers (Gb) in native bat functions.
- Added automatic calculation for first disk size, just disabling the first disk size line with "::" or entering one of the values: "0" or "AUTO".
- Added option to automatically move files from Redists or extras you wish to include on disk 1.
To do so just put the files or folders in the "Setup_Files" directory. Everything will be moved except text files in the root directory "Setup_Files".
- Fixed correct time in log file.
- Fixed sum of file sizes of each component after compression in finished page (Only in DiskSpan.bat [2019.12.29].rar).

NOTES:
By my tests the calculation is working well. Making good use of Setup.exe's independent media size is 10 or 200 mb, with no need to change anything.

Simorq 25-12-2019 13:02

ّFix DefaultInstallDir
 
DefaultInstallDir=D:\Games

http://uupload.ir/files/6nep_1.jpg
Code:

WizardForm.DirEdit.Text := RemoveBackslashUnlessRoot(ExpandConstant(Trim(GetValStrEx('InstallOptions', 'DefaultInstallDir', '')))) + GetAppName('')
http://uupload.ir/files/3dqx_2.jpg
Code:

WizardForm.DirEdit.Text := RemoveBackslashUnlessRoot(ExpandConstant(Trim(GetValStrEx('InstallOptions', 'DefaultInstallDir', '')))) + '\' + GetAppName('')

Cesar82 25-12-2019 20:22

Thank you Simorq.

I don't know where I was with my head....
It was supposed to look like this.
Code:

WizardForm.DirEdit.Text := RemoveBackslashUnlessRoot(ExpandConstant(Trim(GetValStrEx('InstallOptions', 'DefaultInstallDir', '')))) + GetAppName('')

WizardForm.DirEdit.Text := AddBackslash(ExpandConstant(Trim(GetValStrEx('InstallOptions', 'DefaultInstallDir', '')))) + GetAppName('')


andreiutzu21 26-12-2019 22:28

This is a bug ?
 
Cesar82 please you can check these bugs? with CIU3 u6 no problem at all

i made a screenshot to see

these error's is with last update CIU3 u7

look at taskbar it shows percent and Test Run and that error

https://pasteboard.co/IN9low4.png

Cesar82 27-12-2019 00:24

Quote:

Originally Posted by andreiutzu21 (Post 483992)
Cesar82 please you can check these bugs? with CIU3 u6 no problem at all

i made a screenshot to see

these error's is with last update CIU3 u7

look at taskbar it shows percent and Test Run and that error

https://pasteboard.co/IN9low4.png

I do not know what exactly it can be.
Maybe it is because some CIU compressors have been updated.
The ISDone library has been updated as well. But the mistake is CRC and I don't think so.
Try copying the ISDone.dll from the "Resources\Decompressors\ISDone" folder of CIU 3.0.0.0.u6 to CIU 3.0.0.0.u7.
Let me know if this procedure works.
Maybe KaktoR or Simorq can answer better on this subject.

Cesar82 27-12-2019 00:26

Quote:

Originally Posted by Proxson (Post 483940)
I have a bug report (actually it's not a bug but something that should be implemented in the next version) but I'll wait till the end of holidays. :p ;)

Merry Christmas and a Happy New Year folks! :)

At any time you can report the bug.
I will check as soon as possible and try to solve.
Thanks!

andreiutzu21 27-12-2019 01:35

Quote:

Originally Posted by Cesar82 (Post 483993)
I do not know what exactly it can be.
Maybe it is because some CIU compressors have been updated.
The ISDone library has been updated as well. But the mistake is CRC and I don't think so.
Try copying the ISDone.dll from the "Resources\Decompressors\ISDone" folder of CIU 3.0.0.0.u6 to CIU 3.0.0.0.u7.
Let me know if this procedure works.
Maybe KaktoR or Simorq can answer better on this subject.

i will test this and the second problem if you look at taksbar on installer it shows percent and Test Run instead of " Game Name Installing"

Simorq 27-12-2019 01:48

@andreiutzu21
Code:

Resources\Decompressors\FreeArc\CLS.ini
Code:

[Srep]
Bufsize=24m
transfer_ReadBufSize=512k
transfer_WriteBufSize=512k
Memory=50%-512m → Memory=512m
TempPath={app}

And use 86-bit versions of ZTool, XTool, pZLib.

KaktoR 27-12-2019 09:42

Quote:

Originally Posted by Cesar82 (Post 483972)
- Fixed copy of icon file to destination folder.
- Fixed to work custom mode correctly.
- Fixed aditional Records.ini path if the "Setup_Files" folder name is changed now will make the copy correctly.
- Changed compression examples in custom mode.
- Disabled the option to display component sum because when component size values do not have same unit (MB, GB) the calculation is done wrong.
- Fixed correct time in log file.

-----------------------------------------------------------------------
NEW DISKSPAN.bat TO TEST
The new version is for testing (Extract also the Resource folder contain files).
There may be some bugs yet.

NEWS:
- Added an external calculator for calculating folder sizes in bytes because it is not possible to calculate large numbers (Gb) in native bat functions.
- Added automatic calculation for first disk size, just disabling the first disk size line with "::" or entering one of the values: "0" or "AUTO".
- Added option to automatically move files from Redists or extras you wish to include on disk 1.
To do so just put the files or folders in the "Setup_Files" directory. Everything will be moved except text files in the root directory "Setup_Files".
- Fixed correct time in log file.

NOTES:
By my tests the calculation is working well. Making good use of Setup.exe's independent media size is 10 or 200 mb, with no need to change anything.

Thanks. OLD works fine now.

I will test component calculation in the next days.

Proxson 06-01-2020 10:46

1 Attachment(s)
Ok guys,

so here is the problem when using external scripts like custom icons, shortcuts and the Registry script. When uninstalling the game,
it does not remove the Program folder in Start Menu and the Registry keys still remain despite the game is uninstalled. If you have time,
please implement this option. Here is the script. Please try it. Thanks. :)

Edit: I managed to delete the program folder in Start Menu -->

Code:

[UninstallDelete]
Type: filesandordirs; Name: "{userprograms}\{groupname}"

Edit 2: Nope, it doesn't work always. Weird behavior. @.@

/me embarrassed... :o

Well, the Registry entries "issue" is still there.

Proxson 07-01-2020 10:55

*knock...knock...anybody home ? :p

Edit: Ok, I got the Registry "issue" under control. It's not an elegant solution but it works. Till someone finds something better.

Code:

#define AppPublisher "SEGA"
Code:

  { remove product code registry entrie }
    if ProductCode <> '' then
      RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode);
      RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\{#AppPublisher}');
  end;
end;

Eh, now the Start Menu shortcuts... :(

Cesar82 07-01-2020 19:04

Quote:

Originally Posted by Proxson (Post 484135)
*knock...knock...anybody home ? :p

Edit: Ok, I got the Registry "issue" under control. It's not an elegant solution but it works. Till someone finds something better.

Code:

#define AppPublisher "SEGA"
Code:

  { remove product code registry entrie }
    if ProductCode <> '' then
      RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\' + ProductCode);
      RegDeleteKeyIncludingSubkeys(HKLM, 'SOFTWARE\{#AppPublisher}');
  end;
end;

Eh, now the Start Menu shortcuts... :(

You have greatly altered the original CIU script.
There will be some bugs with these changes.
The About page has stopped working.
You can change the script for your use, but I ask you to keep the About page working and original by displaying the credits of the original CIU contributors and translators.

Answering your question:
CIU does not create an uninstaller as in conventional Inno Setup installers (Unis000.exe, Unis000.dat).
Uninstall.exe from the installation folder is the same Setup.exe file that is copied to the folder and the uninstall functions are all defined in the code section.
Therefore the installer does not remove icons included in the [Icons] section, so you must include them in the code within the CreateShortcuts and DeleteShortcuts functions.
The [UninstallDelete] section is also not supported on CIU as the default uninstallation of Inno Setup is never performed.
You can include the functions of deleting folders or files within the Uninstall function of code.

NOTES:
You have removed almost all languages, this can cause errors.
I would not recommend these changes all in the script the way you did.
You could simply have limited the languages ​​you want to make available in Setup.ini or disabled the lines in the [Files] section and changed only in GetLanguage and also the part in CheckAvaiLanguages ​​where you changed to:
if (TmpStr2 in ['HR', 'ENUK', 'EN']) then

Proxson 07-01-2020 19:24

Sorry, I removed all that stuff to make the CIU smaller. Regarding the 'About' page, it wasn't intentionally. I was so ocupied with this icons and registry issues.
The 'About' page will return back again. Sorry again. My intention was not to discredit anyone who worked on this project. Removing unnecessary languages didn't
affect the CIU integrity. It's working without any problems. Looks like you've faced me against the wall. So script with icons won't work in a regular way...hmm.
I'm dropping the subject. :(

Grumpy 08-01-2020 04:34

Quote:

keep the About page working and original by displaying the credits of the original CIU contributors and translators.
Yes, we are very adamant about this here at Fileforums, all Credits must be maintained and given at all times. A lot of people have put a lot of their own time into it and do not get paid for their work, the least people can do is give them a little credit. If you remove those credits then these people will lose faith and may stop their work, then everyone misses out on their great contributions.
Credit must always be given or kept in place. ;)

Proxson 08-01-2020 08:53

1 Attachment(s)
@Cesar,

here is the CIU by default. Nothing removed from the script. No icon and registry script. It still leaves the empty Publisher folder in the Start Menu ! I have
noticed a strange thing, as long as you don't open the Publisher folder, in this case SEGA, the uninstaller will delete it, otherwise it won't. The script has already
all constants in the uninstall part such as {commonprograms} and {userprograms}. So, in other words, I can't do jack sh*t. Heck, someone would say, stop whining.
Delete it manually. But that's not the point, :(

https://media.tumblr.com/tumblr_mf0nuqPQyn1rncawh.gif

mausschieber 08-01-2020 11:16

here it works also

i used win 8.1 x64

Proxson 08-01-2020 13:10

1 Attachment(s)
At least we're getting somewhere. First, the fix isn't working. The good news is that everything is ok in Windows 10 (opened in a virtual machine). So the conclusion is, Windows 7 is a bad guy here. But that doesn't mean I'm moving to Win 10. It's the ugliest OS since Windows Millenium Edition ! :p In other words... @Cesar, fix the darn thing ! ;)

Edit: Thanks for the shortcut tip. If this could be done in Setup.ini it would be even better. :)

Edit 2: Anyone else has the same problem with Windows 7 ?

Cesar82 08-01-2020 14:54

1 Attachment(s)
Quote:

Originally Posted by Proxson (Post 484172)
Edit: Thanks for the shortcut tip. If this could be done in Setup.ini it would be even better. :)

It is a good idea for future versions. But I do not promise that this feature will be added.

Code:

I changed it in the script to include your additional icons.
find in script by "CUSTOM ICONS ADD HERE" (without quotes).
You can include other additional icons in this part if you need to.

Windows 7 has a delay deleting internal files in the folder, so it does not remove the directory as it is not empty yet.
I made some changes, and tested on a virtual machine with windows 7 professional. Apparently it is working.

Try with this new script.

Proxson 08-01-2020 15:54

It's working ! ...But on a clean Windows 7 (virtual machine)... :( So that means, the culprit is my copy of Windows. Something is interfering with the uninstalling process and that's beyond my knowledge so far. Damn. I made a fool of myself. Sorry Cesar. Thanks for your effort. If you or someone has an idea please post it here.

Cesar82 11-01-2020 14:36

CIU 3.0.0.1.b3 (Coming soon)
 
Hello people...

For the past few days I've been working on CIU 3.0.0.1.b3 (Beta 3).
The script has been changed a lot, possibly many bugs will appear.

The changes were necessary to try to slightly improve the startup time (very little improvement).
The entire button creation and access structure has also been changed to correct the failure and slowness by clicking the same button multiple times.
These changes made it possible to include additional buttons.
Now if you put a few buttons in the installer, you will get better performance. Required buttons are only UniInstallbutton, NextButton, BackButton and SmallBrowse (If you use Smallinstaller, you also need SmallCancel or CloseSI).
Make a comparison between version 3.0.0.0.u7 and 3.0.0.1.b3.
Button click response time is much faster in this version 3.0.0.1.b3.

In a few days I'll be sharing CIU 3.0.0.1 beta 3 in the CIU Dev group.


All times are GMT -7. The time now is 19:13.

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