Is there a way to read the system's information in Inno Setup, during installation (just at the welcome wizard page)?
By this I mean:
- RAM
- OS
- CPU
- user
- IP
- MAC adress.
It would be a good thing to know. I would like to put this information in say a text document that I would save on my computer. I cannot seem to find material on this online at all, and was hoping if anyone had experience with this, could help?
There are many different ways to retrieve all these information.
But one universal way to retrieve all of them is a WMI query.
WMI classes that will interest you are:
Win32_ComputerSystem
Win32_OperatingSystem
Win32_Processor
Win32_NetworkAdapterConfiguration
The code requires Unicode version of Inno Setup for a better
Variant
support.The
SWbemObjectSet.ItemIndex
method used withWin32_NetworkAdapterConfiguration
is not available on Windows XP an older. See Iterate SWbemObjectSet in Windows XP and Inno Setup.It will get you information like:
To see all available information in involved classes, run this on command-line: