Jump to content











Photo
* * * * * 1 votes

[Script] autoUPX


  • Please log in to reply
71 replies to this topic

#26 pscEx

pscEx

    Platinum Member

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

Posted 28 August 2006 - 10:49 AM

New version online.

#27 pscEx

pscEx

    Platinum Member

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

Posted 28 August 2006 - 10:52 AM

New version online.
:P

Shell32.dll with uncompressed icons
Undo functionality.


For download you may use the link of the initial post or the update functionality.

Peter

#28 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4202 posts

Posted 28 August 2006 - 11:15 AM

I tried an auto update on the script. I have ver7 so I upgraded to v8. When I did this the Layout on the right side of the gui, where the gui configurations for the script are messing up. For example the Button at the bottom is float ontop of the text. Then the Licence box shows up empty at the bottom.

If I do a manual update everything seems fine. Nothing floating on top any thing and the button at the bottom is not on top of the text.


Shell32.dll with uncompressed icons
Undo functionality.

Are we suppose to see these as option on the gui. Or are they auto also.

Only one selectable and deselectable option is available.

Rebuild processUPX.Script evertime this script is run

#29 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 28 August 2006 - 11:26 AM

Just downloaded version 8 - excellent!! :P


Liked the autoTweak folder along with the documentation included inside the autoUPX folder, this is a really good example to follow..

btw: I've downloaded the file instead of updating - and all controls are working as expected.

I'll be doing some tests then I'll hopefully post my results! :P

#30 pscEx

pscEx

    Platinum Member

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

Posted 28 August 2006 - 12:04 PM


Shell32.dll with uncompressed icons
Undo functionality.

Are we suppose to see these as option on the gui. Or are they auto also.


Click the 'help' button.

Peter

#31 pscEx

pscEx

    Platinum Member

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

Posted 28 August 2006 - 12:07 PM

The replies show that perhaps there is still an issue with the user interface after an update :P

Peter

#32 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4202 posts

Posted 28 August 2006 - 01:53 PM

I wrote the other post before testing the Script. First time impressions.
This how its suppost to look. Right.
Posted Image

If so then its ok. Only when I did an AutoUpdate did I notice the Messed up gui interface. So the manual update fixed it to look the way I perceived its suppose to look.

I tried the help. :P
So I just ran the Script. Crossed fingers. Like you said I wont understand everthing in the help so I left it be.


After running the script. I have a Good Setup. All the Icons seem to be showing now. The History Icond is missing. But I think that was happening even before using AutoUPX in previous builds. :P
Posted Image

Is the reason why Explorer is using more RAm, is it because its compressed?




.

#33 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 28 August 2006 - 02:07 PM

Yes, explorer UPX'ed will eat up a lot of RAM - but this won't be a significant problem on machines using at least 256Mb of RAM.

Following Joshua's project - the PreShell - there's an option to choose alternative shells and options that will ease the RAM usage, let's hope he releases his work soon..

Just tested this script as well - worked like a charm! - overall result: 42,5Mb

Peter: Still haven't figured what is causing this GUI problem.. :P

Perhaps Ove could also add his upx'ed files in explorer to the autoUPX list? :P

I'll now try smiley's modifications on the standard build scripts.. :P

#34 pscEx

pscEx

    Platinum Member

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

Posted 28 August 2006 - 02:09 PM

Is the reason why Explorer is using more RAm, is it because its compressed?


You are right, UPXed files need some (sometimes a lot) of RAM to decompress.

So the developer has to find the best way between 'small ISO' and 'few memory'

Peter

#35 pscEx

pscEx

    Platinum Member

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

Posted 28 August 2006 - 02:17 PM

Perhaps Ove could also add his upx'ed files in explorer to the autoUPX list? :P

He does not need to do so; he additionally may remove his 'UPX' check box from his script (I unchecked all of those check boxes in my projects).
autoUPX has this name because the script catches everything wich is allowed to be UPXed. (exceptions etc. see the help)

Peter

#36 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 28 August 2006 - 02:23 PM

Will definitively take a much closer look.. :P

This means that UPX'ing in Ove's explorer script is unnecessary whenever autoUPX is also applied, right? :P

#37 pscEx

pscEx

    Platinum Member

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

Posted 28 August 2006 - 03:09 PM

Will definitively take a much closer look.. :P

This means that UPX'ing in Ove's explorer script is unnecessary whenever autoUPX is also applied, right? :P


Sim

Peter

#38 pscEx

pscEx

    Platinum Member

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

Posted 30 August 2006 - 09:36 AM

A new version is available here. :P

Main changes (extract of the 'Help'):

Customizing

By default, all DLLs in the 'UPX-Able_DLL.txt' list and all EXEs are UPXed with the command line switch -9.
A script can define exceptions to the default by writing its own UPX rules into ProjectInfo.ini, section [UPX-Switches].
An entry looks like:
<file> = <command line switch>

Examples:
To preserve icons you define:
IniWrite,"%ProjectInfo%","UPX-Switches","Shell32.dll","-9 --compress-icons=0"
To prevent UPXing of an EXE, just set <command line switch> to - (minus):
IniWrite,"%ProjectInfo%","UPX-Switches","MyExe.exe","-"
To add a DLL not in the 'UPX-Able_DLL.txt' list :
IniWrite,"%ProjectInfo%","UPX-Switches","MyDll.dll","-9"


That means: The files 'my_Non-UPX-Able_DLL.txt', 'my_Non-UPX-Able_EXE.txt' and 'my_UPX-Able_DLL.txt' are not necessary any more. :P

