View Single Post
  #180  
Old 06-06-2024, 00:28
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 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)