Tag Archives: Windows 2008

Windows Master Installer

I got tired of having to have different media for installing the various versions of Windows 7 and Win 2k8 so I put together a master install disk. The procedure on how to do so has been around for a long time on the net, but I decided to automate it so I can repeat this in the future if I wanted to add other versions of Windows (say Win 8?).

Credit goes to “Explicit” for his original guide.

Without Further to do, here’s the batch script.

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@echo off
 
set IMAGEXBIN="C:\Program Files\Windows AIK\Tools\amd64\imagex.exe"
set SEVENZIPBIN="C:\Program Files\7-Zip\7z.exe"
set OSCDIMGBIN="C:\Program Files\Windows AIK\Tools\amd64\oscdimg.exe"
 
set WIN7X86ISO="..\en_windows_7_ultimate_with_sp1_x86_dvd_u_677460.iso"
set WIN7X64ISO="..\en_windows_7_ultimate_with_sp1_x64_dvd_u_677332.iso"
set WIN2K8ISO="..\en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"

rem extract everything from the ISOs
%SEVENZIPBIN% x -ox64 %WIN7X64ISO%
%SEVENZIPBIN% x -ox86 %WIN7X86ISO%
%SEVENZIPBIN% x -oServer %WIN2K8ISO%

rem let's gather the win7 64bit installers
 
%IMAGEXBIN% /export x64\sources\install.wim 2 x86\sources\install.wim "Windows 7 HOMEPREMIUM x64"
%IMAGEXBIN% /export x64\sources\install.wim 3 x86\sources\install.wim "Windows 7 PROFESSIONAL x64"
%IMAGEXBIN% /export x64\sources\install.wim 4 x86\sources\install.wim "Windows 7 ULTIMATE x64"

rem let's gather the win server 2k8 installers
 
%IMAGEXBIN% /export Server\sources\install.wim 1 x86\sources\install.wim "Windows Server 2008 R2 SERVERSTANDARD"
%IMAGEXBIN% /export Server\sources\install.wim 2 x86\sources\install.wim "Windows Server 2008 R2 SERVERSTANDARDCORE"
%IMAGEXBIN% /export Server\sources\install.wim 3 x86\sources\install.wim "Windows Server 2008 R2 SERVERENTERPRISE"
%IMAGEXBIN% /export Server\sources\install.wim 4 x86\sources\install.wim "Windows Server 2008 R2 SERVERENTERPRISECORE"
%IMAGEXBIN% /export Server\sources\install.wim 5 x86\sources\install.wim "Windows Server 2008 R2 SERVERDATACENTER"
%IMAGEXBIN% /export Server\sources\install.wim 6 x86\sources\install.wim "Windows Server 2008 R2 SERVERDATACENTERCORE"
%IMAGEXBIN% /export Server\sources\install.wim 7 x86\sources\install.wim "Windows Server 2008 R2 SERVERWEB"
%IMAGEXBIN% /export Server\sources\install.wim 8 x86\sources\install.wim "Windows Server 2008 R2 SERVERWEBCORE"

rem copy the EULA for boot.wim
 
mkdir serverMount
%IMAGEXBIN% /mountrw Server\sources\boot.wim 2 serverMount
 
mkdir win7Mount
%IMAGEXBIN% /mountrw x86\sources\boot.wim 2 win7Mount
 
xcopy /E serverMount\sources\License win7Mount\sources\License
 
%IMAGEXBIN% /unmount /commit win7Mount
 
%IMAGEXBIN% /unmount serverMount
 
rmdir serverMount
rmdir win7Mount

rem copy the EULA for installing from within windows.
 
xcopy /E Server\sources\License x86\sources\License
 
copy Server\sources\install*.clg x86\sources\
 
del x86\sources\ei.cfg

rem create bootable disk
 
%OSCDIMGBIN% -lGRMCULFRER_EN_DVD -m -u2 -o -h -bx86\boot\etfsboot.com x86 Windows7and2008R2AIO.iso

rem cleanup afterwards, uncomment to run

rem rmdir /s x86
rem rmdir /s server
rem rmdir /s x64