tjhart85 Posted October 1, 2004 Share Posted October 1, 2004 Go to LogonUIand you'll find a program called LOGONUI, run it.Point it to the boot screen you use, and if the version doesn't match up, it'll convert it for you. It will probably make a copy of the file, and rewrite your BOOT.ini file, but thats not too big of a deal. The boot.ini file will point you to wherever LOGONUI places the new boot screen (it also renames it to KERNEL1).Find that screen, slipstream it into your disc, and you're in buisness.It really easy.Personally all i do is put my KERNEL1 file into my system32 directory, and set up a batch file that will rewrite my boot.ini file to point to KERNEL1, that way if for some reason the original is ever needed, it can be gotten easily. Link to comment Share on other sites More sharing options...
Denney Posted October 2, 2004 Author Share Posted October 2, 2004 @Alanoll: I've modified both and it seems to install the MP one still (but Windows still won't boot because it's not a MP system). I know I'm hexing the correct places because if I replace it manually, all works fine. @MHz: Doing that works. But Windows has a tendancy to freeze afterwards (probably because Windows was installing the MP version).Personally, I've just created a batch file that will replace after first boot (using my software selection program). That way, it's also selectable during setup so if I have another boot screen I can install it instead (using update CDs).So, I've made my own workaround for it and even found a bonus in using that workaround.Thanks for your help anyway guys. Link to comment Share on other sites More sharing options...
Alanoll Posted October 2, 2004 Share Posted October 2, 2004 heheI change my screen at first logon as well. But i use the bootcfg route, but I have like 12 different screens on my CD, and the batch file randomly selects which to use. Link to comment Share on other sites More sharing options...
esp Posted October 3, 2004 Share Posted October 3, 2004 Hey Alanoll, could you please explain the method you use to randomize bootscreens on the cd?I have 2 favs wich I can't choose from, with your help I could use 'em both, and maybe expand my choices in a while.Thanks (a lot) Link to comment Share on other sites More sharing options...
Alanoll Posted October 3, 2004 Share Posted October 3, 2004 well to use random.....SET /A NUM=%RANDOM% %% 2IF NUM=1 GOTO Num1:Num0(Stuff for screen one)GOTO END:Num1(Stumd for screen two)GOTO END:ENDThat's basically it. %RANDOM% is on EVERY NT system, and changes EVERY time you use it. %% 2 is modular arithmetic, and basically divides everything by 2 and stores the remainder in NUM, which can only be 0 1. If you used 3, you options would be 0 1 2. Link to comment Share on other sites More sharing options...
esp Posted October 4, 2004 Share Posted October 4, 2004 ok thanks for the code but where does the code go? I assume in a batch file that you call from [GuiRunOnce] in winnt.sif?Also, '(Stuff for screen one)' is the place to put what (exactly)?I'm guessing here but could this be correct for use with 6 different bootscreens?SET /A NUM=%RANDOM% %% 6IF NUM=1 GOTO Num1IF NUM=2 GOTO Num2IF NUM=3 GOTO Num3IF NUM=4 GOTO Num4IF NUM=5 GOTO Num5:Num0bootcfg /RAW /A /Kernel=OEMKrnl0.exe /ID 1bootcfg /Timeout 0 GOTO END:Num1bootcfg /RAW /A /Kernel=OEMKrnl1.exe /ID 1bootcfg /Timeout 0 GOTO END:Num2bootcfg /RAW /A /Kernel=OEMKrnl2.exe /ID 1bootcfg /Timeout 0 GOTO END:Num3bootcfg /RAW /A /Kernel=OEMKrnl3.exe /ID 1bootcfg /Timeout 0 GOTO END:Num4bootcfg /RAW /A /Kernel=OEMKrnl4.exe /ID 1bootcfg /Timeout 0 GOTO END:Num5bootcfg /RAW /A /Kernel=OEMKrnl5.exe /ID 1bootcfg /Timeout 0 GOTO END:END Link to comment Share on other sites More sharing options...
Alanoll Posted October 4, 2004 Share Posted October 4, 2004 Yes. That should work. I call my batch changing script from GuiRunOnce. and you found the ((Stuff for screen one)) lol. Link to comment Share on other sites More sharing options...
buletov Posted October 4, 2004 Share Posted October 4, 2004 I think you may have to change all these:i386\ntoskrnl.ex_i386\ntkrnlmp.ex_inside driver.cab, sp1.cab and/or sp2.cab.ntoskrnl.exentkrnlmp.exentkrnlpa.exentkrpamp.exedone that, works for me... Link to comment Share on other sites More sharing options...
Alanoll Posted October 4, 2004 Share Posted October 4, 2004 I should note...unless your system has over i think 3 gigs of ram, these will NEVER be used.ntkrnlpa.exentkrpamp.exe Link to comment Share on other sites More sharing options...
prathapml Posted October 5, 2004 Share Posted October 5, 2004 unless your system has over i think 3 gigs of ram, these will NEVER be used.Yes, we know that...But that day is not very far off. What with Doom3 and HL2 and all....And 64-bit PCs ship with plenty of RAM too. So we'd rather have all of the kernels modified than suddenly be surprised by discrepancies that happen when we have 1 out of 2 modules of 4 GB RAM taken out for testing, lol. Link to comment Share on other sites More sharing options...
esp Posted October 5, 2004 Share Posted October 5, 2004 I tried the random bootscreen but it doesn't work (yet).I called a oemkernel.cmd file with the codes above as the first thing in RunOnceEx. I think it has been executed but as I said but it doesn't work. Any ideas?Edit;I used a spare hd for testing the commands, it seems it doesn't work. I must have tried a trillion changes (some very doubtfull, but that's beside the point).Normally the script should add '/Kernel=OEMKrnl0.exe' tot the boot.ini, right? And that via bootcfg, right?Script in RunOnceEx:REG ADD %KEY%\001 /VE /D "Setting custom kernel..." /fREG ADD %KEY%\001 /V 1 /D "%systemdrive%\install\Kernel.cmd" /fScript in Kernel.cmd:cmdow @ /HIDSET /A NUM=%RANDOM% %% 10IF NUM=1 GOTO Num1IF NUM=2 GOTO Num2IF NUM=3 GOTO Num3IF NUM=4 GOTO Num4IF NUM=5 GOTO Num5IF NUM=6 GOTO Num6IF NUM=7 GOTO Num7IF NUM=8 GOTO Num8IF NUM=9 GOTO Num9:Num0bootcfg /RAW /A /Kernel=OEMKrnl0.exe /ID 1bootcfg /Timeout 0GOTO END:Num1bootcfg /RAW /A /Kernel=OEMKrnl1.exe /ID 1bootcfg /Timeout 0GOTO END:Num2bootcfg /RAW /A /Kernel=OEMKrnl2.exe /ID 1bootcfg /Timeout 0GOTO END:Num3bootcfg /RAW /A /Kernel=OEMKrnl3.exe /ID 1bootcfg /Timeout 0GOTO END:Num4bootcfg /RAW /A /Kernel=OEMKrnl4.exe /ID 1bootcfg /Timeout 0GOTO END:Num5bootcfg /RAW /A /Kernel=OEMKrnl5.exe /ID 1bootcfg /Timeout 0GOTO END:Num6bootcfg /RAW /A /Kernel=OEMKrnl6.exe /ID 1bootcfg /Timeout 0GOTO END:Num7bootcfg /RAW /A /Kernel=OEMKrnl7.exe /ID 1bootcfg /Timeout 0GOTO END:Num8bootcfg /RAW /A /Kernel=OEMKrnl8.exe /ID 1bootcfg /Timeout 0GOTO END:Num9bootcfg /RAW /A /Kernel=OEMKrnl9.exe /ID 1bootcfg /Timeout 0GOTO END:ENDEXIT Link to comment Share on other sites More sharing options...
buletov Posted October 5, 2004 Share Posted October 5, 2004 I should note...unless your system has over i think 3 gigs of ram, these will NEVER be used.ntkrnlpa.exentkrpamp.exethe trick is in that that all kernels must be modified, so that no one has digital signature;otherwise windows may replace your kernel with wrong one. Link to comment Share on other sites More sharing options...
esp Posted October 7, 2004 Share Posted October 7, 2004 anyone any ideas on my last post? Link to comment Share on other sites More sharing options...
Alanoll Posted October 7, 2004 Share Posted October 7, 2004 @espChange in ALL the IF's, NUM to %NUM% , but just the first one. So instead ofIF NUM=1insteadIF %NUM%=1 Link to comment Share on other sites More sharing options...
esp Posted October 7, 2004 Share Posted October 7, 2004 hmm, fresh install of windows, and I just ececute the kernel.cmd. It didn't work and so the boot.ini file does not change.I did a little research and this however, DOES change the boot.ini@echo offecho.bootcfg /RAW /A "/Kernel=OEMKrnl0.exe" /ID 1bootcfg /Timeout 0PAUSEEXITThere has to be a " to open and close.So my conclusion is that the first part doesn't work.I tried IF %NUM%=1 GOTO Num1, ... but no avail.Any clues? I will do further research myself but help is welcome. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now