How to combine the two bootloader boot.wim (32 and 64 bit) and Microsoft Diagnostic and Recovery Toolset (MSDaRT) 7.0 x86 / x64 in one distribution.

  The basis will be a 32-bit distribution of Windows 7 and it will add the loader from a 64-bit system. Mounted in a virtual drive iso-image of Windows 7 32-bit, open the disk and copy the contents to the section D: in the folder Win_Distr
  Create a partition D: Folder "boot_wim" boot.wim for the image and the folder "boot_mount" to mount this image.
  Run the command line on behalf of the administrator.
  Enter the command to mount.
  Code:
  dism /Mount-Wim /WimFile:D:\boot_wim\boot.wim /index:2 /MountDir:D:\boot_mount
  go in pacu "boot_mount" mounted image, then a folder "sources" and rename the file setup.exe in set64.exe (It is important that the number of characters in the file name must match the original, ie, 5).
  Further more bright in the folder with MUI files. Open the folder "ru-RU" and rename file in setup.exe.mui set64.exe.mui
  Now copy the renamed "set64.exe" in the folder "sources" of the main distribution that you must beat in the post "Win_Distr" folder and renamed "set64.exe.mui" there is in "ru-ru" folder.
  Next will rule "autorun.dll" file to avoid the type of error, "Failed to launch the setup application".
  We need a HEX-editor, I used HxD.
  Copy this file to somewhere on the section, as after editing the halyard is not possible to save the mount folder.
  Open the "autorun.dll" in the Hex-Editor.
  And further as in the pictures from top to bottom.
  We need to change only two options: replace setup.exe on set64.exe

1.

2. Arrange the settings as shown and click "OK".

3. Hit the F3 key for further search.

4.

5.

Copy the edited file "autorun.dll" back into the folder "sources" Mount image "boot.wim", agree on a replacement.
Now you need to unmount the boot.wim image.

To do this, type in the console:

Code:

dism /Unmount-Wim /MountDir:D:\boot_mount /commit

Code: without saving:

dism /Unmount-Wim /MountDir:D:\boot_mount / discard

 

Next, rename the modified boot.wim in boot64.wim and copy it to the folder "sources" of the main distribution.
So you get an overview of the two file boot.wim and boot64.wim in one distribution.

Well, now, to have the opportunity to select the bit depth of the system installation, you need to edit the configuration file storage - bcd
It is located in the folder "boot" distribution.

Start a command prompt as administrator and type the name in turn from the top to the bottom of the following commands:
To select a start installing Windows 7 32-bit
Code:

bcdedit /store D:\Win_Distr\boot\bcd /set {default} description "Запуск установки Windows 7 x86 (32-bit)"

bcdedit /store D:\Win_Distr\boot\bcd /set {default} device ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

bcdedit /store D:\Win_Distr\boot\bcd /set {default} osdevice ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

Next, add the command to run the Windows 7 64 bit.
Code:

bcdedit /store D:\Win_Distr\boot\bcd /copy {default} /d "Запуск установки Windows 7 x64 (64-bit)"

After that will be such a notification, "Record was successfully copied to .." in brackets "{}" will be given a unique identifier, the alphanumeric code and need to enter in the following two commands instead of the {GUID}.
Code:

bcdedit /store D:\Win_Distr\boot\bcd /set {GUID} osdevice ramdisk=[boot]\sources\boot64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

bcdedit /store D:\Win_Distr\boot\bcd /set {GUID} device ramdisk=[boot]\sources\boot64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

Adding MSDaRT x86 and x64 Windows 7 distribution.

Open with the hand http://nnm-club.ru/forum/viewtopic.php?t=478325, the image of "MSDaRT_7.0_RU_x86.iso" UltraIso in and pull out from there to somewhere boot.wim file.

Now rename it to "winRE_x86.wim"
Do the same with the way "MSDaRT_7.0_RU_x64.iso" and the boot.wim, which, rename it to "winRE_x64.wim"
Next, copy the two-.wim image in Windows 7 distribution, D: \ Win_Distr \ sources
To achieve both run DaRT-s from the Windows boot-menu, it needs to edit the "bcd" file (data warehouse configuration download).
It is located in the folder "boot" distribution.

Adding start MSDaRT_7.0 x86 (32 bit).
At the command prompt console, enter the following commands:
Code:

bcdedit /store D:\Win_Distr\boot\bcd /copy {default} /d "Среда восстановления Windows 7 + MSDaRT x86"

After that will be such a notification, "Record was successfully copied to the ..." and in brackets "{}" will be given a unique identifier, the alphanumeric code and need to enter in the following two commands instead of {GUID} and introduce them to the console, turn .

Code:

bcdedit /store D:\Win_Distr\boot\bcd /set {GUID} osdevice ramdisk=[boot]\sources\winRE_x86.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

bcdedit /store D:\Win_Distr\boot\bcd /set {GUID} device ramdisk=[boot]\sources\winRE_x86.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

 

Now add the command to start MSDaRT7.0 x64 (64 bit).
At the command prompt console, enter the following commands:
Code:

bcdedit /store D:\Win_Distr\boot\bcd /copy {default} /d "recovery Environment Windows 7 + MSDaRT x64"

After that will be such a notification, "Record was successfully copied to the ..." and in brackets "{}" will be given a unique identifier, the alphanumeric code and need to enter in the following two commands instead of {GUID} and introduce them to the console, turn .
Code:

bcdedit /store D:\Win_Distr\boot\bcd /set {GUID} osdevice ramdisk=[boot]\sources\winRE_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

bcdedit /store D:\Win_Distr\boot\bcd /set {GUID} device ramdisk=[boot]\sources\winRE_x64.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}

After all these manipulations, you have a boot-menu should appear the team to start the installation and MSDaRT 32 and 64 bit.
Now you have edited the file "bcd" which is in the boot folder, then copy it to a folder that is in the path of the distro: \ efi \ microsoft.
If anyone wishes to the menu was in Russian, as well as Russification "means: Windows Memory Diagnostic" (Windows Memory Diagnostics), type in the console, even this command:
Code:

bcdedit /store D:\Win_Distr\boot\bcd /set {bootmgr} locale ru-RU

and download the archive with the MUI files below link and unzip it in a folder with the distribution of Windows, (you should have a folder "Win_distr") in the directory "boot" in the folder "ru-ru".

Download an archive of MUI-files:http://narod.ru/disk/40237815001/MUI_ru-ru.7z.html

Well, almost all, you now have the distribution of Windows 7 with two loaders and two MSDaRT both architectures.vitalik9, hobbit25,

http://forum.oszone.net/post-1837128-148.html

posted @ 2016-05-27 11:00  老司机聊封装  阅读(873)  评论(0编辑  收藏  举报