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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27-05-2024, 11:18
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,077
Thanks: 1,837
Thanked 2,311 Times in 789 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Lord.Freddy View Post
Hi Cesar82,

A few days ago, I embarked on creating a custom function for the "FadeEffect" feature in my installer script. While I successfully implemented the function, I encountered an issue when attempting to close the installer using the newly added functionality. Specifically, I received an error message. To troubleshoot, I meticulously reviewed my code and made adjustments based on your original script.

The modified version now resides in the file below, and I'm pleased to report that it works seamlessly without requiring any additional lines of code such as WizardForm.Free. However, there are only one remaining challenges:

Minimizing and Maximizing Animation Not Displayed: Despite the improvements, minimizing and maximizing animation doesn't appear as expected.

I kindly request your assistance in resolving these issues. Your expertise would be greatly appreciated.
I think combining AnimateWindow will not work together with this code.
You could throw AnimateWindow into the WizardForm.OnShow event.
I modified the code a little and added timers for FadeIn/FadeOut (see attachment).
Attached Files
File Type: rar FadeEffect.rar (3.6 KB, 12 views)

Last edited by Cesar82; 27-05-2024 at 11:25.
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
Lord.Freddy (27-05-2024), ScOOt3r (30-05-2024)
Sponsored Links
  #2  
Old 04-06-2024, 12:23
Lord.Freddy's Avatar
Lord.Freddy Lord.Freddy is offline
Registered User
 
Join Date: Apr 2022
Location: ...
Posts: 54
Thanks: 222
Thanked 41 Times in 25 Posts
Lord.Freddy is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
I think combining AnimateWindow will not work together with this code.
You could throw AnimateWindow into the WizardForm.OnShow event.
I modified the code a little and added timers for FadeIn/FadeOut (see attachment).
Thank you. It took some time, but it's finally done. This is a gift for you, as a token of my appreciation for your help with the previous post.
Attached Files
File Type: zip ISSystemInfo.zip (4.6 KB, 7 views)
__________________
¤ Life good be a Dream ¤
Reply With Quote
The Following User Says Thank You to Lord.Freddy For This Useful Post:
Cesar82 (04-06-2024)
  #3  
Old 04-06-2024, 14:59
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,077
Thanks: 1,837
Thanked 2,311 Times in 789 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Lord.Freddy View Post
Thank you. It took some time, but it's finally done. This is a gift for you, as a token of my appreciation for your help with the previous post.
Thanks for sharing.

But I would like to inform you that the VRAM is not reading correctly...
Reading is limited to 32-bit integers.
Should have returned 12 GB of VRAM here (see first image).
Also the windows identification is not being displayed correctly. It is labeled as "Windows 10 Interprise" and is "Windows 10 Pro" (see second image)
I attached a code that detects VRAM above 4 GB in case you want to use part of it for your module (see third image).

EDIT: I think you should use the "Extended" type (not Int64) to make it compatible with previous versions of Inno Setup such as the IS Enhanced 5.51 version that many use due to the excellent programming/debugging interface and extra classes offered in this version.
Attached Images
File Type: png snap0000583.png (21.0 KB, 69 views)
File Type: png snap0000585.png (22.1 KB, 68 views)
File Type: png snap0000584.png (4.8 KB, 68 views)
Attached Files
File Type: 7z VRam.7z (1.4 KB, 9 views)

Last edited by Cesar82; 04-06-2024 at 15:27.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Lord.Freddy (04-06-2024)
  #4  
Old 05-06-2024, 00:24
Lord.Freddy's Avatar
Lord.Freddy Lord.Freddy is offline
Registered User
 
Join Date: Apr 2022
Location: ...
Posts: 54
Thanks: 222
Thanked 41 Times in 25 Posts
Lord.Freddy is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
Thanks for sharing.

But I would like to inform you that the VRAM is not reading correctly...
Reading is limited to 32-bit integers.
Should have returned 12 GB of VRAM here (see first image).
alright thanks.

Quote:
Originally Posted by Cesar82 View Post
Also the windows identification is not being displayed correctly. It is labeled as "Windows 10 Interprise" and is "Windows 10 Pro" (see second image)
well i modified the GetOSName function to work with GetVersionEx api, should work correctly now.

