[main]
Title=Create iso 
Description= Creates a bootable ISO file of the project
Selected=True
Level=8
Author=JFX,Kare
Version=11
Date=23.04.2018
Translation_DE=MaineCoon

[Interface]
pFrame1=Enabling Boot Prompt:,707070,0,0,10,10,370,60
pCheckBox1=False, 'Press any key to boot from CD or DVD',0,3,30,40,340,18
pcheckbox2=True,Show Progress,0,0,30,80,120,18
//
tEcho_1=Creating ISO file...

[Interface.07]
Description=Erstellt eine bootfähige ISO-Datei von WindowsPE
pframe1=Aktivierung der Boot-Aufforderung:,707070,0,0,10,10,370,60
pcheckbox1=False, 'Drücken Sie eine beliebige Taste#$c um von CD oder DVD zu booten',0,3,30,40,340,18
pcheckbox2=True,Zeige Fortschritt an,0,0,30,80,120,18
//
tEcho_1=ISO-Datei wird erstellt...

[process]

IF,Not,EXISTDIR,%ISOdir%,Then,DirMake,%ISodir%

If,%pCheckBox1%,=,False,then
	FileDelete,%target_cd%\boot\bootfix.bin,1
Else
	FileSetAttrib,%target_cd%\boot\bootfix.bin,-R
	filecopy,%SourceDir%\Boot\bootfix.bin,%target_cd%\boot\
End

echo,%tEcho_1%

//Fix 34KB ISO - lowercase etfsboot.com
if,not,ExistFile,%target_cd%\Boot\etfsboot.com,Then,filecopy,%Scriptdir%\files\bootsect.bin,%Target_CD%\Boot\etfsboot.com
FileRename,%target_cd%\Boot\etfsboot.com,%target_cd%\Boot\etfsboot.tmp
FileRename,%target_cd%\Boot\etfsboot.tmp,%target_cd%\Boot\etfsboot.com

fileRename,%Target_CD%\bootmgr,%Target_CD%\BOOTMGR
//ShellExecute,Hide,%Tools%\%HOstArch%\OSCDIMG.EXE, -b#$q%TargetDir%\boot\etfsboot.com#$q -u2 -h -m -lWin7PE_SE_%SourceArch% #$q%TargetDir%#$q #$q%ISODir%\winpe.iso#$q

// normal
//ShellExecute,Hide,%Tools%\mkisofs.exe, -iso-level 4 -force-uppercase -volid #$qWin7PE_SE#$q -b #$qBoot/etfsboot.com#$q -no-emul-boot -boot-load-size 8 -hide boot.catalog -duplicates-once -o #$q%ISOfile%#$q #$q%Target_cd%#$q
//ShellExecute,Hide,%GlobalTools%\mkisofs.exe, -iso-level 4 -volid #$qWin7PE_SE#$q -b #$qBoot/etfsboot.com#$q -no-emul-boot -boot-load-size 8 -hide boot.catalog -duplicates-once -o #$q%ISOfile%#$q #$q%Target_cd%#$q

If,%pCheckBox2%,=,False,then
	set,%show%,hide
else
	set,%show%,show
end

filedelete,%Target_CD%\menu.lst,1
filedelete,%Target_CD%\GFX-BOOT.GFX,1
set,%Bootloader%,#$qBOOT/etfsboot.com#$q

if,%Multiboot%,=,Grub4dos,then
	set,%Bootloader%,grldr
	set,%Bootfile%,BOOTMGR
	filecopy,%Tools%\grldr,%Target_CD%\
	FileRead,%MenuLst%,%ProjectTemp%\MultiBoot\menu.ini
	FileRead,%MenuEntry%,%ProjectTemp%\MultiBoot\menu.lst
	String,%MenuLst%,Replace,%MenuLst%,*--------*,%MenuEntry%
	TxtAddline,%Target_CD%\menu.lst,%MenuLst%,Bottom
	if,Existfile,%ProjectTemp%\MultiBoot\GFX-BOOT.GFX,then,Filecopy,%ProjectTemp%\MultiBoot\GFX-BOOT.GFX,%Target_CD%\
end
ShellExecute,%show%,%Tools%\mkisofs.exe, -iso-level 4 -volid #$q%ProjectFolder%#$q -b %Bootloader% -no-emul-boot -boot-load-size 8 -hide boot.catalog -duplicates-once -o #$q%ISOfile%#$q #$q%Target_cd%#$q
if,not,%exitcode%,=,0,then,Halt,Error mkisofs.exe

[Script-Pic]
0=2937,3728,ZLB64
1=eNql0nk81N0eB/Df2LJeS7Qoy0OSLGPsSZasQ5ZknbFU0tinbDO2plVFEcVkhKcQg0kYoyTFIEsPZRljxgyGRFEzxTQY5nqe173PP/ef+7r38z1/nPP6/HHe5/U6AqpgGpBzdYI6AaDtOb09gGALUDvhaOeg7hMeFhGHjEEiIsMT1KFxYQbqfhADQwggoAP2gND/me1bjkimR5yJPxeGvJCSbmQIgYC3lyFEHWJoaWRsCbGQ9AlPSNT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