Make your build and directly use your final ISO created by copying it to the root of your drive (Usb, Disk whatever) (do not change the name of the iso).
And get your ISO boot via grub4dos, isolinux, etc. with following menu:
Grub4Dos menu example:iftitle [find /ISO/Win7PE_x86.ISO] Find and Load Win7PESE x86 ISO
find --set-root --ignore-floppies /ISO/Win7PE_x86.ISO
map (hd0) (hd1)
map (hd1) (hd0)
map /ISO/Win7PE_x86.ISO (0xff)
map --hookroot (0xff)
chainloader (0xff)/BOOTMGR
When booting from a USB device (e.g. flash drive, or external hard drive), to change the disks order.
You need to add the following lines for the detection of the host operating system, especially for running System Recovery.
map (hd0) (hd1)
map (hd1) (hd0)
It is useless if you start your ISO from a CD/DVD (ISO Written) or from your main hard drive (ISO extracted)
Imdisk is required: In order to function and to have the ISO files available, Imdisk is required, enable the script when building (with or without RamDisk).
At Startup, if Imdisk and ISO file are available, the ISO will automatically mount to a drive (Win7PESE Default Y: , Gena Default V:)
with Files, Apps inside your ISO
accessible and shortcuts
available.
Win7PESE Notes:The ISO name is defined in "Create ISO" script with the options "Use Custom Iso FileName:" and "Add 'Source Architecture' To Iso Filename".
To indicate the location of your ISO, used the option "Boot from an ISO file: Subfolder (Blank for root)" (ex: ISO for \ISO\Win7PE_x64.iso).
You can create your USB key, external Disk, by using the script "Copy to USB-Device" and by enabling the option "Use .ISO boot" or by using another tool of your choice..
The "OtherOS" (script) can not be loaded from grub4dos or isolinux. You can disable them.
If you changed Iso file name or path, use "Win7PESE.ini" to specify your personal .Iso name and location and put it to the root of your media.
(solution for without rebuilding your project with your custom isoname/subfolder settings).
The default Win7PESE.ini is created when building, in ISO directory.
Win7PESE.ini
[ISOINFO]
IsoName=Images\Win7PE_x64.ISO
For Non ISO Boot, the Flag File CdUsb.Y is used in Win7PESE to detect your media and change the drive letter (Win7PESE Default Y:).
---------------------------------------------------------------------
With the ISO Boot, your UFD should look like, for example :
[Boot] (Gfx-Boot.gfx)
[ISO]
| Win7PE_x86.iso
| RescueCD.iso
grldr
menu.lst
Win7PESE.ini (optional)While a Non ISO Boot, your UFD would look like:
[Boot] (bcd, ...)
[Programs]
| MyApps (Run From CD/USB)
[sources]
| boot.wim
BOOTMGR
CdUsb.Y
grldr
menu.lst---------------------------------------------------------------------
MountPEmedia.exe usage:
[-ini Inifile] ex: MountPEmedia.exe -ini x:\Windows\System32\MountPEmedia.ini.
otherwise search: "ProgramName Without Extenssion"ini in Working Dir then System Dir.
[-h | /h] Help
(*) Requires Imdisk installed to mount ISO file.
MountPEmedia.ini, example for Win7PESE:
[Settings]
ProjectName=Win7PESE
MountDrive=Y:
SearchFlagFile=Yes
FlagFileName=CdUSB.Y
SearchExternalIniFile=Yes
ExternalIniFileName=Win7PESE.ini
DesktopWarningLabel=Win7PESE Warning
[IsoInfo]IsoName=\Images\Win7PE_X64.iso
[onerror]
...
I hope above info useful,
