ycomp Posted April 18, 2008 Share Posted April 18, 2008 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. Link to comment Share on other sites More sharing options...
Zedna Posted April 18, 2008 Share Posted April 18, 2008 run au3check.exe first. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
monoceres Posted April 18, 2008 Share Posted April 18, 2008 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! Link to comment Share on other sites More sharing options...
ycomp Posted April 18, 2008 Author Share Posted April 18, 2008 thanks... really helps... you guys are fast! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now