Detecting Graphics card (Hardware) existence - Advanced Installer Community
india.26715
Posts: 11
Joined: Fri Dec 26, 2014 10:42 pm

Detecting Graphics card (Hardware) existence

Hey,
How to ensure that Graphics card (Hardware) installed or not.
With physical (GPU) Size for prerequisite recommendations.

Like RAM Size.

Regards,
Gaurav
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting Graphics card (Hardware) existence

Hi Gaurav and welcome to Advanced Installer forums,

Please take a look on the Determining Total Ram for a prerequisite install condition forum thread which debates a similar subject.

Let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
india.26715
Posts: 11
Joined: Fri Dec 26, 2014 10:42 pm

Re: Detecting Graphics card (Hardware) existence

Hey Dan,
RAM SIZE is for instance.
How to confirm is Graphic card(hardware) installed on target system
With physical size.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting Graphics card (Hardware) existence

Hi Gaurav,

In order to check the installed graphics cards, you can take advantage of the Win32_VideoController class.

Here's a piece of code that will list the installed graphics cards and their AdapterRAM values:

Code: Select all

 ManagementObjectSearcher searcher = new ManagementObjectSearcher("Select * from Win32_VideoController");

            foreach (ManagementObject queryObj in searcher.Get())
            {
                Console.WriteLine("Description:  {0}", queryObj["Description"]); 
                Console.WriteLine("AdapterRAM: {0} (Bytes)",  queryObj["AdapterRAM"]);
                Console.WriteLine();
            }
Also, please take a look on the Options to integrate and debug custom actions article which may be useful to you.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
india.26715
Posts: 11
Joined: Fri Dec 26, 2014 10:42 pm

Re: Detecting Graphics card (Hardware) existence

Thanks, Dan.
It works. By the way can u add it into TODO List for inbuilt features
In next release?

Regards,
Gaurav
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Detecting Graphics card (Hardware) existence

You're welcome Gaurav,

We'll consider adding this improvement on our TODO list, but for the moment there are no immediate plans. Thank you for your suggestion.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”