Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Want to edit Bootmgr's directory path.

08 May 2011   #1

Windows 7 Pro 64bit
Want to edit Bootmgr's directory path.

Ok I use a program called Hirens to do all kinds of stuff at work, and we know we can put 1 OS into the root directory and it will start a install of that OS. What I want to do is have it set up so I can install any OS I have on my portable hard drive. I have the file system set up like this..
M:/installwindows In this folder I have listings for all the OS's I own.
M:/installwindows/windows7 Here is the files off of the Windows 7 install disk.

My Issue is When I got to launch the install it cant find "File /boot/bcd" the reason for that is the bootmgr is set to only work in a root folder so its not looking in /installwindows/windows7/boot for file BCD. I have read alot about using a hex editor to change this but can seem to get it to work. I normally dont post on forums, I tend to find the info for my self but I have been at this for about a week with no change in my issue. If any one has any idea please let me know.

PS I hope I put this in the correct section of the forum, if not I do apologize.

My System SpecsSystem Spec
08 May 2011   #2


Cleanest method of multi-booting is via the BIOS by installing each OS with the other HD's unplugged, then setting preferred to boot first in BIOS setup, booting any others using the one-time BIOS Boot Menu keys. This keeps them independent to come and go as you please.

If you're going to interlock them with a WIndows-managed Dual Boot, use EasyBCD 2.02 to Add OS's as it is easy as a few clicks. It will even add Linux distros to avoid GRUB corruption of Win7 on the same HD.

Don't know if this answers your question sufficiently, but this is what 99% of users want to know.
My System SpecsSystem Spec
08 May 2011   #3

Windows 7 Pro 64bit

Thanks for fast response.
Im not doing a multi boot, I work at a computer repair shop in my town and I am always doing a install of XP, vista, or 7 as well as using a program called Hirens to fix stuff. Want I want to do is take a portable hard drive and install Hirens to it, that will let me select what program to launch or in my case what version of windows to install. The only issue is if you do a install off usb it must be in the main folder (E: (windows install files)) it can't be E:folder/(windows install files)

The only way to make it work in separate folders is to change the bootmgr so when it starts to install it will look in E:folder/ and find its files. As of now bootmgr is set to only look in E: for files. I want to edit bootmgr to look where I tell it for the files.
My System SpecsSystem Spec

08 May 2011   #4


This is the best tool I've found to write all Linux distros, boot disks, Windows installers, etc. to USB drive: Universal USB Installer – Easy as 1 2 3 | USB Pen Drive Linux

I formerly used UltraISO to write my Win7 and Vista installers to flash stick then add all of my tools into the root alongside them, until I found this all-in-one tool.

I solve the problem of the extracted installer files needing to be in the root by keeping them in a folder, then spilling them into the root when I need to install Win7 or Vista.

I have never used USB HD because I didnt' need more than 16gb to carry my tools and apps in pocket. I'm sure you could use a HD if you need more space, but to partition it and keep it bootable you need a boot manager on it.
My System SpecsSystem Spec
08 May 2011   #5

Windows 7 Pro 64bit

To prevent confusion on what I am doing I have all of the other parts to this hammered out the only thing I need to know is how do I edit a bootmgr file to change where it looks for bcd file. My goal is to make this drive a one click its going deal, so I dont wanna move the files every time I need them. I have the drive set up and it works just fine I just dont want to have 5-6 partitions on 1 drive to get this to work how I want it. So the only thing I need to learn how to edit the bootmgr. If I am misunderstanding what your are saying for some reason I do apologize.
My System SpecsSystem Spec
08 May 2011   #6


The easiest way to edit the bcd is EasyBCD 2.02: EasyBCD 2.0.2 - NeoSmart Technologies

Sorry if I'm not getting what you want to do exactly. But I'll PM the best expert on these issues to look at this for you.
My System SpecsSystem Spec
08 May 2011   #7

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64

You can't use easybcd for this.

I assume you are trying something along these lines:

Changing the "\Boot\BCD" unicode text to "\what\BCD".

"bcdedit -store <path>\BCD {bootmgr} -set nointegritychecks Yes"

The difficulty you will have is I think - you need to replace with the same number of characters.

Changing "Boot" to "What" is ok - both use 4 characters.

Not sure you can change it to read installwindows\boot\bcd.

( If you find a way of doing that - let me know )

