Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Giving Your Windows Cosmetic Surgery

- - - - -

  • Please log in to reply
195 replies to this topic

#26
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03

bootcfg /RAW /A / Kernel=OEMKrnl.exe /ID 1
bootcft /Timeout 0


this should be

bootcfg /RAW "/Kernel=OEMKrnl.exe" /A /ID 1
bootcft /Timeout 0

thats what works on mine anyway. The original didn't work and gave an error
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)


How to remove advertisement from MSFN

#27
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03

bootcfg /RAW /A / Kernel=OEMKrnl.exe /ID 1
bootcft /Timeout 0


this should be

bootcfg /RAW "/Kernel=OEMKrnl.exe" /A /ID 1
bootcft /Timeout 0

thats what works on mine anyway. The original didn't work and gave an error

WOW! Finally figured out the problem here. I haven't been able to get this working all along.

Both you guys have a typo. In the second line, bootcft should be bootcfg

#28
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
this is true....lol

i'm trying to make a script to auto select the right kernel for dualpro and single
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#29
gosh

gosh

    gosh 2.0

  • Patrons
  • 2,347 posts
  • Joined 03-October 03
  • OS:none specified
  • Country: Country Flag
good eye, i thought i was the only one that used that command.

-gosh

#30
Bachus

Bachus

    Advanced Member

  • Member
  • PipPipPip
  • 408 posts
  • Joined 25-July 03
Sorry if this ends up being a repost as I just got an error when I tried to post and refreshing the thread didn't display a new message...

Anyway, does anyone know a command I could use with bootcfg to add an entry to boot a logical drive? I'm using this guide to use the NT loader to boot Gentoo and I'm hoping I can avoid messing around with the MBR this way (which I'd have to do if I went with LILO or Grub).

#31
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03
Ok, so LOGONUI.EXE controls the logon screen. It is in the SYSTEM32 folder. I've tried just putting my new one in the $$/SYSTEM32 folder, but it is protected by WFP. I guess this means I have to pull the DVD out at some point, but I hate that solution.

Any other fancy ideas? I know we have ways of hacking the uxtheme.dll to match the crc value, but that's just one file and there are tons of alternate logonui.exe files. (Guess I could just pick one and figure out how to hack it.......hmmmm.)

#32
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
you can disable the WFP temporarly !! instead of pulling the DVD :)
and add a batch after your logon gets copied to reactivate the WFP or not active it at all...



#33
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03

you can disable the WFP temporarly !! instead of pulling the DVD :)
and add a batch after your logon gets copied to reactivate the WFP or not active it at all...



Ok, think I got it figured out.....I replaced the sfc.dl_ w/ the hacked version.

I also changed the following registry key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"SFCDisable"=dword:00000002

As I understand it, this will disable it at the next boot (when it usually replaces the file) and automatically enable it on the following boot (did this cuz I don't want other ppl screwing w/ system files later.)

Does this mean if the CD is put in at a later date, WFP will replace that file??

#34
XtremeMaC

XtremeMaC

    MSFN SuperB

  • Member
  • PipPipPipPipPipPipPipPipPipPip
  • 5,070 posts
  • Joined 13-October 03
  • OS:Windows 7 x64
  • Country: Country Flag
first you need to get the patched sfc_os.dll
I patched mine but dunno if its working
the last setup I tried had so many errors so I quit installing
http://www.MSFN.org/board/index.php?showto...\.dll&st=0
I see your post over there:)
direct link to webmedic's sfc_os.dll http://www.webmedic.net/SFC_OS.DL_

and then follow this
http://www.winguides...play.php?id=790
it also tells you how to patch it if you feel like hex editing:)



#35
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03
Thx, I'll let you know how it turns out. In the middle of an install now....not sure that I'll burn another ISO and run another install tonight or not....already 1:30am.

#36
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03

Simply modify the "UIHost" value in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

sample reg-file:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"UIHost"="C:\Windows\Resources\LogonUI\custom.exe"


Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#37
DPR

DPR

    Newbie

  • Member
  • 38 posts
  • Joined 21-October 03
You'll find a lot of information regarding themes, logon screens, ... here: http://www.themexp.org

@Alanoll: please quote correctly
Regards,

DPR

#38
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
my bad, i was in a rush...
the post is fixed and quoted.

thnx DPR for pointing that out, not lookin to take credit from anyone.



anyway finished the script and posting here....help from unforgiven1 on the for command

FOR /F "tokens=3 delims=  " %%A IN ('REG QUERY "HKLM\SYSTEM\ControlSet001\Control\Session Manager\Environment" /v NUMBER_OF_PROCESSORS') DO SET NUMBER_OF_PROCESSORS=%%A

