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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24-02-2019, 06:07
JRD!'s Avatar
JRD! JRD! is offline
Registered User
 
Join Date: Sep 2015
Location: Matrix
Posts: 274
Thanks: 225
Thanked 600 Times in 168 Posts
JRD! is on a distinguished road
Quote:
Originally Posted by ahmedwaill View Post
5.5.1 Enhanced Edition build 121002
i managed to make it write the value i want but i have to calculate it myself so i write the exact value in bytes so it's not about having the maximum size 2GB, you can write whatever you want ...
but the values can't be auto calculated i guess for some reason, and i guess that it needs to be type Longint, not only Int ...
1. The easiest way is not to go through UninstallDisplaySize, by default Inno setup write the value by calculating the weight of the files. (I do not know if it supports 2GB + or 4GB +)
2. The safest way is to create a small program or dll that writes the size of the game in the registry at the end.

Like this:
Code:
if bAllOK then
   SetGameSizeInRegisrty('5420m');
Regedit path:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Uninstall \ GAMENAME_is1

Note:

The size is stored in a DWORD value (32BITS), but it is expressed in KB, so we can store values ​​up to 3.99TB
__________________
Practice makes perfect.
Reply With Quote
The Following User Says Thank You to JRD! For This Useful Post:
ahmedwaill (24-02-2019)
Sponsored Links
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
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
Useful Dll for Inno Setup users peterf1999 Conversion Tutorials 88 01-12-2017 16:00
Create Dll C++ in VS 2015 compatible with Inno Setup MCI Conversion Tutorials 14 08-09-2017 09:07
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
One question with Inno Setup? quake4 PC Games - CD/DVD Conversions 3 22-08-2012 04:30



All times are GMT -7. The time now is 05:35.


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