DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Advanced GUI for UPX  (Read 17,100 times)

noutters

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 32
Advanced GUI for UPX
« on: November 16, 2006, 09:22 AM »
I decided it was time to code a GUI for UPX (Ultimate Packer for eXecutables, http://upx.sourceforge.net/) when I wanted to compress all possible resources on my USB thumbdrive. I am lazy and did not want to recursively compress by hand the files in the directories of the drive  :)



1. Drop files and directories in the list window. Directories and their sub-directories are searched recursively for files that match the filter.
-> Cool feature: each file is tested for compression when the list is built and uncompressed resources only are checked. This gives the user a good overview of the state of the resources.

2. Compression/Decompression. All options of UPX 2.01 are available. Checking the radio control of decompress checks the compressed resources in the list and uncheck (of course) the non-compressed resources

3. Processing:
-> Cool feature: The status bar shows the progression of the gain of storage space on your drive as the list is processed. Same with decompression, when the gain turns into a loss.
-> Since the UPX process is completely hidden, the status bar indicates if UPX is active or not.

The source is posted at http://autohotkey.net/~noutters/UPX_GUI.ahk

Cheers!   :D
« Last Edit: November 16, 2006, 10:19 AM by noutters »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Advanced GUI for UPX
« Reply #1 on: November 16, 2006, 04:41 PM »
beautiful - you have seriously mastered the ahk gui it seems!  :up:

Dr-Leech

  • Psychedelic Coder
  • Member
  • Joined in 2006
  • **
  • Posts: 151
Re: Advanced GUI for UPX
« Reply #2 on: November 22, 2006, 03:03 PM »
that's really great..

thanks!

Cavalcader

  • Live Long & Prosper
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 194
Re: Advanced GUI for UPX
« Reply #3 on: November 24, 2006, 03:09 AM »
Looks very nice! 8):up:
My Linguistic Profile:
  40% General American English
  30% Yankee
  20% Dixie

What Kind of American English Do You Speak?

Cynic

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 32
Re: Advanced GUI for UPX
« Reply #4 on: November 25, 2006, 08:57 PM »
Could someone please provide a link to an .exe file?
I don't know what to do with the source code.

Thanks.

Cavalcader

  • Live Long & Prosper
  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 194
Re: Advanced GUI for UPX
« Reply #5 on: November 25, 2006, 10:00 PM »
I don't know what to do with the source code.
Good point. If you go to www.autohotkey.com you can download the program that lets you run the .AHK files, and it can also convert them to executables.
My Linguistic Profile:
  40% General American English
  30% Yankee
  20% Dixie

What Kind of American English Do You Speak?
« Last Edit: November 25, 2006, 10:03 PM by Cavalcader »

Cynic

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 32
Re: Advanced GUI for UPX
« Reply #6 on: November 26, 2006, 02:36 AM »
Thanks, I'll look into it.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Advanced GUI for UPX
« Reply #7 on: November 26, 2006, 08:37 AM »
just to help encourage you - it's realllllly easy to build a standalone .exe from an .ahk script once you install autohotkey, you can just right click on an .ahk in your file explorer and say "make exe".  and having autohotkey installed is nice because then you can customize your script, etc.

Cynic

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 32
Re: Advanced GUI for UPX
« Reply #8 on: November 27, 2006, 10:24 AM »
Indeed it is, I had already made the .exe but forgot to post here letting you know.
Thanks again.

Original address: https://www.donationcoder.com/forum/index.php?topic=6180.0