edg21 Posted August 29, 2004 Posted August 29, 2004 This cmd file could be modified to perform driver installations depending on your hardware. I've only had a chance to test this on 2 different machines & it worked fine. Please test this on your systems & let me know what kind of results you get. Requires DEVCON.EXE in your path.Obtain devcon.exe here:http://support.microsoft.com/default.aspx?...b;EN-US;Q311272atiornv.cmd@echo off :detect_viddevcon find * | find "ATI" >NUL if not errorlevel 1 goto ati devcon find * | find "NVIDIA" >NUL if not errorlevel 1 goto nvidia goto neither:nvidiaecho nvidiagoto end:atiecho atigoto end:neitherecho neithergoto end :end
CoffeeFiend Posted August 29, 2004 Posted August 29, 2004 That's a way to do it. I've been thinking about such issues a lot lately (this specific one as well so you can have both drivers on your unattended setup disc and have it install the right one with no hassles). You could also (possibly)...1) use WMI (Select * from Win32_DisplayConfiguration);2) export part of the HKLM\System\CurrentControlSet and use find in that;3) use debug:debug biosdump.txt <commands.txtcommands.txt containing these 2 lines:d c000:0000 1ffqthen use find on biosdump.txtThat dumps the first 512 bytes of the video bios, which has always contained either ATI or NVIDIA on all cards I've tested so far as well. (I guess I can't hide being old school and have coded lots of dos asm anymore? makes me feel old in a way). I could write a tiiiiiiiny checkvid.com app that would "repne scasb" the video bios like that for either strings, and return an errorlevel accordingly too... (yes, I *still* got TASM 5 kickin' around!) Neater than debug.com and 2 redirections... (I've been meaning to code that for about 2 months now... Even though it's a 10 min job hehe)and i'm sure there are more ways to it as well. The only problem is, I'm not 100% sure which one is the more reliable option. Depending at which stage it's run, WMI might not be an option(?). Registry is not the best way either imho. DevCon wise... I don't know for sure how it works, what dependencies it has, nor how it gets it's information, so I can't quite tell how reliable it is... I posted a similar thing (using the registry export & find way) for conditionnaly applying the F-Lock registry tweak, but nobody ever answered.
CoffeeFiend Posted August 29, 2004 Posted August 29, 2004 Since it's such as quick thing, I just might code it tomorrow. If there's interest in it, I might post it here too...
edg21 Posted August 29, 2004 Author Posted August 29, 2004 Since it's such as quick thing, I just might code it tomorrow. If there's interest in it, I might post it here too...That would be great.
Astalavista Posted August 29, 2004 Posted August 29, 2004 huh???if u put the drivers of your nvidia and ati in your drivers folderand specify the location in winnt.sifit automatically loads the correct driver. i hv been doing this for a long time
edg21 Posted August 29, 2004 Author Posted August 29, 2004 huh???if u put the drivers of your nvidia and ati in your drivers folderand specify the location in winnt.sifit automatically loads the correct driver. i hv been doing this for a long timeThe reason I would like to do it this way, is to use it during my FTP install, see the links in my sig for more info. I don't want to have to re-burn my cd. So being able to determine post-install & then install from my ftp works great.
edg21 Posted August 29, 2004 Author Posted August 29, 2004 how do u install xp via ftpI don't install XP via ftp, I install all my applications, updates & drivers via FTP post-install.http://www.msfn.org/board/index.php?showtopic=25929
CoffeeFiend Posted August 29, 2004 Posted August 29, 2004 Utility is online:edit: dead linkI had to zip it... it's a whole 264 bytes (and most of it is text). I've quickly ran it on 3 computers and so far it's worked perfectly. Feel free to do whatever you want with it... It returns:Errorlevel 3 for ATI;Errorlevel 2 for NVIVIA;Errorlevel 1 for other(if you get a different errorlevel... something weird happenned!)I had missed good ol' TASM...[edit] my "quality" free web host took it down - a big thanks to them. If anyone wants it, just send me a message with your email adress and i'll send it directly to you.
creopard Posted August 29, 2004 Posted August 29, 2004 you can also tryIF EXIST %systemroot%\system32\nv4_disp.dll goto nvidiaIF EXIST %systemroot%\system32\atiddc.dll goto ati[...]
Bâshrat the Sneaky Posted August 29, 2004 Posted August 29, 2004 you can also tryIF EXIST %systemroot%\system32\nv4_disp.dll goto nvidiaIF EXIST %systemroot%\system32\atiddc.dll goto ati[...]That's what I use...
CoffeeFiend Posted August 29, 2004 Posted August 29, 2004 Good to see... There actually are more ways to it, so we're up to 5 methods now 1) devcon.exe & find2) WMI (Win32_DisplayConfiguration)3) regedit /e & find4) video bios substring scan5) nv4_disp.dll/atiddc.dll file checkand I'm sure we could still come up with more!As for method 5, I'm not sure at what stage you guys use it, but it has to have the drivers already installed obviously. Although I won't be surprised when someone says my bios substring scan doesn't work because "NVIDIA" is say, at the 513rd byte in the BIOS I don't think there actually is a "perfect"/100% fail-proof method.
Alanoll Posted August 29, 2004 Posted August 29, 2004 Well, considering there is usually a default ATI driver loaded from the XP source, it should still work.....assuming you check for the file that is the right one.But when newer cards come out then there might be problems if you don't use OEMPnPDriversPath to instlal the driver first.
pmcx9 Posted August 29, 2004 Posted August 29, 2004 a little off topic but could one of these methods be used to determine a mainboard chipset and then install the necessary drivers ie distinguish between nforce2 or VIA chipsets for instance?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now