You are probably better putting the boot folder on the root of the drive - so bootmgr will find it.

Then change the bcd entry to point at the path to boot.wim.

If all the o/s you are wanting to install are windows - then presuming you have them in wim format , you can install any of them you like from boot.wim. Just use Imagex to do it. It's faster, too.

In my winpe , I have a cmd file to do it, uses the normal deployment method of imagex and creating boot files on active partition, also calling another cmd file (written by MS ) to set the o/s drive latter, and a usb service (written by funjian ) if I want to instal to usb connected HD.

My little cmd app. only works for nt6 o/s.

If you are wanting to install xp as well - I can point you to a number of apps. which will do xp and nt6 in a similar fashion.
My System SpecsSystem Spec
09 May 2011   #8

Windows 7 Pro 64bit

Ok you sound alot more educated than I am at this so its sad for me to say this but can you break that down a bit so I get a better understanding as to what was said.
My System SpecsSystem Spec
09 May 2011   #9

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64


1. As far as I know - you can only change the string ( in this case the path ) to one of the same length.

Because the path you want is "installwindows\boot\bcd" and the original string in bootmgr is "boot\bcd" - then it won't work .

2. The alternative is :

Put the "boot" folder directly on the root of the drive - so bootmgr will find it without any editing.

What you then need to do is edit the bcd entry - to point at "installwindows\sources\boot.wim"

Start bcdtool.exe , click Bootconfig>Open and browse to bcd in the boot folder you just moved to the root of the drive, then,

Want to edit Bootmgr's directory path.-bcdtool-1.jpg

Boot.wim will boot up fine.

3. You want to install one of several different windows operating systems ? - you can do that from boot.wim.

The way to do it is with imagex - put imagex in boot.wim - you can apply any image from any wim with imagex.

To make it easier - there are several installer programs which will give you a nice gui to do the job.

Put that program in boot.wim and it will do the installing for you.

4. How do you put the program in Boot.wim ?

Simple - you need to mount boot.wim - ( easier from windows 7 as you can use dism to mount it )

You can use this nice easy dismgui:


Copy the installer program into the mounted \windows \system32.

Unmount the boot.wim image with the commit switch.

4. To run the program when boot.wim has booted - just type installerprogramname.exe in command prompt.

This will pop up - which is pretty self explanatory :

Want to edit Bootmgr's directory path.-winntsetup.jpg

Will you be using 32 or 64 bit boot.wim for this?

Most people use 32 bit boot.wim- you can install 64 bit operating systems from it.

Does that make sense?

EDIT - I just looked back at your original post - the path you want is installwindows\windows7\boot\bcd

So use that instead of installwindows\boot\bcd everywhere above.

My System SpecsSystem Spec

 Want to edit Bootmgr's directory path.

Thread Tools

Similar help and support threads
Thread Forum
directory path in application save not found in windows explorer
I have an application that has a default path for config files, if you go to save or load a config file it comes up with it by default. However, I can't find it just showing in a win explorer directory tree or win explorer searching for it!!!! how could this happen? how can I find the real file...
General Discussion
BOOTMGR is missing or edit windows boot options while try 2 INSTALL 7
Windows 7 Home Premium 64bit. Gateway desktop all-in-one model zx4951. Recovery media not made by owner 2 years ago when purchased. I tried to make the recovery discs but the program wont launch, it's probably corrupted. I couldn't open some other files, has some corrupted files, Trojans, and lots...
Installation & Setup
bootmgr is missing and edit windows boot options
hey guys. im having some issues installing windows from a usb after a hard drive replacement. im a novice at this and have been frustrated all week. ill try to keep this short, here goes... this is a sony vaio laptop about two years old. replaced hard drive and upgraded ram as well. installed...
Installation & Setup
Trying to understand behavior of current directory and PATH variable.
The PATH variable on my machine is set to C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\System32;C:\Program Files\Java\jdk1.7\bin;C:\Program Files (x86)\Notepad++; I have a batch file (batchfile.bat) with the following commands - dir path notepad++ source.frm -n2150 PAUSE
General Discussion
How do I edit the device path for WinXP using bcdedit?
Long story short, Win7 RTM completely messed up the existing XP installation on a Pentium3 test machine. Anyhow, I want to change the device path for XP Pro from F: to D: and am a little confused here. What command's the right one for me?...
Installation & Setup

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:32.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App