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: Install OS from Hard Drive

28 Oct 2013   #1
gregrocker
Microsoft MVP

 
 
Install OS from Hard Drive

Since we get inquiries about this all the time I wanted to report how it works with the latest OS.

Today I wanted to install Windows 8.1 but didn't have a spare DVD or flash stick to waste since I rarely let the latest 8 stay installed more than a few days. But in case I wanted to keep it and therefore didn't want it to boot as another drive letter if installed from Win7 running Sources>Setup, I decided to install it from the HD as a booted Custom install with full Drive Options. Here's how:

Shrink C to copy the extracted Win8 install files to a 10gb partition you create, which can be Logical because it's booted from the current System partition - just remember if you already have four Primary partitions to convert an adjacent non-System one to Logical first.

Next install EasyBCD (click Download - no Name or Email required). On the Add OS Entry tab select WinPE tab at the bottom, from dropdown select WIM image, click Browse button to browse to the Win 8 Sources>boot.wim file. Save and Exit.



Reboot PC, at Boot Menu choose the new RAMdisk entry which will be added until removed on Easy Edit tab or in msconfig>Boot tab. You can now Clean Install - Windows 8 even using the Drive Options to Delete an unwanted partition to Format install partition. Make sure not to delete, format or install over your extant OS partition or it will go away.

If you plan to keep the OS, burn the installer or make a System Repair disk to use for repairs. You can keep the WinPE boot item to use for repairs until then.

This is adapted from Boot Recovery Partition using EasyBCD


My System SpecsSystem Spec
.

28 Oct 2013   #2
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Yes, you can do exactly the same with win 7. No idea why more people aren't doing it. Good to have 7 installer available on the move. You can replace the install.wim with one you made yourself, e.g. your updated version.You can also just run setup.exe for a repair install.
My System SpecsSystem Spec
28 Oct 2013   #3
gregrocker
Microsoft MVP

 
 

Thanks, Si. I learned much of this from you, years ago.

To replace install.wim in the installer's Sources folder with an image customized by setting up the OS, what exactly needs to be done?

Then recompile ISO using ImageX to burn new ISO? Will ImgBurn work?

I wonder if this could also be used for UEFI install, what modifications would be needed.
My System SpecsSystem Spec
.


28 Oct 2013   #4
YoYo155

Windows 7 Home Premium x64
 
 

I see more wonderful information ahead.
Subscribed .
My System SpecsSystem Spec
28 Oct 2013   #5
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

Not sure why you need an iso. I thought the idea was to use the extracted files?

You can copy install.wim out of your updated iso with 7-zip. In fact you can copy the entire contents out. That would be instead of using the standard 7 iso which is a couple of years of updates behind.

It is too much faff for most people to go through the whole sysprepping thing.

Same thing with Vista/8/8.1. Easy to add updates with dism.
My System SpecsSystem Spec
28 Oct 2013   #6
gregrocker
Microsoft MVP

 
 

If the OS is one I value I will have a bootable installer to use for installation and repairs. I was asking if there's a way to substitute the image after it's set up with the install.wim in the installer.

The rightclick Start button in 8.1 gets close to a Start menu, but it's still so overloaded with tablet crApps that I see no need for it as a desktop OS - except to confound all that was built over 20 years for a billion users on the desktop.
My System SpecsSystem Spec
28 Oct 2013   #7
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

I don't understand the question.

The installation files are inside install.wim.

You can use the regular install.wim that comes with the msdn iso. Or you can replace it with one you have added updates to. Or you can go through the whole malarkey of installing, sysprepping and capturing as install.wim. Not much advantage to the last option for most people.

Quote:
I was asking if there's a way to substitute the image after it's set up with the install.wim in the installer.
I think you are asking about sysprepping ? You might do that if you wanted to include your own programs and settings as well as the updates. Kari has a tut about that.

Or do you mean can you just copy a different install.wim into the extracted sources folder? Yes, you can.

Or you can use poweriso etc to open the standard msdn iso and replace the sources\install.wim with your own install.wim. Any of those are fine.

I don't bother sysprepping usually. Just using the install.wim with updates added is good enough..

TEST -Update 7 installation media
My System SpecsSystem Spec
28 Oct 2013   #8
gregrocker
Microsoft MVP

 
 

Yeah that's what I thought. I'll stick with imaging for capturing the setup OS. But it would be cool at least once to see it installed from the booted Windows installer.
My System SpecsSystem Spec
03 Nov 2013   #9
SIW2

Microsoft Community Contributor Award Recipient

