Originally Posted by Anders
View Post
As you said, almost all PC has single CPU (with many cores/logical cores). But, in my opionion I don't need to get speed of single core. Just max clock is enough to know user can run installed software or not.
Example:
Let's assume that installed software require at least:
Specification:
- CPU 2 [GHz]
- RAM 8 [GB]
- VRAM 2 [GB]
NSIS script can get that data using the SysInfo plugin and make a comparison.
User:
- CPU 2.4 [GHz] -> OK
- RAM 16 [GB] -> OK
- VRAM 1 [GB] -> ! -> Can not install - not enough memory.
There is a small problem with multiple devices, best example is Video Adapter (Graphic Card). My laptop has 2 GPU:
- integrated with CPU (Intel 4600)
- dedicated GPU (GeForce GTX 850M)
What is the best way to choose better one? I decided to use the following alghoritm.
I get graphics card RAM ("AdapterRAM" in WMI Win32_VideoController class query) for each graphic card and gather data for GPU with more RAM. Simple and easy!
Of course, the problem is that in my laptop my GeForce is Offline (Intel is active). However, NVIDIA GPU is more powerfull and this is the choice (if user for example install a game that requires more GPU RAM).
I will try to implement this in SysInfo 1.1
Leave a comment: