FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   SysInfo DLL Plugin (https://fileforums.com/showthread.php?t=103432)

BLACKFIRE69 11-04-2020 04:26

SysInfo DLL Plugin
 
3 Attachment(s)
System Information Inno Library

  • Cpu
    - Name
    - Cores
    - Threads
    - Speed
    - Usage


  • Gpu
    - Name
    - Memory
    - DirectX Version


  • Os
    - Name
    - Architecture
    - ID
    - Build Number
    - OS Major
    - OS Minor
    - ServicePack Major
    - ServicePack Minor


  • Ram
    - Available
    - Total
    - Usage


  • Screen
    - Resolution
    - Refresh Rate


  • Space
    - Total
    - Free


  • Username
    - Account Name


  • Sound
    - Sound Card Name





For Inno Setup 6.0 or newer:
Example for Inno Setup 6.0 or newer




------------------------------------------------------------------------------

Cesar82 11-04-2020 15:53

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.

BLACKFIRE69 12-04-2020 01:08

Quote:

Originally Posted by Cesar82 (Post 485237)
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.

i will try with "DELPHI 2010".

thanks...

bunti_o4u 12-04-2020 08:11

1 Attachment(s)
Quote:

Originally Posted by BLACKFIRE69 (Post 485250)
To reduce the file size, as Cesar82 said, recompiled the source code using "Delphi 2010".

Final Size : SysInfo.dll - 302 kb

Observed three issues. you may choose to fix
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

KaktoR 12-04-2020 12:16

2 Attachment(s)
Same here (GPU + RAM is wrong)

If you need something special let us know.

BLACKFIRE69 12-04-2020 12:30

Quote:

Originally Posted by KaktoR (Post 485260)
Same here (GPU + RAM is wrong)

If you need something special let us know.

ya i got it. that would be correct. thnx..

Cesar82 12-04-2020 16:56

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.

bunti_o4u 12-04-2020 19:50

Quote:

Originally Posted by BLACKFIRE69 (Post 485261)
ya i got it. that would be correct. thnx..

Noted one more thing. it is showing available RAM and Total RAM as 2047MB and 8192MB respectively in all three screenshots i.e. KaktoR, Cesar82 and mine.

Cesar82 25-04-2020 09:16

@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)

Gupta 26-04-2020 03:30

you should check wmi
https://docs.microsoft.com/en-us/win...isdk/about-wmi
https://github.com/jagannatharjun/in...bject.cpp#L193
https://github.com/jagannatharjun/in...rinfo.cpp#L378

Jiva newstone 28-04-2020 09:33

@BLACKFIRE69
any Difference in Xtimer like its a settimer or any kind of multi threaded time..
and also weird - sign in gpu ram

BLACKFIRE69 28-04-2020 16:50

Quote:

Originally Posted by Jiva newstone (Post 485508)
@BLACKFIRE69
any Difference in Xtimer like its a settimer or any kind of multi threaded time..
and also weird - sign in gpu ram

Xtimer is just a timer.

yup VRam ... 🤕

Jiva newstone 28-04-2020 20:12

Quote:

Originally Posted by BLACKFIRE69 (Post 485515)
Xtimer is just a timer.

yup VRam ... 🤕

i used your dll in my installer, stills its an error, so iam using stringchange to remove- or replace - with 0
plz fix it soon :)

BLACKFIRE69 29-04-2020 10:37

Quote:

Originally Posted by Jiva newstone (Post 485518)
i used your dll in my installer, stills its an error, so iam using stringchange to remove- or replace - with 0
plz fix it soon :)

ok 👍

bunti_o4u 18-05-2020 10:06

Quote:

Originally Posted by BLACKFIRE69 (Post 485888)
SysInfo DLL - Test 2



guys, test this plz, the new test DLL;

SysInfo_Test_2.rar

thanks to Cesar82, Jiva newstone, Razor12911, ... who helping me out here.

GPU RAM Size - showing 4GB instead of 8GB.


All times are GMT -7. The time now is 20:40.

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