Advertisement
Guest User

Windows 7 aio how to

a guest
Jul 6th, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.47 KB | None | 0 0
  1. Windows x86 and x64 AIO, full instructions (This one can repair and upgrade x64)
  2.  
  3. I think I've retraced my steps from when I created my AIO capable of repairing, installing, and upgrading both x86 and x64 systems. I am posting it here because I think such a guide should have its own thread, to make it easy to find.
  4.  
  5. I should be seeing a torrent at some point, but for those of you who already have the materials:
  6.  
  7. Materials required:
  8. Windows 7 x32 install media
  9. Windows 7 x64 install media
  10. Hex editor with search-and-replace, and support for unicode strings. I recommend HxD ( http://mh-nexus.de/en/hxd/ ) if you do not already have this.
  11. WAIK 2.0 ( http://www.microsoft.com/en-us/download/details.aspx?id=5753 )
  12.  
  13. Optional materials:
  14. Windows 7 Enterprise x32 & x64 install media
  15. (only required if you wish to have these editions available)
  16.  
  17. Stage 1: arranging files
  18.  
  19. Okay, in this guide we shall be working on the D: drive, but any drive letter you have available shall do.
  20.  
  21. In this stage we set up a directory structure to be used for the rest of the stages.
  22.  
  23. Firstly, create the folders:
  24. D:\AIO\DVD
  25.  
  26. and
  27.  
  28. D:\AIO\WIMs
  29.  
  30. Next, extract contents of the x86 DVD into D:\AIO\DVD
  31.  
  32. Delete all .clg files from D:\AIO\DVD\sources
  33.  
  34. delete ei.cfg from D:\AIO\DVD\sources
  35.  
  36. Then move install.wim from D:\AIO\DVD\sources to D:\AIO\WIMs, and rename it ULTx86.wim
  37. Then extract install. wim from the x64 DVD to WIMs, and rename it ULTx64.wim
  38.  
  39. And optionally, extract the install.wim from the x86 and x64 Enterprise DVDs, renaming them ENTx86.wim and ENTx64.wim respectively.
  40.  
  41. Finally, extract the content of the sources directory (except install.wim and ei.cfg) from the x64 DVD to D:\AIO\DVD\sourc64, and copy the setup.exe from the x64 DVD to D:\AIO\DVD as setup64.exe
  42.  
  43. Stage 2: Building the WIM
  44.  
  45. Now we must build the install.wim (that's the file that contains the different versions of windows, if you didn't know), by exporting images from the .WIMS we have.
  46.  
  47. Assuming you've done exactly as I've said, open the deployment tools command prompt (from WAIK), and enter these commands:
  48.  
  49. Code:
  50.  
  51. Imagex /export "D:\AIO\WIMs\ULTx86.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 STARTER"
  52. Imagex /export "D:\AIO\WIMs\ULTx86.wim" 2 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME BASIC"
  53. Imagex /export "D:\AIO\WIMs\ULTx86.wim" 3 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME PREMIUM"
  54. Imagex /export "D:\AIO\WIMs\ULTx86.wim" 4 "D:\AIO\DVD\sources\install.wim" "Windows 7 PROFESSIONAL"
  55. Imagex /export "D:\AIO\WIMs\ENTx86.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 ENTERPRISE"
  56. Imagex /export "D:\AIO\WIMs\ULTx86.wim" 5 "D:\AIO\DVD\sources\install.wim" "Windows 7 ULTIMATE"
  57.  
  58. Imagex /export "D:\AIO\WIMs\ULTx64.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME BASIC (x64)"
  59. Imagex /export "D:\AIO\WIMs\ULTx64.wim" 2 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME PREMIUM (x64)"
  60. Imagex /export "D:\AIO\WIMs\ULTx64.wim" 3 "D:\AIO\DVD\sources\install.wim" "Windows 7 PROFESSIONAL (x64)"
  61. Imagex /export "D:\AIO\WIMs\ENTx64.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 ENTERPRISE (x64)"
  62. Imagex /export "D:\AIO\WIMs\ULTx64.wim" 4 "D:\AIO\DVD\sources\install.wim" "Windows 7 ULTIMATE (x64)"
  63.  
  64. You can skip the Enterprise ones if you chose not to include Enterprise. Well, you could skip any of them, but I reccommend including all you can, as it does not take up much additional room (I assume WIM automatically reuses files), and you never know when you might need to do a clean install for someone!
  65.  
  66. Sage 3: Modifying the BCD
  67.  
  68. Here we modify the DVD's BCD, so as to add an x64 recovery option. The recovery option is just that: it cannot install. To improve user transparency, the boot timeout shall be set to 3 sec, so as to be almost unnoticeable if not needed.
  69.  
  70. Ok, open an administative command prompt.
  71.  
  72. Navigate to D:\AIO\DVD
  73.  
  74. Now make a copy of the default loader by executing:
  75.  
  76. Code:
  77.  
  78. bcdedit /store boot\bcd /copy {default} /d "x64 Recovery Mode"
  79.  
  80. This command shall tell you the GUID of the copy made, make a note of it.
  81.  
  82. Next set the new loader to load the 64 bit PE by executing:
  83. Code:
  84.  
  85. bcdedit /store boot\bcd /set {GUID} device ramdisk=[boot]\sourc64\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
  86. bcdedit /store boot\bcd /set {GUID} osdevice ramdisk=[boot]\sourc64\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
  87.  
  88. (Replace {GUID} with the GUID you noted down)
  89.  
  90. Finally, alter the boot timeout by executing:
  91. Code:
  92.  
  93. bcdedit /store boot\bcd /timeout 3
  94.  
  95. Stage 4: getting upgrade to work
  96. Now, the one problem left is upgrade installs on 64 bit. This involves hex editing files, and so breaks the digital signature, causing the ugly yellow UAC prompt. This is, I am almost ashamed to say, the first of two such cosmetic glitches.
  97.  
  98. Now first open D:\AIO\DVD\setup64.exe in your hex editor. Search and replace all instances of the unicode string "sources\" with "sourc64\". Although this breaks the signature, it does not break the program, because both strings are the same length.
  99. Now, open D:\AIO\DVD\sourc64\autorun.dll, and replace all instances of the unicode string "sources\setup.exe" with "sourc64\lunch.cmd"
  100.  
  101. (in case you were wondering, it was going to be launch.cmd, but I had to drop one letter...)
  102.  
  103. Now, create a file in D:\AIO\DVD\sourc64 called lunch.cmd containing exactly this:
  104.  
  105. Code:
  106.  
  107. setup.exe /m:sourc64 /installfrom:\sources\install.wim
  108.  
  109. NOTE: If you are using a SP1 slipstreamed image, lunch.cmd should instead contain exactly this:
  110.  
  111. Code:
  112.  
  113. setup.exe /installfrom:\sources\install.wim
  114.  
  115. This is the cause of the second cosmetic glitch. A command prompt is briefly visible before setup is launched.
  116.  
  117. Now, the autorun.inf must be modified so that it runs setup64 on x64 systems. Modify it so it contains:
  118. Code:
  119.  
  120. [Autorun.Amd64]
  121. open=setup64.exe
  122. icon=setup64.exe,0
  123.  
  124. [Autorun]
  125. open=setup.exe
  126. icon=setup.exe,0
  127.  
  128. Now, finally, we're ready to master a DVD. Open up the deployment tools command prompt, and enter:
  129. Code:
  130.  
  131. oscdimg.exe -l7_AIO -t10/22/2009:00:00 -m -u2 -bD:\AIO\DVD\Boot\etfsboot.com D:\AIO\DVD D:\7_AIO.ISO
  132.  
  133. Do this, test it. Tell me if it goes wrong, because my iso works perfectly, so I would have typed up the instructions wrong.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement