[Main]
Title=Parted Magic Linux 3.x
Level=7
Version=5
Description=Grub4Dos as boot manager is needed
Locked=false
Selected=False
Download_Level=2
Mandatory=False
Author=Markus Debus
Contact=http://www.pecd.net/
Date=30.10.2008
Credits=Nightman, Nuno Brito, Peter Schlang and all the rest from www.boot-land.net

[Comment]
This project is based on VistPE by Nightman (www.vistape.net) and includes scripts and code freely available from several users. Most of it comes from www.boot-land.net.
All code taken from public sources is free to use for anyone, but the package you have here also contains many improvements and code made by me, Markus Debus (vpe@markus-debus.de).
If you plan to publish a release based on this or if you want to offer anything from this for download, please contact me first and ask for permission. Thanks.

[variables]
%MenuFile_GRUB%=%targetdir%\menu.lst
%TmpFolder%=%basedir%\Temp\%ProjectName%\PartedMagic3
%Tmp1Folder%=%basedir%\Temp\%ProjectName%\PartedMagic3TMP

[Process]
Echo,Processing Parted Magic Linux...
If,NotExistFile,"%MenuFile_GRUB%",Exit,"Please enable MuiltiBoot mode and Grub4Dos before using this script"
If,NotExistFile,"%TmpFolder%\PMAGIC\PMODULES\PMAGIC.7Z",Run,%ScriptFile%,Download
DirCopy,"%TmpFolder%\pmagic","%TargetDir%"
TXTAddLine,"%MenuFile_GRUB%"," ","Append"
TXTAddLine,"%MenuFile_GRUB%","title Parted Magic 3.x - Default settings (Runs from RAM / Ejects CD, does not work in VirtualMachine)","Append"
TXTAddLine,"%MenuFile_GRUB%","kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet tmpfs_size=180M ramdisk_size=25000","Append"
TXTAddLine,"%MenuFile_GRUB%","initrd /pmagic/initrd","Append"
TXTAddLine,"%MenuFile_GRUB%","lock","Append"
TXTAddLine,"%MenuFile_GRUB%"," ","Append"
#TXTAddLine,"%MenuFile_GRUB%","title Parted Magic 3.x - Do not eject CD, no paravirt (for VirtualMachines)","Append"
#TXTAddLine,"%MenuFile_GRUB%","kernel /pmagic/bzImage noapic root=/dev/ram0 init=/linuxrc keymap=us livecd vga=791 sleep=0 quiet tmpfs_size=180M ramdisk_size=25000 noeject noreplace-paravirt","Append"
#TXTAddLine,"%MenuFile_GRUB%","initrd /pmagic/initrd","Append"
#TXTAddLine,"%MenuFile_GRUB%","lock","Append"
#TXTAddLine,"%MenuFile_GRUB%"," ","Append"

[Download]
DirMake,"%TmpFolder%"
System,ErrorOff
If,NotExistfile,"%TmpFolder%\pmagic.zip",WebGet,"http://exo.enarel.eu/mirror/partedmagic/pmagic-3.1.iso.zip","%TmpFolder%\pmagic.zip","0","Partedmagic 3.x",15
System,ErrorOff
If,NotExistfile,"%TmpFolder%\pmagic.zip",WebGet,"http://www.digitalincursion.net/partedmagic/pmagic-3.1.iso.zip","%TmpFolder%\pmagic.zip","0","Partedmagic 3.x",15
If,NotExistFile,"%TmpFolder%\pmagic.zip",begin
Message,"Could not download Partedmagic, please check URLS, maybe a new version is out and the URLs changed."
Exit,"Could not download Partedmagic, please check URLS, maybe a new version is out and the URLs changed."
end
unpack here
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TmpFolder%\pmagic.zip#$q -o#$q%TmpFolder%#$q"
FileDelete,"%TmpFolder%\pmagic.zip"
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%TmpFolder%\pmagic-3.1.iso#$q -o#$q%TmpFolder%#$q pmagic"
FileDelete,"%TmpFolder%\pmagic-3.1.iso"

[Interface]
pWebLabel1="Home Page",1,10,9,17,200,18,http://partedmagic.com/
pWebLabel2=Donate,1,10,83,17,43,18,http://partedmagic.com/wiki/PartedMagic.php?n=PartedMagic.Donations
pImage2=partitioning.jpg,1,5,5,40,358,251

[InterfaceEncoded]
partitioning.jpg=109257,145676

[EncodedFile-InterfaceEncoded-partitioning.jpg]
lines=35
[encoded data, 145774 characters]

