Sign in to follow this  
Followers 0
xwinterx

Beta Compile Error

22 posts in this topic

I have the latest AutoIt 3 beta and when I try to beta compile, I get an error regarding the icon. Says either it cannot be found or is the incorrect format. Anyone help me with this?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Sure, make sure that it is a VALID ico file, not just a renamed bmp file.

#)

EDIT: If you are asking how, look here: http://www.autoitscript.com/forum/index.ph...ndpost&p=160636

Edited by nfwu

Share this post


Link to post
Share on other sites

I am using the same .ico file that I use to regularly compile a script.

Share this post


Link to post
Share on other sites

How are you compiling it?


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

How are you compiling it?

I am using Tools -> Beta Compile

I have also tried right-clicking and selecting Beta Compile as well.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

You have probably selected an alternate Icon before which doesn't exists anymore.

Aut2Exe will always use the last used icon as default Icon for compiles

Run this script to reset the registry:

$icon = RegRead("HKCU\Software\AutoIt v3\Aut2Exe","lastIcon")
$icondir = RegRead("HKCU\Software\AutoIt v3\Aut2Exe","lastIcondir")
If Not FileExists($icondir & "\" & $icon) Then 
    ConsoleWrite('! Last used ICON not found: ' & $icondir & "\" & $icon & ', resetting registry entry.' & @lf)
    RegWrite("HKCU\Software\AutoIt v3\Aut2Exe","lastIcon","REG_SZ","")
EndIf
If Not FileExists($icondir) Then 
    ConsoleWrite('! Last used ICON directory not found: ' & $icondir  & ', resetting registry entry.' & @lf)
    RegWrite("HKCU\Software\AutoIt v3\Aut2Exe","lastIconDir","REG_SZ","")
EndIf
Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thanks... still no go... will try a couple of things. Thanks for all the help so far!

Share this post


Link to post
Share on other sites

Thanks... still no go... will try a couple of things. Thanks for all the help so far!

:) You are getting a MSGBOX from aut2exe ...right ?

If so try running aut2exe manually and click for the ICON on the Default button...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

:) You are getting a MSGBOX from aut2exe ...right ?

If so try running aut2exe manually and click for the ICON on the Default button...

I have... it still gives me an error... and this is on multiple computers too. :mellow:

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

I have... it still gives me an error... and this is on multiple computers too. :)

So you:

- started AUT2EXE.

- Selected a script to convert

- clicked on Default for the ICON

- clicked Convert button and then you get this error ?

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

So you:

- started AUT2EXE.

- Selected a script to convert

- clicked on Default for the ICON

- clicked Convert button and then you get this error ?

okies... here is what I did....

- started AUT2EXE (in the beta folder)

- Selected my script

- Selected/Saved my Destination

- Clicked on the Default button for the icon

- Clicked on Convert...... now....

Error: Unable to execute upx.exe to compress stub file.

I am running the latest beta... I ran the Toggle AU3 Beta script to switch over to the beta (I got the pop-up message telling me I am running the latest beta)... and now I am stuck.

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

okies... here is what I did....

- started AUT2EXE (in the beta folder)

- Selected my script

- Selected/Saved my Destination

- Clicked on the Default button for the icon

- Clicked on Convert...... now....

Error: Unable to execute upx.exe to compress stub file.

I am running the latest beta... I ran the Toggle AU3 Beta script to switch over to the beta (I got the pop-up message telling me I am running the latest beta)... and now I am stuck.

Which directory are you running the aut2exe from ? need to do this from AutoIt3\Beta\aut2exe

I never use the Toggle Beta script because you can select which version use from within SciTE ...

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Which directory are you running the aut2exe from ? need to do this from AutoIt3\Beta\aut2exe

I never use the Toggle Beta script because you can select which version use from within SciTE ...

yeah... just found how to do it in SciTE... also... yes... I am running it from AutoIt3\Beta\AUT2EXE

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

Do you have these 3 files in the AutoIt3\Beta\AUT2EXE directory?:

AUT2EXE.exe

upx.exe

AutoitSC.bin

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

Do you have these 3 files in the AutoIt3\Beta\AUT2EXE directory?:

AUT2EXE.exe

upx.exe

AutoitSC.bin

yes... it is all there... I ran a windows update, a SciTE update, removed all AutoIt 3 stuff and re-installed, ran some registry tools.... just wierd.

Edited by xwinterx

Share this post


Link to post
Share on other sites

yes... should I just remove all my SciTE and AutoIT3 stuff then reinstall just the beta? I dunno.

No need to remove SciTE.

Can you (re)install the latest AutoIt3 Beta version and try to run aut2exe from the Beta directory again to see what it says ?


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

No need to remove SciTE.

Can you (re)install the latest AutoIt3 Beta version and try to run aut2exe from the Beta directory again to see what it says ?

Yeah... I did that on both computers... and still get the error regarding UPX.EXE and the stub file. It appears that for whatever reason, the Icon issue has been resolved, but now it can't get past the UPX thing.

Share this post


Link to post
Share on other sites

Yeah... I did that on both computers... and still get the error regarding UPX.EXE and the stub file. It appears that for whatever reason, the Icon issue has been resolved, but now it can't get past the UPX thing.

I can only get this error when i rename upx.exe to something else.

These are the file specs in my directory ... are yours the same?

03/26/2006 10:17 AM 101,888 Aut2exe.exe

03/31/2006 03:04 PM 396,288 AutoitSC.bin

06/30/2004 12:13 AM 126,464 upx.exe


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I can only get this error when i rename upx.exe to something else.

These are the file specs in my directory ... are yours the same?

03/26/2006 10:17 AM 101,888 Aut2exe.exe

03/31/2006 03:04 PM 396,288 AutoitSC.bin

06/30/2004 12:13 AM 126,464 upx.exe

March 26, 2006, 1:17:28 AM aut2exe.exe 101,888 bytes

March 31, 2006, 6:04:06 AM autoitsc.bin 396,288 bytes

June 29, 2004, 3:13:24 PM upx.exe 126,464 bytes

my times are off, but the sizes are the same.

Share this post


Link to post
Share on other sites

March 26, 2006, 1:17:28 AM aut2exe.exe 101,888 bytes

March 31, 2006, 6:04:06 AM autoitsc.bin 396,288 bytes

June 29, 2004, 3:13:24 PM upx.exe 126,464 bytes

my times are off, but the sizes are the same.

Just did some more testing and also am able to get the error when i don't have all the security rights on target directory...

When Modify is missing this error will also pop up......


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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