![]() |
SysInfo DLL Plugin
3 Attachment(s)
System Information Inno Library
For Inno Setup 6.0 or newer: Example for Inno Setup 6.0 or newer ------------------------------------------------------------------------------ |
Very good...
- If possible you should use an older version of the compiler (If created in Delphi use DELPHI 2010). A smaller file will be generated (2.84 MB is very large and is already compressed in UPX). The ISSysInfo by Peterf1999 library is only 254Kb (compressed UPX). - If possible put an example compatible with Inno Setup (Standard) in your example script. Not everyone uses the EE version of Inno Setup (The EE version is obsolete). Thanks for library. |
Quote:
thanks... |
1 Attachment(s)
Quote:
01. it is showing GPU name and memory as weird numbers. GPU description is Zotac rtx 2070 super 8GB. 02. 9700k has 8 cores and 8 threads but it is showing as 4 cores and 8 threads. 03. It is showing RAM as 8GB though my pc has 16GB of RAM |
2 Attachment(s)
Same here (GPU + RAM is wrong)
If you need something special let us know. |
Quote:
|
https://i.imgur.com/h5yiwFk.jpg
To correct the CPU name, you can try replacing PAnsiChar with WideString in your SysInfo source code. Original: function GetGPUName : PAnsiChar; Replace by: function GetGPUName : WideString; I don't know if it will fix it, but as PAnsiChar doesn't support wide characters this error happens. Or you can convert your code to ANSI using: Result: = PAnsiChar (AnsiString (Utf8ToUnicodeString (strSource))); Thanks for the smaller size update. |
Quote:
|
@BLACKFIRE69
Error in VRAM (GTX 970 = 4 GB VRAM): Result: GPU Memory = -1 MB The detected RAM was 31.96 GB and windows detects 32.00 GB (Maybe windows rounds the value) |
|
@BLACKFIRE69
any Difference in Xtimer like its a settimer or any kind of multi threaded time.. and also weird - sign in gpu ram |
Quote:
yup VRam ... 🤕 |
Quote:
plz fix it soon :) |
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
Quote:
|
1 Attachment(s)
Quote:
The script file for testing with Inno Setup 6 is attached. https://i.imgur.com/Y5y2adK.png |
1 Attachment(s)
Maybe you'll figure out what the issue is :)
|
Quote:
Code:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video\This key I found here, and in my system it is the same. Code:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000 |
1 Attachment(s)
Test vRAM from registry...
If you have 2 or more video cards, the highest vRAM value will be displayed (if it is working correctly). |
Quote:
is always zero. https://i.imgur.com/CWVGYaR.png |
Quote:
Code:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000 |
bro just use wmi, you'll require class - win32_VideoController property - AdapterRAM
or if you want to play lazy, you can just parse the output of this Code:
wmic path win32_VideoController get AdapterRAM |
Quote:
https://i.imgur.com/0j99te6.png |
1 Attachment(s)
Quote:
|
Quote:
|
Quote:
uint32 AdapterRAM; uint32 = unsigned integer 32 bits = 2^32 = 4294967296 bytes = 4 GB |
1 Attachment(s)
Another method is to use OpenCL but I do not recommend it unless if you really want to know more about the GPU, such as clock speeds or to use the GPU for other purposes.
They have an example and it detects GPU memory correctly as well. https://code.google.com/archive/p/de...encl/downloads |
Quote:
is hungry a few GB on my old PC https://i.ibb.co/CzsqD4t/VGA.png |
Quote:
|
Quote:
|
Quote:
Quote:
|
1 Attachment(s)
I think a reading version of the registry does not work properly if you don't have a video card.
I created a version with both options in inno setup, if the result of the WMI verification is less than 0 (Negative value) it checks the registry. |
Quote:
|
Quote:
|
Quote:
Quote:
Code:
GpuName: Intel(R) HD Graphics 4600 |
Quote:
|
Quote:
Quote:
|
GpuName: NVIDIA GeForce GTX 1060 6GB
VRam: -1 MB use Int64 |
| All times are GMT -7. The time now is 13:07. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com