You are here

UPX Compressed Firefox?

5 posts / 0 new
Last post
Last seen: 17 years 4 months ago
Joined: 2005-12-24 01:46
UPX Compressed Firefox?

I'd first like to thank you for making these apps portable. I'm working on some projects with USB drives and this comes in very handily. I'll post more about my projects soon.
Now for the issues...
Why isn't PFF1.5 executables and dll's compressed? I compressed them myself and shrunk it down about 40%. Less USB access = faster startup Smile

Also, I have my profile and other personal settings in a seperate directory. It took me a while, but I figured out that I had to move the PortableFirefox.ini to the same location as PortableFirefox.exe and for the ProfileDirectory setting, I had to use "..\personal\FFProfile" to specify the directory which contains my profile.
This issue happens with Portable Thunderbird too, but not with Portable GAIM. With GAIM, I can leave the ini file where it is and use \personal\GAIMSettings to specify my account information. Is this fixable?

I'd also like to recommend myEasySynch. I use it at work to synchronize a utility folder with multiple flash drives for our support department.
It's just a single file and doesn't use the registry.

Again, thanks for all your efforts.

SHADOW-XIII's picture
Last seen: 15 years 2 months ago
Joined: 2005-12-22 11:19
as for UPX FF 1.5 cannot be

as for UPX
FF 1.5 cannot be UPXed because it will break it's new auto-update feature

Embrace your dreams

John T. Haller
John T. Haller's picture
Last seen: 37 min 1 sec ago
Joined: 2005-11-28 22:21
What shadow said

A quick search of the forums would reveal this has been answered at least 6 times already. It's a matter of auto-update vs 8mb. Auto-update won on both FF and TB 1.5.

As for the INIs, they HAVE to be in the same directory as the EXE or one of the other mentioned directories. This is explained in detail in the readme.txt within PortableFirefoxCode, etc.

Sometimes, the impossible can become possible, if you're awesome!

Last seen: 18 years 1 week ago
Joined: 2006-05-24 11:58
UPX 2.0 working fine, but carefull of cmd line params!

I just wanted to share this, hoping it might be usefull:

I run Portable FF from a folder on my work machine where I have no admin priviledges.

I tried UPX (version 2.0 27 Apr 2006 see with the following command lines in the \firefox and \components dirs:

upx *.exe --best --compress-icons=0 --nrv2d --crp-ms=999999 -k
upx *.dll --best --compress-icons=0 --nrv2d --crp-ms=999999 -k

This STOPPED PFF from working. After eventually restoring the files I tried:

upx *.exe
upx *.dll

in ther same dirs. This brought the firefox dir from 9.24 Mb to 4.33 Mb. PFF works perfectly and as of now hasn't shown any problem.
I eventually did autoupdate and it worked successfully from to (extensions included).
The problem is just that filesize goes back to the original about 9 Megs. So at least you are in lack of space, doing upx *.exe and upx *.dll again will work.

Or though this worked for me, I reccomend using the -k option or to backing up the dirs before testing.


Last seen: 17 years 7 months ago
Joined: 2006-01-12 00:40
I've compressed FF OK

I've compressed FF (knowing I'd have to redo this after an update) with no issues, though I manually went through the main directories and used UPXShell (with those parameters of John's added). However, I've always left the extensions (I only have 12 of them) and the .jar files alone.

Backing up first is always good, and also for any other program you "UPX"...occasionally I find one where one or more files that are compressed causes the program to fail. I have noticed that using UPXShell causes the original file to stay with a '~" at the end of it, requiring me to manually delete these after I am done.

Topic locked