Currently there are 2 individual definitions necessary (for shortcuts and icons to work properly):
In Explorer.Script:
IniWrite,&#34;%ProjectInfo%&#34;,&#34;UPX-Switches&#34;,&#34;Shell32.dll&#34;,&#34;-9 --compress-icons=0&#34;
In NotePad.Script:
IniWrite,&#34;%ProjectInfo%&#34;,&#34;UPX-Switches&#34;,&#34;notepad.exe&#34;,&#34;-9 --compress-resources=0&#34;

Peter

#39 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 30 August 2006 - 10:03 AM

Simple + effective = excellent!! :P

#40 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4202 posts

Posted 30 August 2006 - 10:59 AM

With version 09 I get the similar effect as version 07 where some icons are missing which seemed to be fixed in v008. The icon on the Explorer Window is turned into a folder icon and the Control Panel Icon is also a Folder. When you click between folders or drive letter you loose the icon representation.

Mission Icons:
Posted Image

Loose Icons after clicking around another folder or drive.
Posted Image

I also see this error in the log.
#2022 [Failed] INIRead - Failed to read value from: [%BaseDir%\Projects\Standard\ProjectInfo.ini] Section: [RamDrive] Key: [DriveLetter] to variable: [%DriveLetter%] 1 error(s) while processing.

I must have come on the previous but I just noticed it.

#41 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 30 August 2006 - 11:04 AM

Thanks Psc :P .Excelent work!!!!!!!!!

@ The hive: Everything will work after explorer and notepad script are fixed. I'll do it with notepad now...

#42 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4202 posts

Posted 30 August 2006 - 11:10 AM

I will go back to v008 in the mean time. Aleast untill Explorer and Notepad is fixed. Thanks for the side note about that.

#43 pscEx

pscEx

    Platinum Member

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

Posted 30 August 2006 - 11:26 AM

With version 09 I get the similar effect as version 07 where some icons are missing which seemed to be fixed in v008. The icon on the Explorer Window is turned into a folder icon and the Control Panel Icon is also a Folder. When you click between folders or drive letter you loose the icon representation.

This is depending on the 'On The Fly' installation of the autoUPX script only. Your explorer and notepad script need an entry each like described in post #38. You can copy the lines and add into the scripts at the end of the [process] section.
In the complete released version this should be ok.

I also see this error in the log.
#2022 [Failed] INIRead - Failed to read value from: [%BaseDir%\Projects\Standard\ProjectInfo.ini] Section: [RamDrive] Key: [DriveLetter] to variable: [%DriveLetter%] 1 error(s) while processing.
I must have come on the previous but I just noticed it.

If you install the latest RamDrive script, this should be ok (Ove posted that he had changed the script).

@Nuno:
Would be good to declare this as warning rather then error.
Or: What about a 'default' in the IniRead?

Peter

#44 smiley

smiley

    Silver Member

  • .script developer
  • 905 posts
  •  
    Greece

Posted 30 August 2006 - 11:59 AM

I have fixed notepad. See here :P

#45 Draugen

Draugen

    Frequent Member

  • .script developer
  • 147 posts
  • Location:South of Heaven

Posted 30 August 2006 - 12:26 PM

IMO, if a default value is desired (if iniread fails or something), keep the current behavior (maybe a warning instead of an error, but mostly semantics), and use the value in the [variables] section.

No need to overcomplicate things :P

//martin

#46 pscEx

pscEx

    Platinum Member

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

Posted 30 August 2006 - 12:29 PM

.... and use the value in the [variables] section.


That's what I currently do. But as you see, it generates confusion.
I agree that just degrading Error to Warning would be enough.

Peter

#47 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4202 posts

Posted 30 August 2006 - 02:04 PM

Your explorer and notepad script need an entry each like described in post #38. You can copy the lines and add into the scripts at the end of the [process] section.
In the complete released version this should be ok.

If you install the latest RamDrive script, this should be ok (Ove posted that he had changed the script).


Peter

Lets see if I can make the changes to Explorer Script to get it to work based on what you say on Post #38. I have updated Notpad Script to v006 which smiley has updated.

I found the Process line and I added the line to the end.
like this

IniWrite,"%ProjectInfo%","UPX-Switches","Shell32.dll","-9 --compress-icons=0"


I have been testing with version 5 of Ove RamDrive. I think thats the latest he has.

#48 Brito

Brito

    Platinum Member

  • .script developer
  • 10616 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 30 August 2006 - 02:24 PM

I was stranging the error messages - I'm happy to see that they are predictable.

Would be good to declare this as warning rather then error.
Or: What about a 'default' in the IniRead?


IniRead will be able to have the option to set a default value whenever the wanted key is not found, then it will output two sort of of messages in this case: Warning whenever this default value is used and Error whenever no key is found and this default value is also not present.


btw: autoUPX is getting very good results on my builds, sizing in 41Mb on XP based builds with all scripts enabled.. :P

#49 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4202 posts

Posted 30 August 2006 - 02:46 PM

I reupdated RAM disk Script manually again to see if the error would be gone. It seems Ove updated to the same version number. I dont seem to get the error message anymore

Other good news is that I updated to the latest Notepad Script v006 and manually edited the Explorer Script to add the line psc mentioned on Post #38 and now the Build has no missing icons.

Im getting a 45MB ISO. :P
Well I do have all the screensavers on the ISO. I need to disable them and just use the CPU one.

#50 TheHive

TheHive

    Platinum Member

  • .script developer
  • 4202 posts

Posted 31 August 2006 - 12:56 AM

Tested again to build a ISO and I still get

#1879 [Failed] INIRead - Failed to read value from: [%BaseDir%\Projects\Standard\ProjectInfo.ini] Section: [RamDrive] Key: [DriveLetter] to variable: [%DriveLetter%] 1 error(s) while processing.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users