Hello EveryBody
I come from thailand . i'm not strongly language to talk . Please do forgive them. ^^
I want install windows 7 from window iso file.
I success to install windows but i must enter imdisk command by press Shift + f10
to setup imdisk for install windows each version.
I want edit script in menu.lst to install windows iso file and auto run setupimdisk eash version for first page install windows.
Example
---------------------------------------------------------------------------------------------------
menu.lst
timeout 15
default /1
gfxmenu /Bootbackground
title 1.Install Windows 7 HomePremium 64 Bit
map /winvblk.ima (fd0)
map /winvblk.ima (fd1)
map /Windows/HomePremium_x64.iso (0xff)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
map --hook
chainloader (0xff)
boot
title 2.Install Windows 7 Ultimate 64 Bit
map /winvblk.ima (fd0)
map /winvblk.ima (fd1)
map /Windows/Ultimate_x64.iso (0xff)
checkrange 0x80 read 0x8280 && map (hd0) (hd1)
checkrange 0x80 read 0x8280 && map (hd1) (hd0)
map --hook
chainloader (0xff)
boot
---------------------------------------------------------------------------
HomePremium_x64.cmd
@ECHO OFF
CLS
FOR %%i IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\nul (
IF EXIST %%i:\imdisk\imdisk.inf IF EXIST %%i:\imdisk\setupcdrom.cmd IF EXIST %%i:\imdisk\setupimdisk.cmd IF EXIST %%i:\Windows\HomePremium_x64.iso (
color 97
echo Found necessary files on %%i:\>>%SystemDrive%\mntdrv.txt
pushd %%i:\imdisk
echo Setting um ImDisk>>%SystemDrive%\mntdrv.txt
setupimdisk.cmd>>%SystemDrive%\mntdrv.txt
echo Setting up virtual CD/DVD drive, mounting image>>%SystemDrive%\mntdrv.txt
setupcdrom.cmd %%i:\Windows\HomePremium_x64.iso>>%SystemDrive%\mntdrv.txt
)
)
-----------------------------------------------------------------------------
Ultimate_x64.cmd
@ECHO OFF
CLS
FOR %%i IN (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\nul (
IF EXIST %%i:\imdisk\imdisk.inf IF EXIST %%i:\imdisk\setupcdrom.cmd IF EXIST %%i:\imdisk\setupimdisk.cmd IF EXIST %%i:\Windows\Ultimate_x64.iso (
color 97
echo Found necessary files on %%i:\>>%SystemDrive%\mntdrv.txt
pushd %%i:\imdisk
echo Setting um ImDisk>>%SystemDrive%\mntdrv.txt
setupimdisk.cmd>>%SystemDrive%\mntdrv.txt
echo Setting up virtual CD/DVD drive, mounting image>>%SystemDrive%\mntdrv.txt
setupcdrom.cmd %%i:\Windows\Ultimate_x64.iso>>%SystemDrive%\mntdrv.txt
)
)
Thank you so much every body ^^