Problem loading driver when using %OEM% OemPreinstall=Yes breaks F6 driver load
#1
Posted 06 January 2004 - 03:27 PM
After some investigation I found that this one line in the winnt.sif file causes the problem:
OemPreinstall=Yes
If I set this line to No, F6 works correctly, but nothing in %OEM% is used. It seems to be one or the other.
Is there a way to have F6 continue to work and still have the contents of %OEM% used?
DrKhyron
#3
Posted 06 January 2004 - 03:49 PM
#4
Posted 06 January 2004 - 04:13 PM
@AaronXp - how about a little enlightenment?
#5
Posted 06 January 2004 - 04:46 PM
Set OEMPreinstall=No so that F6 works for loading the driver.
Then use GuiRunOnce to run a program that does all of the stuff in %OEM% that would have been done if OEMPreinstall=Yes, using DetectCD.exe to find the CDROM with %OEM%.
Is this what was being suggested?
If I need DetectCD.exe to find the CDROM, how do I run DetectCD.exe which would be on the CDROM that I need to be finding?
#6
Posted 06 January 2004 - 04:53 PM
-gosh
#7
Posted 06 January 2004 - 05:28 PM
drkhyron, on Jan 6 2004, 10:46 PM, said:
Set OEMPreinstall=No so that F6 works for loading the driver.
Then use GuiRunOnce to run a program that does all of the stuff in %OEM% that would have been done if OEMPreinstall=Yes, using DetectCD.exe to find the CDROM with %OEM%.
Is this what was being suggested?
yup...
Quote
Didn't think of that!
#8
Posted 06 January 2004 - 06:26 PM
#9
Posted 06 January 2004 - 08:13 PM
Or ... you could use a js (or vbs [argh]) script to go through all the cdroms on the system looking for DetectCD.exe in a known folder on the cd.
If, for whatever reason, you choose the latter, I can help out if you don't know how.
[EDIT] I just realized....duh...if you go through all the cdroms on the system, you already know what the cdrom drive is. Now, it's a matter of finding which cdrom has the xp install cd in it
[EDIT AGAIN] Ya know, this makes no sense either. You'd still have to put the script somewhere and if you know where it is, you can know where DetectCD.exe is. It's been a long day, i'm not thinking str8 :/ Option 1 is the better solution, i think. Good night.
#10
Posted 07 January 2004 - 11:46 AM
brent24, on Jan 6 2004, 08:13 PM, said:
If I set OEMPreinstall=Yes to use %OEM%, loading a specific driver using F6 breaks.
I'd like #1 a fix for this problem so that I can set OEMPreinstall=Yes AND use F6.
or
#2 a work around that allows me to use the F6 driver load and somehow load the items that are in %OEM%
So far I like Gosh's suggestion to have 2 types of install, one for full unattended install and another for using F6 and having the engineer do more themselves.
I also like AaronXP's suggestion, but still need to understand how to reference an install program on the CD when the OS loads the first time.
BTW, I'm working on Win2K, but will apply what I learn to Win2K3 later.
#11
Posted 07 January 2004 - 01:03 PM
You *might* be able to run a cmd file with IF EXIST / SET commands then run detectcd.exe straight after. The environment variable will disappear when the cmd file is finished, but detectcd.exe should set a permanent environment variable from then on. I'm only just speculating at the moment.
#12
Posted 07 January 2004 - 01:30 PM
@echo off IF EXIST d:\i386\winnt.exe ( set CDROM=d:\i386\$oem$\ )ELSE IF EXIST e:\i386\winnt.exe ( set CDROM=e:\i386\$oem$\ )ELSE IF EXIST f:\i386\winnt.exe ( set CDROM=e:\i386\$oem$\ )ELSE ( And so on... ) %CDROM%\Drivers\4523\Setup.exe -s -f1"%CDROM%\Drivers\4523\Setup.iss" %CDROM%\Drivers\Live51\Audio\Setup\setup.exe -s -f1"%CDROM%\Drivers\Live51\Audio\Setup\setup.iss" EXIT
#13
Posted 07 January 2004 - 02:06 PM
set MYCD=%CD%
This will set MYCD to the current directory.
#14
Posted 07 January 2004 - 02:41 PM
[SetupHotfixesToRun]
update.exe -q -n
DetectCD.exe
Q330994.exe /Q:A /R:N
etc....
etc....
etc....
I'm not sure if DetectCD.exe sets a local machine variable or a current user variable but if it's the machine variable I think it should still be accessible at first boot time.
I'm not sure if all this made sense, comments?
#15
Posted 07 January 2004 - 02:58 PM
when are you running the stuff from $OEM$? from cmdlines.txt or GUIRunOnce
#16
Posted 07 January 2004 - 03:16 PM
#17
Posted 08 January 2004 - 06:55 AM
I don't know why it wouldn't run from [setuphotfixestorun], its worth looking into.
#18
Posted 08 January 2004 - 12:08 PM
Thanks IcemanND for the DetectCD utility.
Thanks all!
DrKhyron



Help
Back to top










