Sign in to follow this  
Followers 0
Palmerj

upx fails

4 posts in this topic

Compiling a very simple program consisting of one line - ConsoleWrite("Test Output") - fails the upx step with a "rename error".

Wondering if anyone has encountered this.

This is the console output:

>"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "C:\Test\runme.au3"
+>10:17:30 Starting AutoIt3Wrapper v.2.0.3.0    Environment(Language:0409  Keyboard:00000409  OS:WIN_7/  CPU:X64 OS:X86)
-> 1 Change(s) made.
>Running:(3.3.6.1):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "C:\Test\runme.au3" /out "C:\Test\runme.exe" /nopack /comp 2
+>10:17:46 Aut2exe.exe ended.rc:0
>Running:(3.3.0.0):C:\Program Files\AutoIt3\aut2exe\upx.exe" --best --compress-icons=0 -qq "C:\Test\runme.exe"
upx: C:\Test\runme.exe: IOException: rename error: File exists
    694017 ->   348929   50.28% win32/pe     runme.exe
->10:17:48 UPX Ended: rc:1
+>10:17:48 Created program:C:\Test\runme.exe
>Exit code: 0   Time: 18.370

Thank you

Share this post


Link to post
Share on other sites



One thing to try is make sure that you don't have Windows Explorer open to the folder that your .exe is being created in.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Make sure the file permissions did not somehow get changed.


My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

MY PROJECTS


Active: IRC UDF, WindowEx UDF
Discontinued: GithubBubbleSort UDF

Share this post


Link to post
Share on other sites

As pointed out by BrewManNH, the problem was with Windows Explorer being open to the folder. Simply navigating up, or down one level in the folder structure allows UPX to complete.

What surprises me is that I've been working with AutoIt for quite some time now and somehow never ran into this. Possibly because in the past, I've used Primal Script primarily and launch the script to exe converter outside the editor. Another possibility is the fact that I've been using an XP machine until a few months ago for development, which I finally upgraded to Windows 7.

Thank you, much appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0