Jump to content

Recommended Posts

Posted

OK, I found it;

The example below works BUT, and I don't know if that is a problem, the script adds a space after

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional test" /noexecute=optin /fastdetect /Kernel=OEMKrnl1.exe

So it becomes this after 8 tries;

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional test"********/noexecute=optin /fastdetect /Kernel=OEMKrnl1.exe

The * are the spaces (it's hard to illustrate spaces in this forum)

This is the working script

@echo off

SET /A NUM=%RANDOM% %% 10

IF %NUM%==1 GOTO Num1

IF %NUM%==2 GOTO Num2

IF %NUM%==3 GOTO Num3

IF %NUM%==4 GOTO Num4

IF %NUM%==5 GOTO Num5

IF %NUM%==6 GOTO Num6

IF %NUM%==7 GOTO Num7

IF %NUM%==8 GOTO Num8

IF %NUM%==9 GOTO Num9

:Num0

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl0.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num1

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl1.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num2

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl2.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num3

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl3.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num4

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl4.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num5

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl5.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num6

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl6.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num7

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl7.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num8

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl8.exe" /ID 1

bootcfg /Timeout 0

GOTO END

:Num9

bootcfg /RAW "/noexecute=optin /fastdetect /Kernel=OEMKrnl9.exe" /ID 1

bootcfg /Timeout 0

GOTO END

EXIT


Posted

kinda strange....

by default, /fastdetect and the /noexecute are already included. thought maybe not with optin set. I'm not sure, i removed that whole thing before SP2 was final. Perhaps that's what's causing the spaces. BUt even with the spaces it should still work fine

Posted
by default, /fastdetect and the /noexecute are already included.

It would be if I still used your first example bootcfg /RAW /A WITH the /A

BUT then there would be another problem because every time you execute the kernel.ccmd it would add /Kernel=OEMKrnl0.exe to the first line.

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional test" /noexecute=optin /fastdetect /Kernel=OEMKrnl1.exe

Would become

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional test" /noexecute=optin /fastdetect /Kernel=OEMKrnl1.exe /Kernel=OEMKrnl3.exe /Kernel=OEMKrnl8.exe /Kernel=OEMKrnl5.exe

That's why I chose to dump the /A and rewrite the entire line everytime. It wouldn't matter if this whole thing was just for a unique bootwindow on the cd, you would only use the kernel.cmd once every install but I'm planning to use it on a daily basis on my own computer.

  • 3 weeks later...
Posted

I have this problem during my unattended install of Windows XP. The booting of the cd works fine and so does the formatting, but right after that, I get this message:

The following value in the SIF-file that Setup uses is damaged or missing:

The value 0 (Zero) on the line with the key ntoskrnl.exe in the section [sourceDisksFiles]

Than the system says that setup cannot continue. Does anyone how to solve this?

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...