This project is running, please wait until it is completed. VistaPE CAPI v.12 (RC1b common API) |
File [%BaseDir%\Projects\VistaPE-CAPI\OtherOS\PartedMagic.script] Version
Processing Parted Magic Linux...
[// Set up to use a common area to store the files]
[// First some variables that may not be present in VistaPE]
IF - Section exists [%BaseDir%\Workbench] evaluated string: [If,NotExistVar,%GlobalSupport%,Set,%GlobalSupport%,%BaseDir%\Workbench]
IF - Section exists [%BaseDir%\Workbench\Common] evaluated string: [If,NotExistVar,%GlobalTemplates%,Set,%GlobalTemplates%,%GlobalSupport%\Common]
IF - Section exists [%BaseDir%\Temp] evaluated string: [If,NotExistVar,%GlobalTemp%,Set,%GlobalTemp%,%BaseDir%\Temp]
IF - Directory exists: [%BaseDir%\Workbench\Common\PartedMagic] evaluated string: [If,NotExistDir,%GlobalTemplates%\%ProgramFolder%,DirMake,%GlobalTemplates%\%ProgramFolder%]
IF - File exists: [%BaseDir%\Target\VistaPE-CAPI\menu.lst] evaluated string: [If,NotExistFile,"%MenuFile_GRUB%",Exit,"Please enable MultiBoot mode and Grub4Dos before using this script"]
[// Find the current version of PartedMagic]
System,ErrorOff
DirMake - Directory already exists, ignoring: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic]
|
Run - Processing section: [Depack] From file: [%BaseDir%\Projects\VistaPE-CAPI\Base\Common_Api.script]
with parameters: [GetVersion],[],[GetPartedMagicCurrentVersion.exe],[C:\Users\JONFLE~1\AppData\Local\Temp],[PartedMagic]
[//Syntax1==> Unpack,[Folder],[Archive],[Option],[%Target_Prog%],[%ProgramFolder%],[%programExe%],[TargetTemp]]
[//Syntax2==> Unpack,[FileName],[Action],[Option]]
StrFormat - converted [POS(|All|-All|One|Archive|-Archive|SFX|UnZip|URL|-URL|,|#2|,%PosExt%)] to variable: [%PosExt%] with result: [0]
|
Run - Processing section: [Depack_0] From file: [%BaseDir%\Projects\VistaPE-CAPI\Base\Common_Api.script]
with parameters: [GetVersion],[],[GetPartedMagicCurrentVersion.exe],[C:\Users\JONFLE~1\AppData\Local\Temp],[PartedMagic]
IF - [GetVersion] is not equal to: [] evaluated string: [If,#1,Equal,,Set,#1,Folder]
IF - [C:\Users\JONFLE~1\AppData\Local\Temp] is not equal to: [] evaluated string: [If,#4,Equal,,Set,#4,%Target_Prog%]
IF - [PartedMagic] is not equal to: [] evaluated string: [If,#5,Equal,,Set,#5,%ProgramFolder%]
IF - [] is equal to: [] evaluated string: [If,#6,Equal,,Set,#6,%ProgramExe%]
SetVar - Sucessfuly changed the value of [#6] to: [%ProgramExe%]
IF - File does not exist: [%BaseDir%\Projects\VistaPE-CAPI\OtherOS\PartedMagic\%ProgramExe%] evaluated string: [If,ExistFile,"%ScriptDir%\#5\#6",Begin]
[If,#5,Equal,.,DirMake,#4]
[Else,DirMake,#4\#5]
[DirCopy,"%ScriptDir%\#5\*.*",#4\#5]
[End]
ELSE - executing command: [Begin]
IF - [] is equal to: [] evaluated string: [If,#2,NotEqual,,Begin]
[StrFormat,Ext,#2,#9]
[If,#9,Equal,.exe,Run,%API%,Execute_Archive,#1,#2,#3,#4,#5,#6,#7,#8,#9]
[Else,Run,%API%,Depack_Archive,#1,#2,#3,#4,#5,#6,#4\#5,#8]
[End]
ELSE - executing command: [Begin]
StrFormat - converted: [#3] to variable: [#9] with result: [.exe]
IF - [.exe] is not equal to: [] evaluated string: [If,#9,Equal,,Run,%API%,Extract_All,#1,#2,#3,#4,#5,#6,#7,#8,#9]
ELSE - executing command: [Run,%API%,Extract_One,#1,#2,#3,#4,#5,#6,#7,#8,#9]
|
Run - Processing section: [Extract_One] From file: [%BaseDir%\Projects\VistaPE-CAPI\Base\Common_Api.script]
with parameters: [GetVersion],[],[GetPartedMagicCurrentVersion.exe],[C:\Users\JONFLE~1\AppData\Local\Temp],[PartedMagic],[%ProgramExe%],[],[],[.exe]
IniRead - [%BaseDir%\Projects\VistaPE-CAPI\OtherOS\PartedMagic.script] Section [GetVersion] Key [GetPartedMagicCurrentVersion.exe] to variable: [%var%] with value [278684,371579]
IF - [278684,371579] is bigger than [0] evaluated string: [If,%Var%,Bigger,0,Begin]
IF - [PartedMagic] is not equal to: [.] evaluated string: [If,#5,Equal,.,DirMake,#4]
ELSE - executing command: [DirMake,#4\#5]
DirMake - Directory already exists, ignoring: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic]
ExtractFile - [GetPartedMagicCurrentVersion.exe] to: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic]
[End]
ELSE - [Echo,"Unpack can not find file [#3] in Section [#1] !!",WARN]
Run - Processed section [Extract_One] in file: [%BaseDir%\Projects\VistaPE-CAPI\Base\Common_Api.script]
[End]
[End]
Run - Processed section [Depack_0] in file: [%BaseDir%\Projects\VistaPE-CAPI\Base\Common_Api.script]
Run - Processed section [Depack] in file: [%BaseDir%\Projects\VistaPE-CAPI\Base\Common_Api.script]
|
WebGet - Downloaded file: [http://sourceforge.net/project/showfiles.php?group_id=248002&package_id=302801] to directory: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\DownloadPage.htm] (md5 check was not available)
ShellExecute: [Hide] using: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\GetPartedMagicCurrentVersion] with parameters: ["C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\DownloadPage.htm" "%BaseDir%\Workbench\Common\PartedMagic\PE-PMagicVer.ini"]
[// See if we have to do a full download]
IniRead - [%BaseDir%\Workbench\Common\PartedMagic\PE-PMagicVer.ini] Section [Version] Key [LocalVersion] to variable: [%LocalVer%] with value []
IniRead - [%BaseDir%\Workbench\Common\PartedMagic\PE-PMagicVer.ini] Section [Version] Key [RemoteVersion] to variable: [%RemoteVer%] with value [4.4]
** Newest PartedMagic version is 4.4 **
IF - [] is not equal to: [%RemoteVer%] evaluated string: [If,%LocalVer%,NotEqual,%RemoteVer%,Run,%ScriptFile%,Download]
|
Run - Processing section: [Download] From file: [%BaseDir%\Projects\VistaPE-CAPI\OtherOS\PartedMagic.script]
System,ErrorOff
DirDelete - Failed to delete directory [%BaseDir%\Workbench\Common\%ProgramFolder\pmagic]: The operation completed successfully
WebGet - Downloaded file: [http://downloads.sourceforge.net/sourceforge/partedmagic/pmagic-4.4.iso.zip] to directory: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\pmagic.zip] (md5 check was not available)
IF - File exists: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\pmagic.zip] evaluated string: [If,NotExistFile,"%TempDir%\%ProgramFolder%\pmagic.zip",WebGet,"http://garr.dl.sourceforge.net/sourceforge/partedmagic/pmagic-%RemoteVer%.iso.zip","%TempDir%\%ProgramFolder%\pmagic.zip","0","Partedmagic %RemoteVer%",15]
IF - File exists: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\pmagic.zip] evaluated string: [If,NotExistFile,"%TempDir%\%ProgramFolder%\pmagic.zip",WebGet,"http://voxel.dl.sourceforge.net/sourceforge/partedmagic/pmagic-%RemoteVer%.iso.zip","%TempDir%\%ProgramFolder%\pmagic.zip","0","Partedmagic %RemoteVer%",15]
IF - File exists: [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\pmagic.zip] evaluated string: [If,NotExistFile,"%TempDir%\%ProgramFolder%\pmagic.zip",Begin]
[Message,"Could not download Partedmagic, please check URLS, maybe the URLs changed.",Information]
[Exit,"Could not download Partedmagic, please check URLS, maybe URLs changed."]
[end]
ShellExecute: [Hide] using: ["%BaseDir%\Projects\Tools\7z.exe"] with parameters: [x -y "C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\pmagic.zip" -o"C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic"]
ShellExecute: [Hide] using: ["%BaseDir%\Projects\Tools\7z.exe"] with parameters: [x -y "C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\pmagic-4.4.iso" -o"%BaseDir%\Workbench\Common\PartedMagic" pmagic]
FileDelete - Sucessfully deleted [C:\Users\JONFLE~1\AppData\Local\Temp\PartedMagic\pmagic-4.4.iso]
[// Save our version information]
IniWrite - Wrote INI key in file: [%BaseDir%\Workbench\Common\PartedMagic\PE-PMagicVer.ini] Section [Version] Key [LocalVersion=4.4]
Run - Processed section [Download] in file: [%BaseDir%\Projects\VistaPE-CAPI\OtherOS\PartedMagic.script]
|
[// DirDelete,%TempDir%\%ProgramFolder%]
[//OK, now we can finish setting things up]
DirCopy - Copied directory [%BaseDir%\Workbench\Common\PartedMagic\pmagic] to: [%BaseDir%\Target\VistaPE-CAPI]
TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-CAPI\menu.lst] line: [#$s] Option:"Append"
TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-CAPI\menu.lst] line: [title#$sParted#$sMagic#$s#$s-#$sDefault#$ssettings#$s(Runs#$sfrom#$sRAM#$s/#$sEjects#$sCD)] Option:"Append"
TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-CAPI\menu.lst] line: [kernel#$s/pmagic/bzImage#$snoapic#$sload_ramdisk=1#$sprompt_ramdisk=0#$srw#$svga=791#$ssleep=10#$sloglevel=0#$skeymap=us] Option:"Append"
TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-CAPI\menu.lst] line: [initrd#$s/pmagic/initramfs] Option:"Append"
TxtAddLine - Added line: [%BaseDir%\Target\VistaPE-CAPI\menu.lst] line: [lock] Option:"Append"
[// TXTAddLine,"%MenuFile_GRUB%"," ","Append"]
[// TXTAddLine,"%MenuFile_GRUB%","title Parted Magic %LocalVer% - Do not eject CD, no paravirt (for VirtualMachines)","Append"]
[// TXTAddLine,"%MenuFile_GRUB%","kernel /pmagic/bzImage noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 sleep=10 noeject noreplace-paravirt livemedia loglevel=0 keymap=us","Append"]
[// TXTAddLine,"%MenuFile_GRUB%","initrd /pmagic/initramfs","Append"]
[// TXTAddLine,"%MenuFile_GRUB%","lock","Append"]
[// TXTAddLine,"%MenuFile_GRUB%"," ","Append"]
VistaPE CAPI v.12 (RC1b common API)
Script time: 58 seconds and 173 miliseconds
Script has been sucessfully processed!
|