[Script] autoUPX
#26
Posted 28 August 2006 - 10:49 AM
#27
Posted 28 August 2006 - 10:52 AM
Shell32.dll with uncompressed icons
Undo functionality.
For download you may use the link of the initial post or the update functionality.
Peter
#28
Posted 28 August 2006 - 11:15 AM
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.
Are we suppose to see these as option on the gui. Or are they auto also.Shell32.dll with uncompressed icons
Undo functionality.
Only one selectable and deselectable option is available.
Rebuild processUPX.Script evertime this script is run
#29
Posted 28 August 2006 - 11:26 AM
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!
#30
Posted 28 August 2006 - 12:04 PM
Are we suppose to see these as option on the gui. Or are they auto also.
Shell32.dll with uncompressed icons
Undo functionality.
Click the 'help' button.
Peter
#31
Posted 28 August 2006 - 12:07 PM
Peter
#32
Posted 28 August 2006 - 01:53 PM
This how its suppost to look. Right.
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.
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.
Is the reason why Explorer is using more RAm, is it because its compressed?
.
#33
Posted 28 August 2006 - 02:07 PM
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..
Perhaps Ove could also add his upx'ed files in explorer to the autoUPX list?
I'll now try smiley's modifications on the standard build scripts..
#34
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
Posted 28 August 2006 - 02:17 PM
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).Perhaps Ove could also add his upx'ed files in explorer to the autoUPX list?
autoUPX has this name because the script catches everything wich is allowed to be UPXed. (exceptions etc. see the help)
Peter
#36
Posted 28 August 2006 - 02:23 PM
This means that UPX'ing in Ove's explorer script is unnecessary whenever autoUPX is also applied, right?
#37
Posted 28 August 2006 - 03:09 PM
Will definitively take a much closer look..
This means that UPX'ing in Ove's explorer script is unnecessary whenever autoUPX is also applied, right?
Sim
Peter
#38
Posted 30 August 2006 - 09:36 AM
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.
Currently there are 2 individual definitions necessary (for shortcuts and icons to work properly):
In Explorer.Script:
IniWrite,"%ProjectInfo%","UPX-Switches","Shell32.dll","-9 --compress-icons=0"In NotePad.Script:
IniWrite,"%ProjectInfo%","UPX-Switches","notepad.exe","-9 --compress-resources=0"
Peter
#39
Posted 30 August 2006 - 10:03 AM
#40
Posted 30 August 2006 - 10:59 AM
Mission Icons:
Loose Icons after clicking around another folder or drive.
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
Posted 30 August 2006 - 11:04 AM
@ The hive: Everything will work after explorer and notepad script are fixed. I'll do it with notepad now...
#42
Posted 30 August 2006 - 11:10 AM
#43
Posted 30 August 2006 - 11:26 AM
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.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.
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).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.
@Nuno:
Would be good to declare this as warning rather then error.
Or: What about a 'default' in the IniRead?
Peter
#45
Posted 30 August 2006 - 12:26 PM
No need to overcomplicate things
//martin
#46
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
Posted 30 August 2006 - 02:04 PM
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.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
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
Posted 30 August 2006 - 02:24 PM
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..
#49
Posted 30 August 2006 - 02:46 PM
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.
Well I do have all the screensavers on the ISO. I need to disable them and just use the CPU one.
#50
Posted 31 August 2006 - 12:56 AM
#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