


%oscdimg% -u1 -d -h -m -o -l%isolabel% -b%bootfile% "%sourcedir%" "%isofile%" SET oscdimg="C:\Program Files\Windows AIK\Tools\x86\oscdimg.exe" %DISM% /unmount-wim /mountdir:"%MOUNTDIR%" /commit REG import "%~dp0DRIVERS\FIRADISK\firadisk.reg" REG load HKLM\target "%MOUNTDIR%\Windows\system32\config\SYSTEM" IF EXIST "%TARGET%\autounattend.xml" COPY "%TARGET%\autounattend.xml" "%MOUNTDIR%\autounattend.xml"ĭism /image:"%MOUNTDIR%" /Add-Driver /driver:"%~dp0DRIVERS" /recurse /forceunsigned REM COPY autounattend.xml INTO SETUP IMAGE SO SETUP ALLWAYS FINDS IT (USB REMOVABLE VS FIXED) %DISM% /mount-wim /wimfile:"%WIMFILE%" /index:%INDEX% /mountdir:"%MOUNTDIR%" IF NOT EXIST "%TARGET%.BACKUP\sources\boot.wim" (ĬOPY "%TARGET%\sources\boot.wim" "%TARGET%.BACKUP\sources\boot.wim"ĬOPY "%TARGET%.BACKUP\sources\boot.wim" "%TARGET%\sources\boot.wim"ĮCHO Load image %INDEX% of %WIMFILE% into %MOUNTDIR% IF NOT EXIST "%TARGET%.BACKUP\sources" MD "%TARGET%.BACKUP\sources" IF NOT EXIST "%TARGET%.BACKUP\" MD "%TARGET%.BACKUP\" REM CREATE BACKUP OR COPY FROM BACKUP IF FOUND SET DISM="C:\Program Files\Windows AIK\Tools\x86\Servicing\dism.exe" REM SET MOUNTDRIVE TO A WRITABLE FAST DRIVE IN YOUR PC

IF EXIST "%PROGRAMFILES%\ELEVATEMYASS\" GOTO ELEVATEDĮCHO This batch file must be run as Administrator. REM IMAGE INDEX 2 OF boot.wim IS Microsoft Windows Setup (x86) REM IMAGE INDEX 1 OF boot.wim IS Microsoft Windows PE (x86) "ClassGUID"=""Ĭ:\USBHD\W7SP1X86\BIN\01.Ĭhange drive letter to a drive that exists in your off If you have ISO files, you can use WINRAR to extract the files from the ISOsĬopy the Firadisk driver files to each BIN\DRIVERS\FIRADISK folderĬreate a file C:\USBHD\W7SP1X86\BIN\DRIVERS\FIRADISK\FIRADISK.REG Oscdimg.exe from Windows Automated Installation Kit (WAIK)Ĭreate additional folder structures for each install DVD, for example C:\USBHD\W7SP1X64, etc.Ĭopy BootIce files to C:\USBHD\TOOLS\BOOTICEĬopy Grub4Dos files to C:\USBHD\TOOLS\GRUB4DOSĬ:\Program Files\Windows AIK\Tools\x86\oscdimg.exeĬ:\Program Files\Windows AIK\Tools\x86\Servicing\Dism.exeĬopy all the DVD files from each DVD to its folder: W7SP1X86, etc. Windows Server 2008 DVD/ISO/install filesĭism.exe from Windows Automated Installation Kit (WAIK) The install process is exactly the same as using a DVD.Įach ISO is independent of each other, with its own optional embedded autounattend.xml No complicated procedures or methods, no opening command prompts, no replacing setup.exe, no loaders. Install Windows 7 x86/Windows 7 圆4/Server 2008 from ISO files in USB HDĪll your Windows 7 / 2008 Install DVDs with independent options and configurations in one USB HD, selectable with a simple Grub4Dos menu.
