[Main]
Title=create USB  
Description=Creates automatically a bootable USB flash drive
Selected=False
Level=8
Author=Kare
Version=8
Date=23.04.2018
Translation_DE=MaineCoon


[Interface]
pTextLabel1=WinXP / Win2003:,10,0,Bold,20,30,120,20
pTextLabel2=Runs only in Boot Method 'RamBoot',9,0,Default,20,50,250,18
pButton1=process,Run PE2USB,0,,170,150,90,20
//
tError=ERROR
tEcho_1=Starting PE2Usb...
// Error
tMsg_201=This script needs the Boot Method 'RamBoot'.#$xPlease check all your settings.#$x#$xAborting script...

[Interface.07]
Description=Erstellt vollautomatisch einen bootfähigen USB-Stick.
pTextLabel1=WinXP / Win2003:,10,0,Bold,20,30,120,20
ptextlabel2=Funktioniert nur mit Boot-Methode 'RamBoot',9,0,Default,20,50,250,18
pButton1=process,Run PE2USB,0,,170,150,90,20
//
tError=FEHLER
tEcho_1=PE2Usb wird gestartet...
// Fehler
tMsg_201=Dieses Skript benötigt die Boot-Methode 'RamBoot'.#$xÜberprüfen Sie bitte Ihre Einstellungen.#$x#$xSkript wird abgebrochen...

[process]

Echo,%tEcho_1%
If,ExistFile,%Target_CD%\grldr,Then,FileSetAttrib,%Target_CD%\grldr,-r
If,%ntversion%,=,5,then
	If,%ramboot%,=,false,then
		Message,%tERROR%#$x#$x%tMsg_201%,ERROR,6
		Exit
	End
	FileCopy,%source_sys%\NTDETECT.COM,%Target_CD%
	FileCopy,%Scriptdir%\files\XPRamBoot\setupldr.bin,%Target_CD%
	FileSetAttrib,%Target_CD%\setupldr.bin,"-R"
	ShellExecute,Hide,%tools%\%Projectfolder%\bpatch.exe,"#$q%Target_CD%\setupldr.bin#$q #$q%ScriptFile%::CopyUnprotectPatch#$q"
	If,not,ExistFile,%Target_CD%\grldr,Then,FileRename,%Target_CD%\setupldr.bin,%Target_CD%\grldr

end

if,%ntversion%,=,6,then
	if,%Multiboot%,=,Grub4dos,then
		filecopy,%tools%\grldr,%Target_CD%\grldr
	else
		If,ExistFile,%Target_CD%\bootmgr,then,Filecopy,%Target_CD%\BOOTMGR,%Target_CD%\grldr
	end
end
ShellExecute,Open,%Tools%\pe2usb.exe,-i:#$q%Target_CD%#$q#$s-n:%Projectname%



[CopyUnprotectPatch]
00002060:EB
00002061:1A

[Script-Pic]
0=4153,5340,ZLB64
1=eNqllGk0G1q7x6PGtkdbtKoUbXGomkkQykXRJK0hCImZpkQEQczDaY01tDWfxtAaI8aqhJrqLcLBQSuGStCiYjpUtBWz65x17/vlfrnr3v/zrLWfvf4f9m/vZ+3n+NPxF8AFqBnEDMB1Em4nATg+AkjfMzW6c80W7ent5+/r74VBB12D+HmqXEOoq6ipA46ZABPAqf+nTk7RPRPl7R74wNM/IDxKQ01dXfUk1dSvqauBNTXAWqAztuigYGUrkzN3TBGm9yytlNVMNYx0zLQAxz1cJQAAFy/XPwL8l7hOcfPw8vELnD5zlgvAzfXf+h/mBcApLm7uUzzcvLw8PCdO9IkH4BHiFb6ubsQnYu3OfwN/UeNRRrGAjHHD+0vwj5uymh6Bj0+fEb0sdkVc7ld5hZuKWkCQto4u2OSOqZn5XQjUxtYOYe+ARHk+QD/08sb4BAUTQkLDwiPi4hMSk5KfpGRmZefk5v3+glhSWlZeQaokV71ppFCbmt+2tHZ199B6+/7oHxilj41PTH6aYszNL3xdZC0tr6yyt77/+LnN2dndEzpBPsXDw83D/zcy16nQv+8jxMN7XZ1P2Mia3x0vckPjkcBF44zihvenZTThm5c8Aj+eEZXVmpNj/039D/T/jvnx/wn638z/Rj7+F0BIAKAB0ODmOqEXAnALAY4ZgF+4uU42J7UhYL+NBr7UmfrXgfKCYfIb1NqRzKQvVdB4eME288j//I6FZMTtG6zzZ8NMTJvHlDzoOAJMUqML1rKh4qcClPh8rg9PLjSBZ8hLE54bV9zQOagqUpWA8Yu/vYqQUXk/sdeu/vO1de+HRHRK2kIyCR4e0efh/eFwrOpDOdFDxoyqaFO/boBN1lTcResDUWrdfYzWsaPGZBL4dSmIPFAkdSEBKmgpXKpLHihJ2BxQKVjUcez5Ge1otMlX7Bscjd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