use cabarc i reduce picoxp to 9.86MB
#1
Posted 14 September 2007 - 04:49 PM
[codebox] <target name="mkrambootiso"> <copy file="src\ramdisk.sy_" todir="picoxp\I386\system32\drivers" overwrite="true"/> <iniwrite filename="picoxp\I386\txtsetup.sif" section="ScsiClass.Load" key="ramdisk" value="ramdisk.sys"/> <exec program="bin\mkisofs.exe" commandline=' -iso-level 4 -force-uppercase -volid "PicoXP" -b bootsect.bin -no-emul-boot -boot-load-size 4 -hide bootsect.bin -hide boot.catalog -duplicates-once -o iso\picoxp.iso picoxp' /> <property name="RamDir" value="picoxp\RamBoot\" /> <mkdir dir="${RamDir}"/> <mkdir dir="${RamDir}\I386"/> <touch file="${RamDir}\WINNT.SIF"/> <echo message="[SetupData]" file="${RamDir}\WINNT.SIF"/> <echo message='BootDevice="ramdisk(0)"' file="${RamDir}\WINNT.SIF" append="true"/> <echo message='BootPath="\i386\SYSTEM32\"' file="${RamDir}\WINNT.SIF" append="true"/> <echo message='OsLoadOptions="/fastdetect /minint /rdexportascd /rdpath=RamBoot.is_"' file="${RamDir}\WINNT.SIF" append="true"/> <copy file="picoxp\bootsect.bin" tofile="${RamDir}\BOOTSECT.BIN"/> <copy file="${InstSourceDir}\I386\ntdetect.com" todir="${RamDir}\I386" overwrite="true"/> <copy file="${InstSourceDir}\I386\setupldr.bin" todir="${RamDir}\I386" overwrite="true"/> //here is the function!!! <exec program="bin\cabarc" commandline="-m LZX:21 n ${RamDir}\RamBoot.is_ iso\picoxp.iso"/> <exec program="bin\mkisofs.exe" commandline=' -iso-level 4 -force-uppercase -volid "PicoXP_RAM" -A PEBUILDER/MKISOFS -sysid "Win32" -b BOOTSECT.BIN -no-emul-boot -hide BOOTSECT.BIN -duplicates-once -o iso\PicoXP_RAM.iso PicoXP\RamBoot' /> </target> [/codebox] whole tool and script download :http://blog.vckbase.com/Files/BastEt/Spe20070915.rar nantlite clean buildramiso
then everything ok
#2
Posted 15 September 2007 - 09:17 AM
I edited your post as to make the code inside a "codebox" to make it more readable.
jaclaz
#3
Posted 15 September 2007 - 06:24 PM
You're using windows 2003, right?
Congratulations!
#4
Posted 21 September 2007 - 03:57 PM
Very good results!
You're using windows 2003, right?
Congratulations!
This Cab compression method could be used for all projects that use the RAM iso boot .I reduced NativePE from 96MB with some apps to just 54MB.Also the copy process of the image in RAM is faster because of the smaller size of the image.It works even with Raw disk images.Just use Win2003 ramdrv.sys and ntdetect.com.
#5
Posted 27 December 2007 - 01:39 AM
#6
Posted 02 January 2008 - 03:53 PM
#7
Posted 03 January 2008 - 12:00 AM
That error happens when ntdetect.com on the root folder and inside the winpe.img file are different.You need to have both files identical (from 2k3-sp2) for it to work.
Hmmm - I always replaced ntdetect.com and setupldr.bin from 2k3-sp2 with the versions of 2k3-r2. Do I only need to replace setupldr.bin ?
Will try that - thanks
#8
Posted 10 January 2008 - 12:08 PM
Yup setupldr.bin must also be from 2k3.Hmmm - I always replaced ntdetect.com and setupldr.bin from 2k3-sp2 with the versions of 2k3-r2. Do I only need to replace setupldr.bin ?
Will try that - thanks
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users