You are here

UPXable files?

17 posts / 0 new
Last post
Travis Carrico
Offline
Last seen: 15 years 12 months ago
Developer
Joined: 2006-10-22 00:30
UPXable files?

ok, i'm wanting to make an app for PortableApps Developers to upx any given folder with the click of a button or two. what i need is a complete list of all file types that can be upx'd. i know i can just do *.* but when you have something that has a ton of small files it takes a while. the upx website doesn't list everything, and all i know of at the moment are .exe, .dll, .pyd, .irc, .dcp, .com, .sys, .pe. please either post a link to a complete list or post other file types you know are upxable, thanks.

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-12-06 18:07
Sounds like a good idea.

Sounds like a good idea. What language are you writing the app in? and sorry, i dont know about other filetypes that UPX supports.

The developer formerly known as ZGitRDun8705

Travis Carrico
Offline
Last seen: 15 years 12 months ago
Developer
Joined: 2006-10-22 00:30
language

well, i wasn't sure what language yet. i'm not an experienced programmer or anything so i was gonna stick with something i was comfortable with, like autoit. i guess if someone else wanted to take this over who is a better programmer than me that'd be okay too. i just know that an app like this would benefit all of the developers.

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 11 months ago
Developer
Joined: 2006-12-06 18:07
I've been playing around

I've been playing around with wxWidgets lately, so I may give it a go. Go ahead and do your version though, it'll be good to have a tool out to handle it properly.

The developer formerly known as ZGitRDun8705

Shawn Faucher
Shawn Faucher's picture
Offline
Last seen: 15 years 3 months ago
Developer
Joined: 2007-10-23 22:14
Cool

If this helps, here's a batch file designed to be run from a Source directory and upx anything in the corresponding App directory, testing each file to make sure it is valid and reverting it if it's not. At least it will give you the steps to adapt to another language.

:: This script will compress all exe and dll files in the App directory and subdirectories to save space.
:: Files that don't compress correctly are automatically reverted.
@ECHO OFF
:: UPX is available at http://upx.sourceforge.net
SET UPXBIN=..\..\..\UPX\upx.exe

ECHO Compressing exe and dll files...
SETLOCAL EnableDelayedExpansion
FOR /F "tokens=*" %%G IN ('DIR /B /S ..\..\App\*.exe ..\..\App\*.dll') DO (
    %UPXBIN% "%%G" --best --compress-icons=0 --nrv2e --crp-ms=999999 -k
	SET VAR=%%G
	%UPXBIN% "%%G" -t
	IF !ERRORLEVEL! NEQ 0 (MOVE /Y !VAR:~0,-1!^~ %%G) ELSE (DEL /Q !VAR:~0,-1!^~)
)
ECHO Compression complete.

formerly rayven01

m2
Offline
Last seen: 13 years 9 months ago
Joined: 2006-12-12 12:00
*.8bf *.acm *.asi *.ax *.bpl

*.8ba *.8bf *.acm *.asi *.ax *.bpl *.cnv *.cpl *.del *.dfp *.dil *.dli *.drv *.fae *.icd *.m3d *.mmh *.ocx *.pfl *.qts *.qtx *.scr *.sfx *.thp *.vdf *.vwp *.vxd *.wbx *.wcx *.wdx *.wfx *.wll *.wlx

Edited.

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

Travis Carrico
Offline
Last seen: 15 years 12 months ago
Developer
Joined: 2006-10-22 00:30
:-)

you're awesome! is that a list of all of them or just a bunch more of the ones that you know of?

m2
Offline
Last seen: 13 years 9 months ago
Joined: 2006-12-12 12:00
There is no full list..and

There is no full list..and will never be. There are just too many niche programs that use renamed dlls.

One more:
*.bin

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

BuddhaChu
BuddhaChu's picture
Offline
Last seen: 5 months 6 days ago
Joined: 2006-11-18 10:26
As stated, you'll never be

As stated, you'll never be able to cover all the file extensions for all the programs out there. An idea would be to run all files thru UPX. It will only compress executables anyways and will just error on a gif or jpg for example (not exactly an efficient method I know... Wink )

To illustrate my very first point, mIRC uses .irc files that are renamed .dlls or .exes.

Also you should know John has already partially coded the app you have in mind in NSIS, he just hasn't released it to anyone yet since it's half-baked. I offered to help him finish it, but my email was either ignored, he doesn' want my help, or more probably it was lost in the other bagillion emails he gets.

Cancer Survivors -- Remember the fight, celebrate the victory!
Help control the rugrat population -- have yourself spayed or neutered!

John T. Haller
John T. Haller's picture
Offline
Last seen: 18 hours 47 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Can't Do All / I'll Post It

You can't just UPX *.*. I started doing that, but it will mess up some files. Case in point: the current OpenOffice.org Portable which has corrupted .py files. UPX mistakenly compressed them even though they are text files.

The email is in the pile. I'll post what I have and you can see about adding PNG compression (which is what I think you'd mentioned a while back).

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

m2
Offline
Last seen: 13 years 9 months ago
Joined: 2006-12-12 12:00
Could you post a sample of

Could you post a sample of such text file?

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 5 years 3 months ago
Joined: 2008-02-05 11:22
Good idea

Id love to have UPX portable

Simplifying daily life through technology

m2
Offline
Last seen: 13 years 9 months ago
Joined: 2006-12-12 12:00
http://upx.sourceforge.net/do

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 5 years 3 months ago
Joined: 2008-02-05 11:22
I mean an official UPX portable

I dont mean the regular UPX.

Simplifying daily life through technology

m2
Offline
Last seen: 13 years 9 months ago
Joined: 2006-12-12 12:00
It is portable. What else do

It is portable. What else do you want?

"Those people who think they know everything are a great annoyance to those of us who do." Asimov

Stevoisiak
Stevoisiak's picture
Offline
Last seen: 5 years 3 months ago
Joined: 2008-02-05 11:22
Well...

The first post/topic starter clearly says

ok, i'm wanting to make an app for PortableApps Developers to upx any given folder with the click of a button or two.

Thats what I want

Simplifying daily life through technology

John T. Haller
John T. Haller's picture
Offline
Last seen: 18 hours 47 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Today

I'll post it today in its current form and let others mess with it.

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

Log in or register to post comments