DPR Posted November 3, 2003 Posted November 3, 2003 I guess by path variable you mean:"UIHost"="%systemdrive%\\Resources\\LogonUI\\custom.exe"I think you mean "UIHost"="%WINDIR%\\Resources\\LogonUI\\custom.exe". But the problem is that the reg-files don't have a simple syntax for REG_EXPAND_SZ values. The above example would be ..."UIHost"=hex(2):25,00,41,00,4c,00,4c,00,55,00,53,00,45,00,52,00,53,00,50,00,52,\ 00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,44,00,6f,00,6b,00,75,00,6d,00,\ 65,00,6e,00,74,00,65,00,5c,00,45,00,69,00,67,00,65,00,6e,00,65,00,20,00,42,\ 00,69,00,6c,00,64,00,65,00,72,00,5c,00,4c,00,6f,00,67,00,6f,00,6e,00,20,00,\ 53,00,63,00,72,00,65,00,65,00,6e,00,73,00,5c,00,64,00,65,00,5c,00,53,00,75,\ 00,6e,00,73,00,65,00,74,00,20,00,43,00,61,00,76,00,65,00,73,00,2e,00,65,00,\ 78,00,65,00,00,00Let me quote the Platform SDK:REG_EXPAND_SZNull-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string, depending on whether you use the Unicode or ANSI functions.
Alanoll Posted November 3, 2003 Posted November 3, 2003 or you could do this.....;; Version 2.0;[version]signature = "$CHICAGO$"Compatible = 1AdvancedINF = 2.5,"You need a newer version of AdvPack.DLL!"LayoutFile = layout.inf, layout1.inf, layout2.inf[DefaultInstall]AddReg = Add[Add]HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","UIHost",0x00020000,"%systemroot%\Resources\LogonUI\logonui.exe"save as inf.and then somewhere probally after your other reg commands add this...."RunDll32.exe setupapi,InstallHinfSection DefaultInstall 128 %Path to INF%"
MOTS41 Posted November 4, 2003 Posted November 4, 2003 or you could do this.....;; Version 2.0;[version]signature = "$CHICAGO$"Compatible = 1AdvancedINF = 2.5,"You need a newer version of AdvPack.DLL!"LayoutFile = layout.inf, layout1.inf, layout2.inf[DefaultInstall]AddReg = Add[Add]HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","UIHost",0x00020000,"%systemroot%\Resources\LogonUI\logonui.exe"save as inf.and then somewhere probally after your other reg commands add this...."RunDll32.exe setupapi,InstallHinfSection DefaultInstall 128 %Path to INF%"if i understand you correctly, i would for example copy logonui.exe to $OEM$\$$\Resources\LogonUI\ then create logon.inf in $OEM$\$1\install\logon\ with the text you have in the (CODE) tags, then in one of the [GUIRUNONCE] .cmd files i would put:ECHO Installing custom logon screenRunDll32.exe setupapi,InstallHinfSection DefaultInstall 128 %systemdrive%\install\logon\logon.infis that right? or do i need the quotes or a different path for that last line?thanks a bunch
Geckotek Posted November 4, 2003 Posted November 4, 2003 All I am doing is the following and it works:Place my alternate logonui.exe in $OEM$\$$\Resources\LogonUI\ .Then I run the following during [GuiRunOnce]Windows Registry Editor Version 5.00 ;Set LogonUI to alternate[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"UIHost"="C:\\Windows\\Resources\\LogonUI\\logonui.exe"Since this works, can you tell me why I would want to change to either of the ways listed above?
Alanoll Posted November 4, 2003 Posted November 4, 2003 if you use the inf file....then you wouldn't have to even ponder if your Windows drive letter changes....the inf allows the use of a variable path, while the reg file you're using only allows for static.what if your drive for somereason became D: instead of C:?it would work, but only if you $OEM$ folder has this structure$OEM$|- C||- Windows\Resources\Logoniuiwhile the inf allows you to use $OEM$|- $$||- Resources\Logoniuiwithout problems..as for mots41, yes that SHOULD work.
crowman Posted November 4, 2003 Posted November 4, 2003 This is a cracking guide mate and the best I have seen
Geckotek Posted November 5, 2003 Posted November 5, 2003 Think you need to add the hacked sfc.dll to your Disable WFP guide.
runonce Posted November 7, 2003 Posted November 7, 2003 b0r3d,In your guide to creat a custom Boot Screen you mention making a BootLogo.cmd containing the following:bootcfg /RAW /A / Kernel=OEMKrnl.exe /ID 1bootcfg /Timeout 0and calling it from GuiRunOnce.[GUIRunOnce]bootlogo.cmdCan you tell me where I should place the Bootlog.cmd file, and in GuiRunOnce when the BootLogo.cmd is call do I have to indicate a location such as%systemdrive%/install/bootlogo.cmd so it knows where I placed the bootlogo.cmd file??? Great help guide.Thanks
Geckotek Posted November 7, 2003 Posted November 7, 2003 b0r3d,In your guide to creat a custom Boot Screen you mention making a BootLogo.cmd containing the following:bootcfg /RAW /A / Kernel=OEMKrnl.exe /ID 1bootcfg /Timeout 0and calling it from GuiRunOnce.[GUIRunOnce]bootlogo.cmdCan you tell me where I should place the Bootlog.cmd file, and in GuiRunOnce when the BootLogo.cmd is call do I have to indicate a location such as%systemdrive%/install/bootlogo.cmd so it knows where I placed the bootlogo.cmd file??? Great help guide.ThanksYES. You need to place it wherever you want (usually install folder) and yes you need to give full path in the [GuiRunOnce] section just ike you have shown.Bored needs to edit one of those lines:bootcfg /RAW /A / Kernel=OEMKrnl.exe /ID 1should be:bootcfg /RAW /A /Kernel=OEMKrnl.exe /ID 1(remove the space between the slash and Kernal.)
runonce Posted November 7, 2003 Posted November 7, 2003 Geckotek,I thought so, but I just wanted to make sure.Thanks for the correction as well.
runonce Posted November 10, 2003 Posted November 10, 2003 Using the directions in this thread I installed a SP1 Boot screen I obtained from ThemeXP.The install using VPC goes well and the custom Boot Screen is present after the restart but after the desktop loads the OS shuts down and restarts. This continues after each time the system restarts. I used two different premade ntoskrnl.exe files from ThemeXP and renamed them accordingly with the same results.I used the following code in my BootLog.cmd filebootcfg /RAW /A /Kernel=OEMKrnl.exe /ID 1bootcfg /Timeout 0Any ideas what I may be doing wrong.
Geckotek Posted November 10, 2003 Posted November 10, 2003 My guess would be the problem isn't related. Did you change anything else?The only other explanation I can come up with is you've used the wrong version. Make sure you have the version for your version of XP (SP1 or not.) But I think you'd have issues long before the desktop loads if you had the wrong version.
Alanoll Posted November 10, 2003 Posted November 10, 2003 you could be using a multiproc kernel instead of a single
b0r3d Posted November 10, 2003 Author Posted November 10, 2003 Okay, i fixed the typo in the bootlogo.cmd.You guys are pretty quick at picking these things up
runonce Posted November 10, 2003 Posted November 10, 2003 My guess would be the problem isn't related. Did you change anything else?The only other explanation I can come up with is you've used the wrong version. Make sure you have the version for your version of XP (SP1 or not.) But I think you'd have issues long before the desktop loads if you had the wrong version.My unattaned install worked fine until I attempted to use the custom Boot Screen.My Unattended Install consists of an Slipstreamed SP1A into my original XP Pro. therefore I assumed I should use the SP1 ntoskrnl.exe.Last night I used Resource Hacker to check the original ntoskrnl.exe in my Unattended install and it indicates it is File/Prod #: 5.1.2600.1151, which I though is the Non SP1 Boot Screen. Instead of using the SP1 ntoskrnl.exe should I be using the non SP1 ntoskrnl.exe. (Added: I tried usng the non Sp1 boot screen and it put me in a reboot loop after the boot screen appeared.)you could be using a multiproc kernel instead of a singleHow do I determine if I am using a Mlti Processor kernal? Thanks
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now