Hi
Pyron you made an excellent job ! Thanks a LOT !!!
But I got a problem with SetDevicePath.exe
I'm working on my multi boot DVD and Win2000 SP4 (slipstreamed from SP2 to SP4)
When I test my DVD, windows doesen't find any driver in my driver folder. I used setup_dbg.exe to test presetup.cmd.
Everything works well, but before the system reboot, I open a new commandline interpreter to use REG.EXE and to read the registry value
HKLM\Software\microsoft\windows\currentversion\DriverPath
However the returned value is %SystemRoot%\inf
I then launch manually SetDevicePath.exe and re-read the registry tu check the change.
REG.EXE returns the same string : %SystemRoot%\inf
I tried to execute SetDevicePath.exe on a fully installed windows 2000 and used regedit to check the change.
I get the same behavior.
I know that your file is win 2000 compatible because it worked.
I switched my project into multiboot with CD Shell because your executable failed during my last tests. So I restarted from scratch my DVD and implemented cd shell.
Have someone observed the same thing ? Did I forgot a step ??
Here is my essential DVD structure
\
SETUP
2K
PRO
I386
DRIVERS
2K
<many subfolders>
2PRO
SYSTEM32
Now my Presetup.cmd
REM +=======================================================+
REM | Comment out what you don't need. These are mostly |
REM | examples to give you an idea of how it all works. |
REM +=======================================================+
SET DRIVERPATH=DRIVERS\2K
REM +=======================================================+
REM | Finding CDROM driveletter |
REM |-------------------------------------------------------|
set tagfile=\CDROM_NT.5
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagfile%" set CDDRIVE=%%i:
REM +=======================================================+
REM +=======================================================+
REM | We should be already in system32, this is just to be |
REM | sure |
REM |-------------------------------------------------------|
%SystemDrive%
cd %SystemRoot%\system32
REM +=======================================================+
REM +=======================================================+
REM | Trick Windows into identifying the original setup.exe |
REM | deleting the setup.exe will not work, just rename it |
REM |-------------------------------------------------------|
if exist setup.exe ren setup.exe setupold.exe
if exist setupORG.exe ren setupORG.exe setup.exe
REM +=======================================================+
%CDDRIVE%\%DRIVERPATH%\SetDevicePath.exe %CDDRIVE%\%DRIVERPATH%
start %CDDRIVE%\%DRIVERPATH%\WatchDriverSigningPolicy.exe
REM I want to check that windows runs as I and Pyron want !
cmd
REM +=======================================================+
REM | Finally start the installation with the originally |
REM | given parameters |
REM |-------------------------------------------------------|
start /WAIT setup.exe %*
REM +=======================================================+
EDIT : I'm wondering if setdevicepath.exe fails since I burned my work on a DVD
This post has been edited by Necros: 17 August 2005 - 09:11 AM