Jump to content











Photo
- - - - -

[script] autoCompress


  • Please log in to reply
15 replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 01:04 PM

When introducing the CopyOrExpand command the old possibility has been lost to copy compressed driver files directly to the target.

That encreased the ISO size by about 2 MB.

I wrote this script to cab compress driver files before building the ISO.

It works similar like the autoUPX.Script:
Compare the candidates with a list of allowed and disallowed drivers, and decide whether to compress or not.

I tested the script with German SP2 and W2003 R2, standard and RAM boot ISO.
The project was nativeEx_barebone with some apps, Internet connection and a WEB browser.

The ISO size (no UPX) was about 70 MB.

Result: All combinations booted well. Internet browsing was possible.

Size decrease (in kB):
XP standard: 1944
XP RAM: 2046
W2003 standard:1454
W2003 RAM: 1022

The script is available on the nativeEx server.

Peter

#2 Nuno Brito

Nuno Brito

    Platinum Member

  • .script developer
  • 10549 posts
  • Location:boot.wim
  • Interests:I'm just a quiet simple person with a very quiet simple life living one day at a time..
  •  
    European Union

Posted 13 August 2007 - 01:25 PM

Peter, this script looks really great - only one detail - when writing app scripts I noticed that I often had to copy over to system32 a few files which were repeated because the cabbed versions are only needed at start up and become "invalid" afterwards.

Try downloading all app scripts from the livexp server and then try running some of them - those who have dependencies will most likely fail.

It would be good to have a script to clean out these duplicates and keep the expanded versions... :loleverybody:

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 01:41 PM

It would be good to have a script to clean out these duplicates and keep the expanded versions... :loleverybody:


If you open the script and look into the help, you see that inside your project you can define *.sys files which must remain uncompressed.

I'm thinking about an ability that an individual script can write a 'do not compress me' into the projectinfo.ini.
What do you think?

(Similar already exists and is used for autoUPX)

Peter

#4 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 13 August 2007 - 03:33 PM

quote name='psc' date='Aug 13 2007, 12:04 PM' post='19343']
When introducing the CopyOrExpand command the old possibility has been lost to copy compressed driver files directly to the target.

That encreased the ISO size by about 2 MB.

Peter


Great work Maestro! :loleverybody:

After detailed testing I have some comments and questions:

CopyAndExpand.Script v007 in Combination with autoCompress.Script
gives better size reducing by 0.5 MB than combination with C&E v015!

The reason is that expand and compression of sys files is not 100% reversible.

Attached File  Sy_Files.zip   10.26KB   204 downloads

What is the reason to CopyExpand ramdisk.sy_? It is not needed for StandardISO
and every CreateRAMISO script expand it anyhow from W2003 source?

I always delete Apphelp.dll file without any negative impact, probably because my
Application programs don’t have help function. What is purpose of this file?

#5 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 03:49 PM

The reason is that expand and compression of sys files is not 100% reversible.

What is the reason to CopyExpand ramdisk.sy_? It is not needed for StandardISO
and every CreateRAMISO script expand it anyhow from W2003 source?

I always delete Apphelp.dll file without any negative impact, probably because my
Application programs don't have help function. What is purpose of this file?

#1: I use original M$ makecab to compress. Maybe somebody knows a different app which can cab compress files better?
#2 and #3: That is history. I try to delete them and then check.

Peter

#6 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 04:55 PM

#1: I use original M$ makecab to compress. Maybe somebody knows a different app which can cab compress files better?
#2 and #3: That is history. I try to delete them and then check.
Peter

Google told me some undocumented makecab switches.
First result: XP standard size decrease 2132 kB compared with 1944 kB before.
(That are the missing 10% of phox's PDF)

Before I publish the new version, my standard checks ...

Peter

#7 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 05:29 PM

Great work Maestro! :w00t:

After handling the more important technical issues, now to communication issue:

As you see in the upper left, my title is 'Guru' :w00t: , not 'Maestro' :loleverybody:

Peter :w00t:

#8 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 13 August 2007 - 05:41 PM

As you see in the upper left, my title is 'Guru' :w00t: , not 'Maestro' :loleverybody:

Peter :w00t:


Please, don’t feel offended, Almighty!

I just wanted to emphasize your artistic side too.

:w00t:

#9 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 06:07 PM

Please, don't feel offended, Almighty!

I just wanted to emphasize your artistic side too.

:w00t:

:loleverybody:

Peter

#10 was_jaclaz

was_jaclaz

    Finder

  • Advanced user
  • 7100 posts
  • Location:Gone in the mist
  •  
    Italy

Posted 13 August 2007 - 06:36 PM

Tighter compression should be with LZX/21 settings:
http://www.msfn.org/...showtopic=25374

jaclaz

#11 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 06:42 PM

Tighter compression should be with LZX/21 settings:
http://www.msfn.org/...showtopic=25374

jaclaz


jaclaz,
you can see me very, very happy that this (maybe the only) time I'v been faster or more successful than you :loleverybody:
Your above link explains what some posts ago I delared as 'Google told me'

Peter

#12 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 13 August 2007 - 07:59 PM

New version delivered.
This version uses special makecab switches to optimize compression.

Result: All combinations booted well. Internet browsing was possible.

Size decrease (in kB):
XP standard: before: 1944 now: 2132
XP RAM: before: 2046 now: 2046
W2003 standard: before: 1454 now: 1646
W2003 RAM: before: 1022 now: 2046

Peter

#13 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 16 August 2007 - 05:51 AM

New version delivered.
This version uses special makecab switches to optimize compression.

Result: All combinations booted well. Internet browsing was possible.

Size decrease (in kB):
XP standard: before: 1944 now: 2132
XP RAM: before: 2046 now: 2046
W2003 standard: before: 1454 now: 1646
W2003 RAM: before: 1022 now: 2046

Peter


After testing new autoCompress script I found that files usbd.sy_, usbehci.sy_,
usbohci.sy_, usbuhci.sy_, usbport.sy_, usbhub.sy_ and usbstor.sy_ from
USBSupport.Script should not be expanded and than compressed again.

If this is valid for other sources beside English XPSP2, than script should be
adapted accordingly.

#14 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 16 August 2007 - 06:32 AM

After testing new autoCompress script I found that files usbd.sy_, usbehci.sy_,
usbohci.sy_, usbuhci.sy_, usbport.sy_, usbhub.sy_ and usbstor.sy_ from
USBSupport.Script should not be expanded and than compressed again.


Why? What happens?

Peter

#15 phox

phox

    Silver Member

  • .script developer
  • 764 posts

Posted 16 August 2007 - 07:02 AM

Why? What happens?

Peter


Nothing happens: why expand and compress some files if it's not necessary.

#16 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 16 August 2007 - 07:09 AM

Nothing happens: why expand and compress some files if it's not necessary.


OK. Then I pass the issue to Ove

Peter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users