WinReducer.net Project
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
Mvp77
Mvp77

How to install Windows 7, 8 and 10 fast and furious! Empty How to install Windows 7, 8 and 10 fast and furious!

on Mon 29 Feb 2016 - 19:47
Message reputation : 100% (2 votes)
Sorry, image hosting website has deleted all the pictures. Razz

Description
:

This 
guide is for Windows 7 x64but you can apply the same principles to the installation of Windows 7, 8 and 10 (x86 or x64).

Installation takes place in a WinPE environment and it's almost completely automated, but it leaves the user the ability to choose what to install (e.g. Windows HomePremium or Ultimate) and where to install (hdd or partition).

This is only an example; later, I will show you how to change commands, paths and everything else.
 
I install Windows from my home server (\\192.168.1.2), but you are free to install it from any other support or location:
 
Internal HDD --> fast
External HDD, USB --> portable
Shared folder --> flexible
DvD --> slow

1) When WinPE is loaded, type "install" and press ENTER.
How to install Windows 7, 8 and 10 fast and furious! F980870c_o


2) Select volume number and press ENTER.
How to install Windows 7, 8 and 10 fast and furious! F3e4782d_o


3) Select image number and press ENTER.
How to install Windows 7, 8 and 10 fast and furious! E5609502_o


4) ImageX is applying the image...
How to install Windows 7, 8 and 10 fast and furious! Ac330abd_o


5) ImageX has successfully applied image and boot files are created.
How to install Windows 7, 8 and 10 fast and furious! Feb9f998_o
 
Press any key to reboot...
 
(Setup will continue after reboot...)
 
Easy, don’t you think?
Yes, but it needs a bit of work...

Files:
 
To automate the Windows system installation we need to give to our PC some instructions.

I set these instructions in a batch file inside WinPE iso:

Windows\System32\install.bat
 
To automate Diskpart tasks I use text files:

Windows\SysWOW64\0.txt
Windows\SysWOW64\1.txt
...

Download links:

install.bat --> http://www69.zippyshare.com/v/UBAQxaFM/file.html
0.txt --> http://www69.zippyshare.com/v/kR6iYTIO/file.html
1.txt --> http://www69.zippyshare.com/v/yodzlt41/file.html

The install.bat file is divided into four sections: start, diskpart, image, boot.

How to install Windows 7, 8 and 10 fast and furious! 3f18ee3b_o
 
:Start (preliminary operations):
----------------------------------------------
wpeinit --> It stands for WinPE initialization (usually executed by startnet.cmd)
net use --> It connects the network resource (directory where Windows images are)
cd  --> Go to SysWOW64 folder (to install x64 systems you have to use ImageX x64)
 
:Diskpart (HDD preparation):
----------------------------------------------
echo list volume --> It lists all volumes
set /p choice --> It asks where we want to install Windows (usually, the system is on the first hdd or partition; but, if you have a CD-ROM drive, Microsoft will assign the first slot to it).
 
If, for example, Volume 1 is selected, Diskpart will execute text file 1.txt:
Spoiler:
select volume 1
format fs=NTFS quick label="Winsys"
assign letter=c
active
exit

Volume 1 is selected and formatted.
C letter is assigned and the volume is set to active (this will be the boot partition).

Note.
The System Reserved partition (100MB) is completely useless; delete it.
 
:Image (system installation):
----------------------------------------------
set /p choice --> We choose which image to install from available.
 
:Boot (boot files copy and reboot):
----------------------------------------------
bcdboot --> Boot files are copied to C:\
pause --> Optional
Exit --> Installation will continue after restart
 
 
Detailed procedure:
 
1) How to create WinPE iso:
https://technet.microsoft.com/en-us/library/cc709665%28v=ws.10%29.aspx
 
-If you want to install your system over lan you need to integrate network drivers:
https://technet.microsoft.com/en-us/library/dn613857.aspx
 
-It is highly recommended to integrate ImageX (x86 and x64) in WinPE\sources\boot.wim.

-Also, we need to integrate into boot.wim our batch and text files.

Example.
Press Shift and right-click mouse in the folder where "boot.wim" is (e.g. C:\WinPE\sources), then select "Open Command window here".

Create mount folder into C:
mkdir c:\mount

Mount boot.wim:
imagex /mountrw boot.wim 1 c:\mount

Now,

copy imagex.exe (x86) and install.bat in --> C:\mount\Windows\System32.
copy imagex.exe (x64), 0.txt and 1.txt in --> C:\mount\Windows\SysWOW64.

Save image and unmount:
imagex /commit /unmount c:\mount

2) How to boot in WinPE
 
You can use CD or USB support, but you can also install WinPE on your hard drive:

How to create a dual boot system:
Boot WinPE from CD or USB.

Enter Diskpart.

Partitioning disk (example):

C:\Windows
------------------------------------------
create partition primary size=20480
format fs=ntfs quick label="Winsys"
active
assign letter=c
------------------------------------------

D:\WinPE
------------------------------------------
create partition primary size=1024
format fs=ntfs quick label="WinPE"
active
assign letter=d
------------------------------------------

(Optional) Create a logical partition (e.g. for swap, database, downloads, temp, etc.).

Apply
install.wim (Windows image) to C:\ and boot.wim (WinPE image) to D:\ using ImageX.