Quote:
Originally Posted by Cesar82 View Post
EDIT: I think you should use the "Extended" type (not Int64) to make it compatible with previous versions of Inno Setup such as the IS Enhanced 5.51 version that many use due to the excellent programming/debugging interface and extra classes offered in this version.
that`s not possible because the GetPhysicallyInstalledSystemMemory api function will only one work with Int64 type.


well done, i hope this release should work as expected, and also if you have windows 11, please test this release on that machine to see if every things work`s well or no.

Edit: i also modified the GetCPUArchitecture function to work with GetNativeSystemInfo and IsWow64Process api function.
Attached Files
File Type: zip ISSystemInfo_v0.2.zip (5.5 KB, 6 views)
__________________
¤ Life good be a Dream ¤

Last edited by Lord.Freddy; 05-06-2024 at 00:28.
Reply With Quote
  #5  
Old 06-06-2024, 00:28
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,077
Thanks: 1,837
Thanked 2,311 Times in 789 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Lord.Freddy View Post
alright thanks.


well i modified the GetOSName function to work with GetVersionEx api, should work correctly now.


that`s not possible because the GetPhysicallyInstalledSystemMemory api function will only one work with Int64 type.


well done, i hope this release should work as expected, and also if you have windows 11, please test this release on that machine to see if every things work`s well or no.

Edit: i also modified the GetCPUArchitecture function to work with GetNativeSystemInfo and IsWow64Process api function.
INFO:
- Contains a MsgBox in the module's GetCPUArchitecture function.
- Keeps returning "Windows Interprise".
- You cannot use "RoundUp(Round(GetGPUVRAM))" in the example.
You can use RoundUp only after converting to MB.
RoundUp rounds the values ​​to a multiple of 64, because for example if you get 493 MB it would return 512 MB (Which would be a multiple of 64).
You can change the example script to:
Code:
+ 'GPU VRAM: ' + ConvertUnitFormat(GetGPUVRAM, In_Bytes, In_MegaBytes, 0, False) + #13#10
Attached is a solution for compatibility with Inno Setup 5.51.ee2
Attached Files
File Type: rar GetMemory.rar (504 Bytes, 3 views)
File Type: rar GetOSName.rar (1.0 KB, 3 views)

Last edited by Cesar82; 06-06-2024 at 01:12.
Reply With Quote
The Following User Says Thank You to Cesar82 For This Useful Post:
Lord.Freddy (06-06-2024)
  #6  
Old 06-06-2024, 13:22
Lord.Freddy's Avatar
Lord.Freddy Lord.Freddy is offline
Registered User
 
Join Date: Apr 2022
Location: ...
Posts: 54
Thanks: 222
Thanked 41 Times in 25 Posts
Lord.Freddy is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
INFO:
- Contains a MsgBox in the module's GetCPUArchitecture function.
- Keeps returning "Windows Interprise".
- You cannot use "RoundUp(Round(GetGPUVRAM))" in the example.
You can use RoundUp only after converting to MB.
RoundUp rounds the values ​​to a multiple of 64, because for example if you get 493 MB it would return 512 MB (Which would be a multiple of 64).
You can change the example script to:
Code:
+ 'GPU VRAM: ' + ConvertUnitFormat(GetGPUVRAM, In_Bytes, In_MegaBytes, 0, False) + #13#10
Attached is a solution for compatibility with Inno Setup 5.51.ee2
Thank you for helping me improve this module
Attached Images
File Type: jpg EX.JPG (40.9 KB, 167 views)
File Type: jpg EXGUI.JPG (43.2 KB, 164 views)
Attached Files
File Type: zip ISSystemInfo_v0.5.zip (9.5 KB, 9 views)
__________________
¤ Life good be a Dream ¤

Last edited by Lord.Freddy; 12-06-2024 at 07:30. Reason: Updated to version 0.5 (Code optimization and cleanup + GUI Example).
Reply With Quote
The Following 3 Users Say Thank You to Lord.Freddy For This Useful Post:
BLACKFIRE69 (06-06-2024), Gehrman (22-07-2024), ScOOt3r (06-06-2024)
Reply

Tags
asis, ciu, inno, installer, ultraarc

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
[Help] need Advanced Installer script with Razor1911's UltraArc module rez3vil Conversion Tutorials 3 15-04-2024 02:24
Ultimate Conversion Compressor (UCC) vollachr Conversion Tutorials 55 26-04-2021 09:27
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
How many forum members does it take to change a light bulb? rms2001 XBox Games 6 12-01-2004 05:31



All times are GMT -7. The time now is 18:03.


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