@echo Off echo Enter path to Windows AIK: echo Example: C:\Program Files\Windows AIK rem set WAIK=C:\Program Files\Windows AIK set /p WAIK= echo. echo Enter path to folder with Vista installation DVD: echo Example: D:\Vista\DVD rem set SRC=D:\Vista\DVD set /p SRC= echo. echo Enter path for mounting WIM file: echo Example: D:\Vista\Image rem set WIM=D:\Vista\Image set /p WIM= echo. echo Select the Vista edition: echo Example: 3 echo 1 - Business echo 2 - Home Basic echo 3 - Home Premium echo 4 - Ultimate echo 5 - Business N echo 6 - Home Basic N echo 7 - Starter set /p EDITION= echo. "%WAIK%\Tools\x86\imagex.exe" /mountrw "%SRC%\sources\install.wim" %EDITION% "%WIM%" "%WAIK%\Tools\PETools\peimg.exe" /list "%WIM%\Windows" pause "%WAIK%\Tools\x86\imagex.exe" /unmount "%WIM%" pause