Jump to content

how can you test if hardware installed


gratz

Recommended Posts

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

Link to comment
Share on other sites


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

Link to comment
Share on other sites

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.

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.

Link to comment
Share on other sites

@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

Link to comment
Share on other sites

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

Edited by jftuga
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...