Sign in to follow this  
Followers 0
ycomp

detect aut2exe compile failure?

4 posts in this topic

Hi,

I have a compile.au3 script... it simply compiles many scripts of mine by calling aut2exe using Run().

My problem is this... how can I detect when a compile fails? It is still creating the exes for me, so my installer won't complain when I try to package it after a compile.

If I can either detect the error in the compile script, or force aut2exe to not create the exe if compile failed, then I have solved my problem.

So could someone explain how to do either the first or the 2nd thing? thanks.

Share this post


Link to post
Share on other sites



You could check the script with Au3check that comes with autoit, like this:

$code=RunWait("Au3Check.exe c:\testscript.au3",@ProgramFilesDir&"\Autoit3",@SW_HIDE)
If $code>0 Then
    MsgBox(16,"Error","There was an error")
EndIf

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

thanks... really helps... you guys are fast!

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