Carlos Alloatti Posted November 6, 2011 Posted November 6, 2011 (edited) Install Windows 7 x86/Windows 7 x64/Server 2008 from ISO files in USB HDSummary: All your Windows 7 / 2008 Install DVDs with independent options and configurations in one USB HD, selectable with a simple Grub4Dos menu.No complicated procedures or methods, no opening command prompts, no replacing setup.exe, no loaders. The install process is exactly the same as using a DVD.Each ISO is independent of each other, with its own optional embedded autounattend.xmlEasy to implement and maintain.Ingredients:USB Hard DriveWindows 7 x86 DVD/ISO/install filesWindows 7 x64 DVD/ISO/install filesWindows Server 2008 DVD/ISO/install filesDism.exe from Windows Automated Installation Kit (WAIK)Oscdimg.exe from Windows Automated Installation Kit (WAIK)Firadisk version 0.0.1.30 Grub4Dos version 0.4.5b-2011-11-03BootIce version 0.9.2011.0501PC with Windows 7Procedure:Create the following folder structureC:\USBHDC:\USBHD\TOOLSC:\USBHD\TOOLS\BOOTICEC:\USBHD\TOOLS\GRUB4DOSC:\USBHD\W7SP1X86C:\USBHD\W7SP1X86\BINC:\USBHD\W7SP1X86\BIN\DRIVERSC:\USBHD\W7SP1X86\BIN\DRIVERS\FIRADISKCreate additional folder structures for each install DVD, for example C:\USBHD\W7SP1X64, etc.Copy BootIce files to C:\USBHD\TOOLS\BOOTICECopy Grub4Dos files to C:\USBHD\TOOLS\GRUB4DOSInstall WAIK, you will then have:C:\Program Files\Windows AIK\Tools\x86\oscdimg.exeC:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exeCopy all the DVD files from each DVD to its folder: W7SP1X86, etc.If you have ISO files, you can use WINRAR to extract the files from the ISOsCopy the Firadisk driver files to each BIN\DRIVERS\FIRADISK folderCreate a file C:\USBHD\W7SP1X86\BIN\DRIVERS\FIRADISK\FIRADISK.REGEdit FIRADISK.REG:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\target\ControlSet001\services\FiraDisk]"Type"=dword:00000001"Start"=dword:00000000"ErrorControl"=dword:00000001"ImagePath"=hex(2):73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,44,00,\ 52,00,49,00,56,00,45,00,52,00,53,00,5c,00,66,00,69,00,72,00,61,00,64,00,69,\ 00,73,00,6b,00,2e,00,73,00,79,00,73,00,00,00"DisplayName"="FiraDisk Driver""Group"="Boot Bus Extender"[HKEY_LOCAL_MACHINE\target\ControlSet001\services\FiraDisk\Parameters]"PnP"=dword:00000001[HKEY_LOCAL_MACHINE\target\ControlSet001\services\FiraDisk\Enum]"Count"=dword:00000001"NextInstance"=dword:00000001"0"="ROOT\\FiraDisk\\0000"[HKEY_LOCAL_MACHINE\target\ControlSet001\Enum\Root\FiraDisk\0000]"ClassGUID"="{4d36e97b-e325-11ce-bfc1-08002be10318}""Class"="SCSIAdapter""HardwareID"=hex(7):72,00,6f,00,6f,00,74,00,5c,00,66,00,69,00,72,00,61,00,64,\ 00,69,00,73,00,6b,00,00,00,00,00"CompatibleIDs"=hex(7):64,00,65,00,74,00,65,00,63,00,74,00,65,00,64,00,5c,00,\ 66,00,69,00,72,00,61,00,64,00,69,00,73,00,6b,00,00,00,00,00"Service"="FiraDisk""ConfigFlags"=dword:00000000"Capabilities"=dword:00000000"ContainerID"="{00000000-0000-0000-FFFF-FFFFFFFFFFFF}"Create two files:C:\USBHD\W7SP1X86\BIN\01.PROCESS.WIMS.CMDC:\USBHD\W7SP1X86\BIN\02.BUILD.ISO.CMDEdit 01.PROCESS.WIMS.CMD, edit the line "SET MOUNTDRIVE=D:" change drive letter to a drive that exists in your system.@ECHO offREM THIS BATCH FILE IS DVDROOT\BIN\01.PROCESS.WIMS.CMDREM DRIVERS FOLDER IS BIN\DRIVERSREM IMAGE INDEX 1 OF boot.wim IS Microsoft Windows PE (x86)REM IMAGE INDEX 2 OF boot.wim IS Microsoft Windows Setup (x86)MD "%PROGRAMFILES%\ELEVATEMYASS"IF EXIST "%PROGRAMFILES%\ELEVATEMYASS\" GOTO ELEVATEDECHO This batch file must be run as Administrator.PAUSEGOTO :EOF:ELEVATEDRD "%PROGRAMFILES%\ELEVATEMYASS"ECHO Set variablesREM SET MOUNTDRIVE TO A WRITABLE FAST DRIVE IN YOUR PCSET MOUNTDRIVE=D:CD /d %~dp0CD ..SET TARGET=%cd%SET DISM="C:\Program Files\Windows AIK\Tools\x86\Servicing\dism.exe"ECHO Delete some files in TARGETDEL "%TARGET%\sources\ei.cfg" /QREM CREATE BACKUP OR COPY FROM BACKUP IF FOUNDIF NOT EXIST "%TARGET%.BACKUP\" MD "%TARGET%.BACKUP\"IF NOT EXIST "%TARGET%.BACKUP\sources" MD "%TARGET%.BACKUP\sources"IF NOT EXIST "%TARGET%.BACKUP\sources\boot.wim" (ECHO Making backup of boot.wim ...COPY "%TARGET%\sources\boot.wim" "%TARGET%.BACKUP\sources\boot.wim") ELSE (ECHO Copying boot.wim from backup...COPY "%TARGET%.BACKUP\sources\boot.wim" "%TARGET%\sources\boot.wim")SET INDEX=2SET MOUNTDIR=%MOUNTDRIVE%\BOOT.WIM.2SET WIMFILE=%TARGET%\sources\boot.wimIF NOT EXIST %MOUNTDIR%\ MD "%MOUNTDIR%"ECHO Load image %INDEX% of %WIMFILE% into %MOUNTDIR%%DISM% /mount-wim /wimfile:"%WIMFILE%" /index:%INDEX% /mountdir:"%MOUNTDIR%"REM COPY autounattend.xml INTO SETUP IMAGE SO SETUP ALLWAYS FINDS IT (USB REMOVABLE VS FIXED)IF EXIST "%TARGET%\autounattend.xml" COPY "%TARGET%\autounattend.xml" "%MOUNTDIR%\autounattend.xml"ECHO Add drivers to loaded imageDism /image:"%MOUNTDIR%" /Add-Driver /driver:"%~dp0DRIVERS" /recurse /forceunsignedREG unload HKLM\targetREG load HKLM\target "%MOUNTDIR%\Windows\system32\config\SYSTEM"REG import "%~dp0DRIVERS\FIRADISK\firadisk.reg"REG unload HKLM\target%DISM% /unmount-wim /mountdir:"%MOUNTDIR%" /commitRD "%MOUNTDIR%"PAUSENow edit 02.BUILD.ISO.CMD:@ECHO OFFREM THIS BATCH FILE IS DVDROOT\BIN\01.BUILD.ISO.CMD:oscdimg [options] SourceLocation TargetFile:http://technet.microsoft.com/en-us/library/cc749036%28WS.10%29.aspxECHO Create ISO...SET oscdimg="C:\Program Files\Windows AIK\Tools\x86\oscdimg.exe"SET bootfile="%~dp0..\boot\etfsboot.com"CD /d %~dp0CD ..SET sourcedir=%cd%SET isofile=%cd%.ISOCD ..CALL SET "isolabel=%%sourcedir:%cd%\=%%"CD /d %~dp0ECHO Source=%sourcedir%ECHO Target=%isofile%ECHO Label=%isolabel%%oscdimg% -u1 -d -h -m -o -l%isolabel% -b%bootfile% "%sourcedir%" "%isofile%"PAUSE If you have an autounattend.xml file, copy it to the root of the install folder:C:\USBHD\W7SP1X86\autounattend.xmlAdd any other files you need to customize the install process, for exampleC:\USBHD\W7SP1X86\sources/$OEM$\$$\Setup\Scripts\setupcomplete.cmd etc.Now we are ready to build the ISO. Run 01.PROCESS.WIMS.CMD as administrator (right click). Once the process is finished, run 02.BUILD.ISO.CMDNow you should have a C:\USBHD\W7SP1X86.BACKUP folder, that contains a backup of the boot.wim file, and a C:\USBHD\W7SP1X86.ISO file.Repeat the process for each version, for example W7SP1X64, W2008R2X64, etc.Your USB HD must have ONE formatted NTFS partition. Use Disk Management to create/format. We will assume the USB HD has the letter “X” assigned.Start BootIceSelect the USB HD as Destination Disk, click “Process MBR”, select “GRUB4DOS” as MBR type, click “Install/Config”, click “Save to disk”, click Close.Now click “Parts Manage”, verify that the partition is set as active, in column “Act” there should be an “A”, if not click “Activate”. Click “Close”, click “Exit”Copy C:\USBHD\TOOLS\GRUB4DOS\grldr and grldr.mbr to X:\ (the root of the USB HD)Create a folder in the USB HD X:\ISOSCopy all the iso files from C:\USBHD to X:\ISOSCreate a X:\menu.lst file, edit it:color white/blue black/light-graytimeout 15default 0title Boot from HDmap --unmap=0:0xffmap --unhookmap (hd1) (hd0)map (hd0) (hd1)map --hookchainloader (hd0)+1title Install Windows 7 Ultimate x86set ISOFILE=/ISOS/W7SP1X86.ISOmap %ISOFILE% (0xff)map (hd1) (hd0)map (hd0) (hd1)map --mem (md)0x800+4 (0x55)map --hookwrite (0x55) [FiraDisk]\nStartOptions=cdrom,vmem=find:%ISOFILE%\n\0chainloader (0xff)title Install Windows 7 Ultimate x64set ISOFILE=/ISOS/W7SP1X64.ISOmap %ISOFILE% (0xff)map (hd1) (hd0)map (hd0) (hd1)map --mem (md)0x800+4 (0x55)map --hookwrite (0x55) [FiraDisk]\nStartOptions=cdrom,vmem=find:%ISOFILE%\n\0chainloader (0xff)title Install Windows 2008 R2 x64set ISOFILE=/ISOS/W2008R2X64.ISOmap %ISOFILE% (0xff)map (hd1) (hd0)map (hd0) (hd1)map --harddrives=2map --mem (md)0x800+4 (0x55)map --hookwrite (0x55) [FiraDisk]\nStartOptions=cdrom,vmem=find:%ISOFILE%\n\0chainloader (0xff)Edit the menu according to your ISO names and quantity.Notes:The autounattend.xml file is inserted into the boot.wim file so Windows Setup will be able to find it under all circumstances.References:The Windows® Automated Installation Kit (AIK) for Windows® 7 http://www.microsoft.com/download/en/details.aspx?id=5753 Firadiskhttp://reboot.pro/8804/ Grub4Doshttp://code.google.com/p/grub4dos-chenall/downloads/list BootIcehttp://bbs.wuyou.com/viewthread.php?tid=57675 Download Windows Server 2008 R2 with Service Pack 1 (Trial)http://technet.microsoft.com/en-us/evalcenter/dd459137.aspx Install Windows 7 from ISO on USB hard disk to SATA hard diskhttp://reboot.pro/13968/page__p__123736#entry123736 Edited November 6, 2011 by Carlos Alloatti
Carlos Alloatti Posted November 6, 2011 Author Posted November 6, 2011 Admins: If possible, please change topic title to that of the first line, delete this afterwards, thanks.
wimb Posted November 7, 2011 Posted November 7, 2011 In the approach of BOOT_USB.exe you don't need to unpack the ISO files and the Grub4dos Menu is build automatically.http://www.911cd.net/forums//index.php?showtopic=24424
Carlos Alloatti Posted November 7, 2011 Author Posted November 7, 2011 In the approach of BOOT_USB.exe you don't need to unpack the ISO files and the Grub4dos Menu is build automatically.http://www.911cd.net/forums//index.php?showtopic=24424Yes, but if I understand correctly your link, the install process of Windows 7 is very different as when installing from DVD right? My goals where:1 Not to have many DVDs/CDs for each OS, but have everything in one USB Hard Drive.2 The install process should be the same as using the DVD, so there is not need to explain anything, just "choose option 3 and do the same things you do when installing from DVD/CD"I did not find this anywhere, but did find diferent methods involving doing non standard things during the install, or be able to only have one install set in the USB HD.This way, you have many independent install ISOs, and the maintenance/updating is just copying over a new version of an ISO to the USB HD.
jaclaz Posted November 7, 2011 Posted November 7, 2011 OT , but not much , loading and unloading a Registry hive is so old-fashioned Just for the record (and FYI), OFFLINE Registry Editing:http://reboot.pro/11212/http://reboot.pro/11312/jaclaz
steve6375 Posted November 8, 2011 Posted November 8, 2011 (edited) In the multi-iso autounattend.xml method here you just need to copy two files over and then make the ISO. Edited November 8, 2011 by steve6375
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now