Install Windows 8 Ent(X86) Build 9200 on PC's Without NX Support

Discussion in 'Windows 8' started by FaiKee, Jul 4, 2013.

  1. Broman400

    Broman400 MDL Novice

    Dec 28, 2009
    4
    0
    0
    How can I update windows without it replacing ntoskrnl.exe
     
  2. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    None of them :mad: and I'm mad at myself.
     
  3. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,303
    5,816
    150
  4. Broman400

    Broman400 MDL Novice

    Dec 28, 2009
    4
    0
    0
    So if Windows Update won't work, how can I install updates for my computer?
     
  5. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,303
    5,816
    150
  6. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    If I want to install it, I need to boot from the setup or I can install it from my actual OS?
     
  7. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,303
    5,816
    150
    You can do it either way, if install within OS, launch the setup.exe in sources folder, otherwise it will install directly in the current drive and put the current OS in wondows.old. :D
     
  8. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    Ok, I'll try it.
     
  9. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    #29 sanya353, Jul 8, 2013
    Last edited: Jul 8, 2013
    When 'Getting files reday for installation' is about 27%, shows the pc need to restart and than show the error 0x0000005D.

    OMG!!! I did it like this and it's working. Thank you so much, guys!!!

    Win8P4.jpg

    Install Windows 8 files and apply NX patch

    This is how I installed Windows 8 on an empty harddisk (i.e. there were no existing partitions):


    1. Copy w8nxpatch.exe, imagex.exe (hxxp://raidcalculator.wordpress.com/2012/10/19/download-imagex-exe-without-installing-waik/) and <Windows 8 ISO>\sources\install.wim to a pen drive/external hard drive.
    2. Boot the target computer from a Windows 7 CD.
    3. Press Shift + F10 when the Install Windows window appears.
    4. Create and mount a NTFS partition:
      Code:

      diskpartselect disk 0create partition primaryformat fs=ntfs quickactiveassign letter=Wexit
    5. Now connect the pen drive/external hard drive and replace P: in the commands below with its drive letter.
    6. Apply Windows 8 image on the partition:
      Use this for Windows 8 Pro:Code:

      P:\imagex.exe /apply P:\install.wim 1 W:\
      or this for Windows 8:Code:

      P:\imagex.exe /apply P:\install.wim 2 W:\
    7. Copy and run w8nxpatch.exe:
      Code:

      copy P:\w8nxpatch.exe W:\W:\w8nxpatch.exe W:\Windows\System32\ntoskrnl.exe
    8. Install BCD and write MBR:
      Code:

      bcdboot W:\Windows /s W:bootsect /nt60 W: /force /mbr
    9. Reboot:
      Code:

      wpeutil reboot


    Boot Windows 8


    1. Windows 8 starts and complains
      The operating system couldn't be loaded because the digital signature of a file couldn't be verified
      File: \Windows\system32\ntoskrnl.exe
      Error code: 0xc0000428

      This error occurs because the file contents of ntoskrnl.exe do not match its digital signature. It is caused by the NX patch.
      Press F8 to see the Startup Settings. Then press F7 to Disable driver signature enforcement.
    2. Setup will continue and restart two times. Don't let Windows 8 boot on the second reboot. Boot the Windows 7 setup CD instead. Wait for the Install Windows window and press Shift + F10.
    3. Run the command
      Code:

      bcdedit /set {default} RecoveryEnabled no
      to prevent Automatic Repair on boot which would end in a 0x0000005D UNSUPPORTED_PROCESSOR BSOD.
    4. Finally run
      Code:

      wpeutil reboot
      and boot into Windows 8.


    Reapply patch after update of ntoskrnl.exe

    If Windows Update replaces ntoskrnl.exe, you have to reapply the NX patch:


    1. Boot the target computer from a Windows 7 CD.
    2. Press Shift + F10 when the Install Windows window appears.
    3. I assume that w8nxpatch.exe was already copied to the root of the system partition and that the system partition is C:
      Run
      Code:

      C:\w8nxpatch.exe C:\Windows\System32\ntoskrnl.exewpeutil reboot


    DISABLE_INTEGRITY_CHECKS

    Neither
    Code:

    bcdedit /set LoadOptions DISABLE_INTEGRITY_CHECKS

    nor
    Code:

    bcdedit /set NoIntegrityChecks On

    will help you get rid of the digital signature verification error. The reason is that winload.exe (the program which is responsible for the boot menu) replaces DISABLE_INTEGRITY_CHECKS with spaces.NoIntegrityChecks On is basically the same as LoadOptions DISABLE_INTEGRITY_CHECKS, since it only adds /DISABLE_INTEGRITY_CHECKS to the start options which means that it also gets replaced by spaces. Seemingly Microsoft removed this since it could be used by viruses.

    One way to bypass the warning is to enable the TESTSIGNING option and to sign ntoskrnl.exe with your own signature. I don't know how to do this, but maybe someone finds out and wants to share it with us. Here is some info on this method: hxxp://forums.mydigitallife.net/threads/38041-How-to-forever-disable-driver-signature-enforcement-in-Windows-8?p=646204&viewfull=1#post646204

    Another possible solution would be to patch winload.exe to not check the digital signature of ntoskrnl.exe anymore. Since winload.exe is also digitally signed and is checked by bootmgr, you would also have to patch bootmgr. However, I would not recommend this method since this would mean that you have to watch out for Windows Updates on three files: ntoskrnl.exe, winload.exe and bootmgr. Read hxxp://reboot.pro/topic/16824-how-to-modify-bootmgr-of-windows-8/ if you are interested in this method.

    Notes


    • It is not necessary to call PEChecksumFix.exe after w8nxpatch.exe. w8nxpatch.exe automatically fixes the checksum. PEChecksumFix.exe is only needed if you want to patch ntoskrnl.exe manually using a hex editor.
    • w8nxpatch.exe and PEChecksumFix.exe do only run on Windows Vista or later. This is because I compiled them in Visual C++ 2012 which does not compile for XP by default and I forgot to change this option. If this is a problem for someone: I included the source code, so you can compile it yourself or I can do it for you if you don't know how to do that.
    • You don't have to runCode:

      bcdedit /set nx AlwaysOff
      to get the patch to work.
     
  10. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    #30 sanya353, Jul 8, 2013
    Last edited: Jul 8, 2013
    Just one more thing, where can I get 'w8nxpatch.exe' file?
     
  11. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,303
    5,816
    150
  12. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
  13. Jan1

    Jan1 MDL Novice

    May 20, 2010
    48
    257
    0
    Windows Update runs flawlessly with patched ntoskrnl.exe, but if there is an update that replaces ntoskrnl.exe you will have to patch it again, otherwise you'll get the 0x0000005D BSOD on boot.
     
  14. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    #34 sanya353, Jul 9, 2013
    Last edited: Jul 9, 2013
    I searched Updates with Windows Update and when I clicked to Install Updates just keep getting the message 'Downloading Updates'.

    It's working now.
     

    Attached Files:

  15. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    Is there any way to skip the 'F8 + F7' method?
     
  16. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,303
    5,816
    150
  17. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    I installed it and it's woking, but when I want to install an app I get this error: 0x80070422
     
  18. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,303
    5,816
    150
    Then revoke the action by putting a "no" in place of the "yes" in the command.

    You are running a windows with patched ntoskrnl on a (old)machine that it's not designed to work on, so don't expect it to work like a normal win8 could work. Actually I wouldn't suggest people to use it as a main OS. :D
     
  19. sanya353

    sanya353 MDL Novice

    Jul 5, 2013
    35
    4
    0
    #39 sanya353, Jul 12, 2013
    Last edited: Jul 12, 2013
    In this command?: bcdedit /set {current} RecoveryEnabled No
    It's worked earlier, but I installed Windows Updates and after reboot can't load the os. Now it's working everything except App Store.
     
  20. FaiKee

    FaiKee Misinformation spreader

    Jul 24, 2009
    4,303
    5,816
    150
    Yup, if the problem occured after you applied the cmd, then it should be the simplest way to resolve it. :D