bootcfg /copy /D "Windows XP Professional" /ID 1
if %NUMBER_OF_PROCESSORS%==2 goto DUAL
REM ----For Single proc
bootcfg /RAW "/Kernel=OEMKrnl.exe" /A  /ID 2
goto End
:DUAL
REM ----For Multiprocess/Hyperthread proc
bootcfg /RAW "/Kernel=dualKrnl.exe" /A  /ID 2
:End
bootcfg /Timeout 2
bootcfg /Default /ID 2

put it in its seperate batch file, as anything after it won't be run. Call it from wherever, but jsut its own batch, or at the VERY end of one of your last ones
i put it in cmdlines.txt at the end of my user creation but whatever is good.
I make a copy of the initial boot line so incase it doens't work i still have the original to boot from without editing files anymore.

Enjoy
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#39
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03



Simply modify the "UIHost" value in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

sample reg-file:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"UIHost"="C:\Windows\Resources\LogonUI\custom.exe"

Perfect! Thanks!

Yeah, very familiar w/ ThemeXP.org, but couldn't find that information....way too much to look through.

#40
DPR

DPR

    Newbie

  • Member
  • 38 posts
  • Joined 21-October 03

thnx DPR for pointing that out, not lookin to take credit from

Never mind ! :)

Yeah, very familiar w/ ThemeXP.org, but couldn't find that information....way too much to look through.


The UIHost value isn't mentioned on "themexp.org". But you'll find a lot of helpful links and a forum on this page.
Regards,

DPR

#41
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03



Simply modify the "UIHost" value in the registry under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

sample reg-file:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"UIHost"="C:\Windows\Resources\LogonUI\custom.exe"

For the life of me I can't get this to work as a reg file. Is it because I need to double the '\'?

IE:
Windows Registry Editor Version 5.00 

;This will set the LogonUI to an alternate
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"UIHost"="C:\\Windows\\Resources\\LogonUI\\logonui.exe"


#42
DPR

DPR

    Newbie

  • Member
  • 38 posts
  • Joined 21-October 03

For the life of me I can't get this to work as a reg file.  Is it because I need to double the '\'?

Yes it's a typo - I simply was too lazy to export the reg key. We need of course "\\" instead of the single backslash ...
BTW: I recommend using a REG_EXPAND_SZ and path variables instead of absolute paths.
Regards,

DPR

#43
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03

For the life of me I can't get this to work as a reg file.  Is it because I need to double the '\'?

Yes it's a typo - I simply was too lazy to export the reg key. We need of course "\\" instead of the single backslash ...
BTW: I recommend using a REG_EXPAND_SZ and path variables instead of absolute paths.

I don't understand the REG_EXPAND_SZ thing.

I guess by path variable you mean:
"UIHost"="%systemdrive%\\Resources\\LogonUI\\custom.exe"

#44
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03
Bored, you should add this to the gide on the first page. "How to customize the Logon screen"

#45
b0r3d

b0r3d

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 821 posts
  • Joined 03-August 03
I just did a big update with the msgina.dll.
Ill give the logon a fiddle in the next few days, and put that on there too.
Remember, you can wear your underpants four times without washing.
Forwards. Backwards. Inside out forwards, and inside out backwards.

#46
DPR

DPR

    Newbie

  • Member
  • 38 posts
  • Joined 21-October 03

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,00

Let me quote the Platform SDK:

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


Regards,

DPR

#47
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
or you could do this.....
;
; Version 2.0
;

[version]
signature = "$CHICAGO$"
Compatible = 1
AdvancedINF = 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%"
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)

#48
MOTS41

MOTS41
  • Member
  • 6 posts
  • Joined 03-November 03

or you could do this.....

;
; Version 2.0
;

[version]
signature = "$CHICAGO$"
Compatible = 1
AdvancedINF = 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 screen
RunDll32.exe setupapi,InstallHinfSection DefaultInstall 128 %systemdrive%\install\logon\logon.inf

is that right? or do i need the quotes or a different path for that last line?

thanks a bunch :)

#49
Geckotek

Geckotek

    Slave to M$

  • Member
  • PipPip
  • 255 posts
  • Joined 21-June 03
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?

#50
Alanoll

Alanoll

    CODE tags people, CODE tags!

  • Patrons
  • 5,496 posts
  • Joined 25-September 03
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\Logoniui

while the inf allows you to use
$OEM$
|- $$
||- Resources\Logoniui

without problems..


as for mots41, yes that SHOULD work.
Welcome to the Forum! Please READ Me!!
Alright, that's it for the site for now. Now on to the next project....which could concievable replace the current site :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users