MSFN Forum: how can you test if hardware installed - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

how can you test if hardware installed see if a graphics card is present Rate Topic: -----

#1 User is offline   gratz 

  • Newbie
  • Group: Members
  • Posts: 11
  • Joined: 20-November 05

Posted 25 March 2006 - 03:02 PM

Hello everyone

I am not sure if this can be done

can you test to see if a certain piece of hardware is in your machine

then based on this test i hope to install the device drivers and any other programs associated with it

i have 3 pcs with different graphics cards and want to use runonceex to install
the correct graphics drivers etc, but i first need to find out using code which card is installed

the cards i am using at the moment are ati radeon and nvidea geforce x600

any help would be great

thanks in advance :D


#2 User is offline   MadBoy 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 464
  • Joined: 21-February 05

Posted 25 March 2006 - 04:54 PM

Check this link. It's little program i wrote. You could put drivers for both (or more) cards on cd in \Drivers dir. Then edit hardware.ini. Make sure the paths are all correct. When you will run program hardware.exe it should detect "unknown" (which in your case will be graphic card) devices, remove it, change path to Drivers .. and redetect devices. It's all done by one click. SO should fit your needs. Make sure to read the thread completly for more info. If you have questions. Lemme know. Keep in mind its' still alpha stage ;p

#3 User is offline   Bilou_Gateux 

  • Powered by Windows Embedded
  • PipPipPipPipPip
  • Group: Members
  • Posts: 766
  • Joined: 03-January 04

Posted 28 March 2006 - 02:19 AM

You can check the output of this command using devcon tool:

devcon drivernode =Display




You will need some batch script expertise to write a full script.



sample output on a box with driver already installed.

Quote

PCI\VEN_8086&DEV_1132&SUBSYS_004C110A&REV_04\3&61AAA01&0&10
Name: Intel Corporation 815 Embedded Graphics Controller
DriverNode #0:
Inf file is c:\windows\inf\ssigd.inf
Inf section is ssigd_wht
Driver description is Intel Corporation 815 Embedded Graphics Controller
Manufacturer name is Intel Corporation
Provider name is Intel Corporation
Driver date is 1/15/2006
Driver version is 5.0.0.756
Driver node rank is 8193
Driver node flags are 00002240
Inf is digitally signed
1 matching device(s) found.


#4 User is offline   cdob 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 726
  • Joined: 29-September 05

Posted 28 March 2006 - 04:53 AM

@gratz
Does one machine contain one graphic or two graphic cards?

Try (one graphic card assumed)
@echo off

for /f "tokens=1-3* delims=\& " %%a in ('"devcon hwids *CC_0300"') do (
  if [%%b]==[VEN_1002] (echo ATI graphic card  %%b %%c found &goto :install_ati_graphic_card)
  if [%%b]==[VEN_8086] (echo Intel graphic card  %%b %%c found &goto :install_graphic_card)
  if [%%b]==[VEN_102B] (echo Matrox graphic card  %%b %%c found &goto :install_graphic_card)
  if [%%b]==[VEN_10DE] (echo Nvidia graphic card  %%b %%c found &goto :install_nvidia_graphic_card)
)
echo Graphic card not found.
goto :eof

:install_ati_graphic_card
  echo Install graphic card.
goto :eof 

:install_nvidia_graphic_card
  echo Install graphic card.
goto :eof 

:install_graphic_card
  echo Install graphic card.
goto :eof


#5 User is offline   RogueSpear 

  • OS: SimplyMEPIS
  • Group: Supreme Sponsor
  • Posts: 1,529
  • Joined: 18-September 04

Posted 28 March 2006 - 08:45 AM

If you have a dual head card, it often reports two cards. Same with a laptop that can use the external VGA port as a second display.

#6 User is offline   jftuga 

  • Member
  • PipPip
  • Group: Members
  • Posts: 283
  • Joined: 27-October 05

Posted 28 March 2006 - 12:14 PM

The easiest way for me to determine PCI hardware -- not just graphics cards, but also network, sound, ide, etc. is to use a Linux rescue boot CD or a Live CD. Once at a shell prompt, you can run:

lspci | less

- or for more detailed info -
lspci -vv | less

This will tell you everything about your PCI & AGP devices. You don't even need Linux installed.

-John

This post has been edited by jftuga: 28 March 2006 - 12:15 PM


#7 User is offline   dobbelina 

  • Newbie
  • Group: Banned
  • Posts: 30
  • Joined: 20-May 05

Posted 31 March 2006 - 09:18 PM

I think the nicest tool to detect hardware info, is without question Everest from Lavalys.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy