evilvoice, on Sep 24 2004, 11:41 PM, said:
need more under version
[Version]
Signature="$Windows NT$"
MajorVersion=5
MinorVersion=1
BuildNumber=2600
ok, i didn't know if this had changed for SP2, do you think it could be caused by the fact that I recab my svcpack.inf to svcpack.in_ ? normally I would have deleted the .in_ and replaced it with a .inf.
I am currently installing to test, will edit later. If negative, I'll try with the %* thing
EDIT: seemed to get stuck during the peripherics installation process, I don't like that, maybe i'm not patient (was at 100%, reading once in a while from the cd but no hd activity for over 10 minutes) so I decided to retry with an .inf just to be sure, anyway it's not a couple of bytes that will bother. More edit later
EDIT2: this time it did not get stuck, but svcpack was not run, time to try the %* i guess
EDIT3: even with %* it continued to runonceex... what am I doing wrong? I got the latest setup.ex_ from last page or the one before, I posted my presetup.cmd below so you can check, and my testing method is explained on last page. Normally at svcpack.inf it should run the test.cmd file and this file makes a command window open saying TEST TEST TEST before pausing. So I can't miss it! Anyway check my code it's on the previous page! and I added the missing version lines. If you need more info PM me please
Just to be sure I got everything right (sorry if it makes a long post)
REM +=======================================================+
REM | Finding CDROM driveletter |
REM |-------------------------------------------------------|
set tagfile=\WIN51
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 +=======================================================+
REM +=======================================================+
REM | Do other stuff like copying useful tools (optional) |
REM | or
extract softwares like .NetFramework (optional) |
REM |-------------------------------------------------------|
cd %Systemdrive%\install\Applications
%CDDRIVE%\$OEM$\bin\7za.exe x -y -aoa %CDDRIVE%\$OEM$\NetFrameworkSP1.7z
REM +=======================================================+
REM +=======================================================+
REM | If you are using compressed drivers unpack them here: |
REM |-------------------------------------------------------|
%SystemDrive%
cd \
%CDDRIVE%\$OEM$\bin\7za.exe x -y -aoa %CDDRIVE%\$OEM$\drivers.7z
REM +=======================================================+
REM +=======================================================+
REM | Scanning for driverdirectories |
REM | ONLY USE ONE OF THE FOLLOWING COMMANDS, NOT BOTH! |
REM |-------------------------------------------------------|
REM | This one is for uncompressed drivers on the CD |
REM %CDDRIVE%\OEM\bin\SetDevicePath.exe %CDDRIVE%\OEM\drivers
REM | This one is for your unpacked drivers on your HD |
%CDDRIVE%\$OEM$\bin\SetDevicePath.exe %SystemDrive%\drivers
REM +=======================================================+
REM +=======================================================+
REM | Enable installation of unsigned drivers |
REM |-------------------------------------------------------|
start %CDDRIVE%\$OEM$\bin\WatchDriverSigningPolicy.exe
REM +=======================================================+
REM +=======================================================+
REM | Prepare later installations (optional) |
REM |-------------------------------------------------------|
REM SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx
REM REG ADD %KEY%\998 /V 1 /D "%CDDRIVE%\OEM\bin\t-13_install.cmd" /f
REM REG ADD %KEY%\999 /V 1 /D "REG ADD %KEY%\zzz999 /V 1 /D %CDDRIVE%\OEM\bin\postinstall.cmd /f" /f
REM
I REM all those lines cause I do my RunOnceEx stuff during cmdlines.txt
+=======================================================+
REM +=======================================================+
REM | Finally start the installation with the originally |
REM | given parameters |
REM |-------------------------------------------------------|
start /WAIT setup.exe %1 %2 %3 %4
REM
as I said, I will try with %* later
+=======================================================+
REM +=======================================================+
REM | Cleanup |
REM RD /Q /S %SystemDrive%\drivers
REM | Reset DevicePath |
REM %CDDRIVE%\$OEM$\bin\SetDevicePath.exe %SystemRoot%\Inf
REM
I voluntarily let the drivers on the drive
+=======================================================+