Vista x64 / 7 X64
 
 

You might want to give this a go:

1) Extract the win 7 dvd/iso onto a partition. ( Not the os partition preferably - anywhere else is fine)

The extracted files look like this:

Name:  2013-11-04_014834.jpg
Views: 42
Size:  26.0 KB

(You don't need autorun.inf so can delete it if you like. The big file Install.wim is inside the "sources" folder. If you have your own updated install.wim , you can copy it into there , overwriting the standard one.)

2) Register that as your recovery image.

Open an elevated cmd and type (replace d with the drive letter of the partition you extracted the files onto) :

reagentc /setosimage /path d:\sources /target c:\windows

( press enter)

reagentc /enable

(press enter)

3.) Run setup.exe from that partition ( or make a shortcut to run it ) if you want you to do a repair install on your running os, or clean install to another partition.

4.) Start "Repair My Computer" from F8 key, to get an extra recovery option:

Name:  2013-11-03_193234.jpg
Views: 42
Size:  64.5 KB

That will install windows onto the target partition you set, saving the existing os files into Windows.old folder.

5) Get the full range of installation options by running setup.exe instead:


Name:  2013-11-03_193342.jpg
Views: 42
Size:  63.9 KB


Name:  2013-11-03_193428.jpg
Views: 42
Size:  34.4 KB


Name:  2013-11-03_193450.jpg
Views: 42
Size:  73.9 KB


Name:  2013-11-03_193553-1.jpg
Views: 41
Size:  60.3 KB


6) If you boot win7 repair cd ( instead of F8 "Repair My Computer" - which runs winre from the Hard Drive ), then you can still run setup.exe as above and get all the regular installation options. It will use the install.wim on the hard drive to do that.

Not sure why I hadn't done all this before. Still finding new joys with win7 . That is a great addition for anyone to have. It is like a much better version of the oem recovery partition.


My System SpecsSystem Spec
03 Jan 2014   #10
gregrocker
Microsoft MVP

 
 

Trying this tomorrow on Dell Dimension 3000 I am upgrading from XP to Win7. It will not boot flash stick even though it appears in F12 Boot Menu, and doesn't have DVD drive. Will find out if I can copy files into a partition, add Installer to Dual Boot menu from XP using EasyBCD. Haven't tried it yet on XP.

Will want to delete all but OEM Diagnostics partition for install. Later if it works I'll store an image on the installer files partition, but hide it. That way if it requires reimaging or reinstall (even Repair) the partition can be made bootable again with Easy.

Good plan?
My System SpecsSystem Spec
Reply

 Install OS from Hard Drive




Thread Tools





Similar help and support threads
Thread Forum
Hard Drive Install
My wife has a HP running Vista. Here hard drive is about to fail. Since the OS came pre-installed how can change out the HD and not lose the OS that came with the computer?
Hardware & Devices
Secondary hard drive disappeared after install of Blu Ray DVD drive
Hello, I hope someone can help me with an issue I've just come across. I bought an LG BH14 Blu Ray DVD drive to replace my old LG drive. I unplugged my pc, pulled out the old unit, disconnected the two wires, connected them to my new unit, and popped it back in. Too easy, right? After...
Hardware & Devices
USB Flash Drive as Hard drive to install to.
Hi, I've got a Win RT 7 Install running and my only problem is that it doesn't see flash drives as drives to install the OS on to. I can see the USB drives for loading a driver so the installer already sees the USB drive but it won't list it for selecting a destination for the OS. So, I'm not...
Drivers
2nd hard drive install
I'm new here and I'm not sure if this is where this post is supposed to go. I've scoured the internet for an answer and no havne't found it yet. I have two hard drives from scraped out vista laptops. I am trying to install one of them into my laptop as a second, but for some reason windows...
Installation & Setup
Install Windows 7 with Sata Hard Drive and IDE DVD ROM Drive
Hi, Is this possible? I have tried numerous times on my PC to install Windows 7 onto my Sata Drive to no avail. Yet as soon as I plug in my IDE HD it installs fine. I have unplugged all external peripherals USB and internal Card Reader. Set my Bios ok as it sees both the Hard Drive and DVD fine...
Installation & Setup
hard drive install
Hello all, Need some tips and tricks to install a new Seagate Sata hard drive. This is a 1 TB drive and it will install internally. I have a 500 gig Seagate Sata installed but I need more storage. I'm using Windows 7 RC1 X64 My plan is to make a restore point, shut the system down, let her sit...
Hardware & Devices

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 17:31.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App