Copy boot files into C:\Windows:
bcdboot C:\Windows

Restart PC and boot from C:\Windows.

Generate GUID:

----------------------------------------
Run Command prompt and type:
bcdedit /create /d winpe /application osloader

In this script, replace "GUID" with your generated code:
--------------------------------------------------------------------------
bcdedit /set {GUID} osdevice partition=d:
bcdedit /set {GUID} device partition=d:
bcdedit /set {GUID} path \windows\system32\winload.exe
bcdedit /set {GUID} systemroot \windows
bcdedit /set {GUID} winpe yes
bcdedit /set {GUID} detecthal yes
bcdedit /displayorder {GUID} /addlast
copy c:\windows\system32\winload.exe d:\windows\system32

--------------------------------------------------------------------------


Save the script as .bat and apply.

Now, when you start your PC, you can choose to boot in Windows or in WinPE.

3) Installation procedure
 
This is the easy part:
 
Type "install" and press ENTER.
Select Volume number # and press ENTER.
Select Image number # and press ENTER.
Press any key to continue...
 
The installation will continue after the reboot...
 
 
How to personalize install.bat:

In the Start section, you may delete line 4 (this is only for network installation) and line 5 (if you install a 32-bit image).
How to install Windows 7, 8 and 10 fast and furious! 82e7570f_o

In the Diskpart section, you may add more volumes after line 12...
How to install Windows 7, 8 and 10 fast and furious! C29562a6_o

For example, volume 2:

if "%choice%"=="2" diskpart / 2.txt

Naturally, you need to add the correspondent text file in WinPE\Windows\System32 or WinPE\Windows\SysWOW64.

In the Image section you can create your systems list and set the relative paths:
How to install Windows 7, 8 and 10 fast and furious! 8fd60852_o

Example.

You have a default install.wim on your hard drive (E:\).
You decide to use the default Microsoft index to list all Windows Edition:

###  Image
---   ----------------------------
1     Windows 7 HomeBasic
2     Windows 7 HomePremium
3     Windows 7 Professional
4     Windows 7 Ultimate

If, for example, you want to install the Ultimate edition, the only thing you have to do is indicating to ImageX the image path and its index number:

if "%choice%"=="4" imagex apply E:\install.wim 4 C:\

In the Boot section you may want to change C:\Windows path (if you install on a different partition e.g. F:\) or remove the "pause" command (if you want to restart automatically).
How to install Windows 7, 8 and 10 fast and furious! 09a2769f_o


Conclusions:

It is not the state of the art, but it is simple and effective.

1) The installation is faster than the default one:

-no graphics... slightly faster
-WinPE loads... much faster
-you can install from internal drive... much more faster

2) You can have a complete control of the disk partitioning.

Advice.
Use AutoUnattend.xml or Unattend.xml files to automate the second part of setup:
https://technet.microsoft.com/en-us/library/cc749415%28v=ws.10%29.aspx


Mvp77 Wink


Last edited by Mvp77 on Tue 14 Feb 2017 - 17:46; edited 28 times in total
KrX
KrX

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Mon 29 Feb 2016 - 21:22
Message reputation : 100% (1 vote)
nice tutorial, i think i will give it a try soon Wink
Geekster
Geekster

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Tue 1 Mar 2016 - 3:20
Very nice KRX!!!  This is very clear, concise, and nicely laid out.

Geekster
KrX
KrX

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Tue 1 Mar 2016 - 10:10
Message reputation : 100% (1 vote)
Geekster wrote:Very nice KRX!!!  This is very clear, concise, and nicely laid out.

Geekster

why do you thank me xD ?

i didnt create this nice tutorial, but mvp77
Mvp77
Mvp77

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Tue 1 Mar 2016 - 10:15
KrX wrote:
Geekster wrote:Very nice KRX!!!  This is very clear, concise, and nicely laid out.

Geekster

why do you thank me xD ?

i didnt create this nice tutorial, but mvp77
KrX über alles!!!
Mvp77
Mvp77

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Tue 1 Mar 2016 - 10:23
Ok, I just reviewed a few comments and corrected some errors in Dual Boot mini-tutorial.

Some points may be unclear for someone, but we are here to answer your questions... No
Geekster
Geekster

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Fri 4 Mar 2016 - 4:16
Message reputation : 100% (1 vote)
Oh wow I'm sorry MVP77!!  AS I said job well done on the tutorial.  It's a great tutorial and thanks.  And thanks KrX for correcting me.

Geekster
Mvp77
Mvp77

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Fri 4 Mar 2016 - 13:23
Geekster wrote:Oh wow I'm sorry MVP77!!  AS I said job well done on the tutorial.  It's a great tutorial and thanks.  And thanks KrX for correcting me.

Geekster
Ok, thanks. Smile
I hope it can be useful to someone.
winterstorm2050
winterstorm2050
Admin
https://www.winreducer.net/

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

on Mon 7 Mar 2016 - 13:51
Hello,

Yes indeed excellent tutorial ... thank you for the sharing Smile
Sponsored content

How to install Windows 7, 8 and 10 fast and furious! Empty Re: How to install Windows 7, 8 and 10 fast and furious!

Back to top
Permissions in this forum:
You cannot reply to topics in this forum