DrAhmed Posted April 23, 2016 Share Posted April 23, 2016 (edited) Hi all I am trying to make a compiler for au3 scripts in vb.net , I am using this command line in the vb.net code "Aut2exe.exe /in EW.au3" The error I get : EW.au3 is the script name and Aut2exe.exe is in the same floder with the script . After reading this, I think that this is the only way to do it : (the command line method) https://www.autoitscript.com/autoit3/docs/intro/compiler.htm Note that compiling the script manually ( right click --> compile ) works fine . I already tried to (didn't help) - Replacing < > by " " - Turning my AV off - Giving Aut2exe.exe / vb.net compiler admin rights - Replace Aut2exe.exe with its full path from original Aut3 floder. I don't know what I am doing wrong ? Edited April 24, 2016 by DrAhmed Link to comment Share on other sites More sharing options...
Trong Posted April 23, 2016 Share Posted April 23, 2016 Try to put your script in the folder "C:\Program Files (x86)\AutoIt3\Include" and run Aut2exe.exe with Admin rights. Regards, Link to comment Share on other sites More sharing options...
DrAhmed Posted April 23, 2016 Author Share Posted April 23, 2016 (edited) 11 minutes ago, VIP said: Try to put your script in the folder "C:\Program Files (x86)\AutoIt3\Include" and run Aut2exe.exe with Admin rights. Well that's wierd I tried what you said and got this , I got no compiled exe file the command line I used is : "Aut2exe.exe /in <C:\Program Files (x86)\AutoIt3\Include\EW.au3> /out <C:\Program Files (x86)\AutoIt3\Include\EW.exe>" Edited April 23, 2016 by DrAhmed Link to comment Share on other sites More sharing options...
Trong Posted April 23, 2016 Share Posted April 23, 2016 (edited) Try: ""Aut2exe.exe" /in "C:\Program Files (x86)\AutoIt3\Include\EW.au3" /out "C:\Program Files (x86)\AutoIt3\Include\EW.exe"" Edited April 23, 2016 by VIP Regards, Link to comment Share on other sites More sharing options...
DrAhmed Posted April 23, 2016 Author Share Posted April 23, 2016 (edited) 20 minutes ago, VIP said: Try: "Aut2exe.exe /in " + "C:\Program Files (x86)\AutoIt3\Include\EW.au3" + " /out " + "C:\Program Files (x86)\AutoIt3\Include\EW.exe" OR: '"C:\Program Files (x86)\AutoIt3\Aut2exe\Aut2exe.exe" /in "C:\Program Files (x86)\AutoIt3\Include\EW.au3" /out "C:\Program Files (x86)\AutoIt3\Include\EW.exe"' for the first one I got the same message above : for the second I got error in my vb.net compiler : more info about error in visual studio debugger : Edited April 23, 2016 by DrAhmed Link to comment Share on other sites More sharing options...
Trong Posted April 23, 2016 Share Posted April 23, 2016 Dim app As String = "C:\Program Files (x86)\AutoIt3\Aut2exe\Aut2exe.exe" Dim AppParam As String = "/in ""C:\Program Files (x86)\AutoIt3\Include\EW.au3"" /out ""C:\Program Files (x86)\AutoIt3\Include\EW.exe""" System.Diagnostics.Process.Start(app, AppParam) Regards, Link to comment Share on other sites More sharing options...
DrAhmed Posted April 24, 2016 Author Share Posted April 24, 2016 31 minutes ago, VIP said: Dim app As String = "C:\Program Files (x86)\AutoIt3\Aut2exe\Aut2exe.exe" Dim AppParam As String = "/in ""C:\Program Files (x86)\AutoIt3\Include\EW.au3"" /out ""C:\Program Files (x86)\AutoIt3\Include\EW.exe""" System.Diagnostics.Process.Start(app, AppParam) Wow thanks man it works like charm now But what do you suggest to do this without admin rights with no Autoit installed on the computer ? is it even possible ? Link to comment Share on other sites More sharing options...
Trong Posted April 24, 2016 Share Posted April 24, 2016 Copy all file on "C:\Program Files (x86)\AutoIt3\Include" to your script folder! Regards, Link to comment Share on other sites More sharing options...
DrAhmed Posted April 24, 2016 Author Share Posted April 24, 2016 (edited) 12 minutes ago, VIP said: Copy all file on "C:\Program Files (x86)\AutoIt3\Include" to your script folder! It works fine now ... thank you very much for your help Edited April 24, 2016 by DrAhmed Link to comment Share on other sites More sharing options...
Trong Posted April 24, 2016 Share Posted April 24, 2016 good day (: keep smile Regards, Link to comment Share on other sites More sharing options...
Developers Jos Posted April 24, 2016 Developers Share Posted April 24, 2016 I like the sledge hammer approach in this thread but maybe not the most cleaver one. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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