:roll: Sure I can. Post the exe somewhere and I'll compress it and send it back. Your move. (Note: I might ask for the source code too, in case you try something sneaky to stop me).moogle wrote:However if I'm doing it so wrong you wouldn't mind compressing it for me then would you? Doubt that you can
What happens ?
-
- Enthusiast
- Posts: 469
- Joined: Sun Mar 16, 2008 9:18 am
Re: What happens ?
Re: What happens ?
Nah I wouldn't do something sneakyUserOfPure wrote::roll: Sure I can. Post the exe somewhere and I'll compress it and send it back. Your move. (Note: I might ask for the source code too, in case you try something sneaky to stop me).

Anyway I found the problem, the exe I was trying to compress was too small

Googled the error it was giving and it seems there's a limit of the size it will try to compress.
It worked on a bigger compiled PB exe.

-
- Enthusiast
- Posts: 469
- Joined: Sun Mar 16, 2008 9:18 am
Re: What happens ?
Hmm, well the frontend you're using is still not using UPX correctly, because I just used UPX to compress a 3 KB executable and it became 2.50 KB, so if it works on something that small, then your frontend is obviously using a pre-set size limit and refusing to compress anything smaller.moogle wrote:the exe I was trying to compress was too small
Re: What happens ?
Hmm really?UserOfPure wrote:Hmm, well the frontend you're using is still not using UPX correctly, because I just used UPX to compress a 3 KB executable and it became 2.50 KB, so if it works on something that small, then your frontend is obviously using a pre-set size limit and refusing to compress anything smaller.moogle wrote:the exe I was trying to compress was too small

Well it's PureUPX made by gnozal (I think?)
I get NotCompressibleException as an error from the commandline one.

-
- Enthusiast
- Posts: 469
- Joined: Sun Mar 16, 2008 9:18 am
Re: What happens ?
Is the source code able to be shown here, so I can try it for myself without a front-end? Because it should fail without the front-end too, and if it doesn't, then the front-end is the problem.
-
- 666
- Posts: 1033
- Joined: Mon Sep 01, 2003 2:33 pm
Re: What happens ?
I would say you were doing something wrong myself....moogle wrote:Sure...UserOfPure wrote:You're doing something wrong, then. All PB apps compress quite well, like any normal exe.
How can I do it wrong with a frontend?
How do you do it then?
I even tried via command line upx.exe -4 file.exe and it fails
However if I'm doing it so wrong you wouldn't mind compressing it for me then would you? Doubt that you can
Code: Select all
upx -9 -o"<INSERT FULL PATH TO OUTPUT FILE>OutputFile.exe" "<INSERT FULL PATH TO FILE>file.exe"
eg.
upx -9 -o"C:\Documents and Settings\moogle\Desktop\OutputFile.exe" "C:\Documents and Settings\moogle\Desktop\FileToCompress.exe"
-
- 666
- Posts: 1033
- Joined: Mon Sep 01, 2003 2:33 pm
Re: What happens ?
Are you trying to compress an already compressed exe?moogle wrote:Hmm really?UserOfPure wrote:Hmm, well the frontend you're using is still not using UPX correctly, because I just used UPX to compress a 3 KB executable and it became 2.50 KB, so if it works on something that small, then your frontend is obviously using a pre-set size limit and refusing to compress anything smaller.moogle wrote:the exe I was trying to compress was too small
Well it's PureUPX made by gnozal (I think?)
I get NotCompressibleException as an error from the commandline one.
Re: What happens ?
Nope unless PB UPX's it after compilationLuCiFeR[SD] wrote:Are you trying to compress an already compressed exe?

It just has 1 icon and it's 18.5kb and it fails on PureUPX with exit code=1 and NotCompressibleException
LuCiFeR[SD] wrote:I would say you were doing something wrong myself....
Code: Select all
Microsoft Windows [Version 6.0.6002]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.
C:\Users\Moogle>cd ..
C:\Users>cd ..
C:\>cd upx304w
C:\upx304w>
C:\upx304w>upx -9 -o"C:\OutputFile.exe" "C:\upx304w\PressBot.exe"
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2009
UPX 3.04w Markus Oberhumer, Laszlo Molnar & John Reiser Sep 27th 2009
File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: C:\upx304w\PressBot.exe: NotCompressibleException
Packed 1 file: 0 ok, 1 error.
C:\upx304w>

-
- Enthusiast
- Posts: 469
- Joined: Sun Mar 16, 2008 9:18 am
Re: What happens ?
Can you post the PressBot.exe somewhere so we can see it?
-
- 666
- Posts: 1033
- Joined: Mon Sep 01, 2003 2:33 pm
Re: What happens ?
yeah, I just tried to compress a really small 3KB file and it failed too. It was just a message requester. So, it looks like you were correct moogle, it is just down to filesize. Even with the force flag it failed to compress. So I guess I should swallow a little humbe pie here and apologise LOLTrying to convert an old piece of code that did compress so I can compile it under 4.4b7 to see if it still compresses.

PECompact worked ok with it though, even though it did make the filesize larger... which is pretty pointless lol

Re: What happens ?
Glad to know I wasn't going crazyLuCiFeR[SD] wrote:yeah, I just tried to compress a really small 3KB file and it failed too. It was just a message requester. So, it looks like you were correct moogle, it is just down to filesize. Even with the force flag it failed to compress. So I guess I should swallow a little humbe pie here and apologise LOLTrying to convert an old piece of code that did compress so I can compile it under 4.4b7 to see if it still compresses.
PECompact worked ok with it though, even though it did make the filesize larger... which is pretty pointless lol

Yeah PECompact increased the size for mine too.
It's all PB's fault for those tiny exe sizes I say

http://www.mediafire.com/?ahhdzuoquwlUserOfPure wrote:Can you post the PressBot.exe somewhere so we can see it?
Sorry I didn't get any email notifications on your messages

PS - Scan it first because I don't have a virus scanner, but it's nothing malicious. Just a key macro for a MMO I play


-
- Enthusiast
- Posts: 469
- Joined: Sun Mar 16, 2008 9:18 am
Re: What happens ?
You know that 3 KB exe that I compressed with UPX? It was just a MessageRequester too:LuCiFeR[SD] wrote:I just tried to compress a really small 3KB file and it failed too. It was just a message requester
Code: Select all
MessageRequester("hi","hi")
As for PressBot.exe, yes, it doesn't compress. But looking at the hex dump, it has a lot of repetitive data. My guess is it's got some binary thing included? Can I see the source to make a final decision?
Re: What happens ?
Hello work in C is about 3kb with GNU's C++ compiler using C libraries. Include iostream and print it using cout and the executable jumps to nearly 500kb.
Compiling -s (remove debugging symbols) brings it down to about 270k. That's as low as I can get it; for a console app that prints "hello, world!" with iostream.
The Visual C++ compiler comes in a close section, still topping 200kb.
How's that for bloat.
Compiling -s (remove debugging symbols) brings it down to about 270k. That's as low as I can get it; for a console app that prints "hello, world!" with iostream.
The Visual C++ compiler comes in a close section, still topping 200kb.
How's that for bloat.
