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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25-12-2019, 06:26
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
DiskSpan bat FIXED.

- 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.
Attached Files
File Type: rar DiskSpan.bat [2019.12.27].rar (250.1 KB, 8 views)
File Type: rar DiskSpan.bat [2019.12.29].rar (250.1 KB, 9 views)

Last edited by Cesar82; 30-12-2019 at 12:29. Reason: Added new files.
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
Fabioddq (27-12-2019), mausschieber (28-12-2019), Simorq (25-12-2019)
Sponsored Links
  #2  
Old 27-12-2019, 09:42
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,337 Times in 2,839 Posts
KaktoR is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
- 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.
__________________
Haters gonna hate
Reply With Quote
The Following 3 Users Say Thank You to KaktoR For This Useful Post:
andreiutzu21 (29-12-2019), Cesar82 (27-12-2019), sajmon83 (09-01-2020)
  #3  
Old 06-01-2020, 10:46
Proxson's Avatar
Proxson Proxson is offline
Registered User
 
Join Date: Nov 2017
Location: Croatia
Posts: 45
Thanks: 34
Thanked 26 Times in 19 Posts
Proxson is on a distinguished road
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...

Well, the Registry entries "issue" is still there.
Attached Images
File Type: jpg Error.jpg (121.4 KB, 271 views)

Last edited by Proxson; 08-01-2020 at 08:33.
Reply With Quote
  #4  
Old 07-01-2020, 10:55
Proxson's Avatar
Proxson Proxson is offline
Registered User
 
Join Date: Nov 2017
Location: Croatia
Posts: 45
Thanks: 34
Thanked 26 Times in 19 Posts
Proxson is on a distinguished road
*knock...knock...anybody home ?

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

Last edited by Proxson; 07-01-2020 at 17:12.
Reply With Quote
  #5  
Old 07-01-2020, 19:04
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Proxson View Post
*knock...knock...anybody home ?

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
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
devil777 (12-01-2020), Grumpy (08-01-2020)
  #6  
Old 07-01-2020, 19:24
Proxson's Avatar
Proxson Proxson is offline
Registered User
 
Join Date: Nov 2017
Location: Croatia
Posts: 45
Thanks: 34
Thanked 26 Times in 19 Posts
Proxson is on a distinguished road
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.

Last edited by Proxson; 07-01-2020 at 21:50.
Reply With Quote
The Following User Says Thank You to Proxson For This Useful Post:
devil777 (12-01-2020)
  #7  
Old 08-01-2020, 04:34
Grumpy's Avatar
Grumpy Grumpy is offline
Moderator
 
Join Date: Jun 2004
Location: Australia
Posts: 5,695
Thanks: 1,256
Thanked 1,851 Times in 812 Posts
Grumpy is on a distinguished road
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.
__________________
Can't find a Game Conversion? Check the 'Conversion INDEX'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 02:05
[GSERIES] Custom Installer Ultimate V2g Gupta Conversion Tutorials 226 01-06-2018 13:12
Crysis 3 DVD9 to 3xDVD5 Custom Installer spawniectes PC Games - CD/DVD Conversions 79 31-08-2017 07:19



All times are GMT -7. The time now is 08:25.


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